various cleanups to the portal detail display links
- removed 'donate' - made case consistant - upper case 1st letter - shortened excessively long links (IAPS) - but added title text on links with more detailed descriptions inspired by #135
This commit is contained in:
parent
5f4e0192a0
commit
99d52dad8a
@ -67,10 +67,10 @@ window.renderPortalDetails = function(guid) {
|
|||||||
+ '<div class="mods">'+getModDetails(d)+'</div>'
|
+ '<div class="mods">'+getModDetails(d)+'</div>'
|
||||||
+ randDetails
|
+ randDetails
|
||||||
+ resoDetails
|
+ resoDetails
|
||||||
+ '<div class="linkdetails"><aside><a href="'+perma+'" onclick="return androidCopy(this.href)" >portal link</a></aside>'
|
+ '<div class="linkdetails">'
|
||||||
+ '<aside><a onclick="'+poslinks+'">poslinks</a></aside>'
|
+ '<aside><a href="'+perma+'" onclick="return androidCopy(this.href)" title="Create a URL link to this portal" >Portal link</a></aside>'
|
||||||
+ '<aside><a onclick="alert(\''+postcard+'\');">donate</a></aside>'
|
+ '<aside><a onclick="'+poslinks+'" title="Link to alternative maps (Google, etc)">Map links</a></aside>'
|
||||||
+ '<aside><a onclick="window.reportPortalIssue()">report issue</a></aside>'
|
+ '<aside><a onclick="window.reportPortalIssue()" title="Report issues with this portal to Niantic/Google">Report issue</a></aside>'
|
||||||
+ '</div>'
|
+ '</div>'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -136,8 +136,8 @@ window.showPortalPosLinks = function(lat, lng, name) {
|
|||||||
} else {
|
} else {
|
||||||
var qrcode = '<div id="qrcode"></div>';
|
var qrcode = '<div id="qrcode"></div>';
|
||||||
var script = '<script>$(\'#qrcode\').qrcode({text:\'GEO:'+lat+','+lng+'\'});</script>';
|
var script = '<script>$(\'#qrcode\').qrcode({text:\'GEO:'+lat+','+lng+'\'});</script>';
|
||||||
var gmaps = '<a href="https://maps.google.com/?q='+lat+','+lng+portal_name+'">gmaps</a>';
|
var gmaps = '<a href="https://maps.google.com/?q='+lat+','+lng+portal_name+'">Google maps</a>';
|
||||||
var osm = '<a href="http://www.openstreetmap.org/?mlat='+lat+'&mlon='+lng+'&zoom=16">OSM</a>';
|
var osm = '<a href="http://www.openstreetmap.org/?mlat='+lat+'&mlon='+lng+'&zoom=16">OpenStreetMap</a>';
|
||||||
var latLng = '<span>'+lat+','+lng +'</span>';
|
var latLng = '<span>'+lat+','+lng +'</span>';
|
||||||
alert('<div style="text-align: center;">' + qrcode + script + gmaps + ' ' + osm + '<br />' + latLng + '</div>');
|
alert('<div style="text-align: center;">' + qrcode + script + gmaps + ' ' + osm + '<br />' + latLng + '</div>');
|
||||||
}
|
}
|
||||||
|
@ -27,7 +27,7 @@ window.plugin.ipasLink.setupCallback = function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
window.plugin.ipasLink.addLink = function(d) {
|
window.plugin.ipasLink.addLink = function(d) {
|
||||||
$('.linkdetails').append('<aside style="text-align: center; display: block"><a href="http://ipas.graphracer.com/index.html#' + window.plugin.ipasLink.getHash(d.portalDetails) + '" target="ipaswindow">simulate attack with IPAS</a></aside>');
|
$('.linkdetails').append('<aside><a href="http://ipas.graphracer.com/index.html#' + window.plugin.ipasLink.getHash(d.portalDetails) + '" target="ipaswindow" title="Use IAPS to simulate an attack on this portal">Simulate attack</a></aside>');
|
||||||
}
|
}
|
||||||
|
|
||||||
window.plugin.ipasLink.getHash = function(d) {
|
window.plugin.ipasLink.getHash = function(d) {
|
||||||
|
33
style.css
33
style.css
@ -602,42 +602,23 @@ h3 {
|
|||||||
margin-left: -6px;
|
margin-left: -6px;
|
||||||
text-shadow: 0.0em 0.0em 0.3em #808080;
|
text-shadow: 0.0em 0.0em 0.3em #808080;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* links below resos */
|
/* links below resos */
|
||||||
|
|
||||||
.linkdetails {
|
.linkdetails {
|
||||||
margin-bottom: 0px;
|
margin-bottom: 0px;
|
||||||
}
|
|
||||||
|
|
||||||
aside {
|
|
||||||
display: inline-block;
|
|
||||||
padding-right: 9px;
|
|
||||||
-webkit-box-sizing: border-box;
|
|
||||||
-moz-box-sizing: border-box;
|
|
||||||
box-sizing: border-box;
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.linkdetails aside a{
|
.linkdetails aside {
|
||||||
|
display: inline-block;
|
||||||
|
white-space: nowrap;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
|
margin-left: 5px;
|
||||||
|
margin-right: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.linkdetails aside:last-child {
|
|
||||||
padding-right: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.linkdetails aside:nth-child(1) {
|
|
||||||
text-align: right;
|
|
||||||
width:88px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.linkdetails aside:nth-child(2) {
|
|
||||||
text-align: right;
|
|
||||||
width:67px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.linkdetails aside:nth-child(4) {
|
|
||||||
margin-left:13px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#toolbox {
|
#toolbox {
|
||||||
padding: 2px;
|
padding: 2px;
|
||||||
@ -653,7 +634,7 @@ aside {
|
|||||||
* content when first selecting a portal) */
|
* content when first selecting a portal) */
|
||||||
|
|
||||||
#portaldetails {
|
#portaldetails {
|
||||||
min-height: 495px;
|
min-height: 485px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user