Tweaks to mobile for portal_highlighter and others.
This commit is contained in:
@ -33,7 +33,7 @@ window.portalHighlighterControl = function() {
|
||||
});
|
||||
$("#portal_highlight_select").val(_current_highlighter);
|
||||
$("#portal_highlight_select").change(function(){ changePortalHighlights($(this).val());});
|
||||
$(".leaflet-top.leaflet-left").css('padding-top','25px');
|
||||
$(".leaflet-top.leaflet-left").css('padding-top', window.isSmartphone ? '55px' : '20px');
|
||||
$(".leaflet-control-scale-line").css('margin-top','25px');
|
||||
}
|
||||
}
|
||||
@ -61,4 +61,4 @@ window.resetHighlightedPortals = function() {
|
||||
}
|
||||
catch(e) {}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,7 @@
|
||||
// created to start cleaning up "window" interaction
|
||||
//
|
||||
window.show = function(id) {
|
||||
window.hideall();
|
||||
switch(id) {
|
||||
case 'full':
|
||||
window.chat.show('full');
|
||||
@ -19,6 +20,7 @@ window.show = function(id) {
|
||||
break;
|
||||
case 'map':
|
||||
window.smartphone.mapButton.click();
|
||||
$('#portal_highlight_select').show();
|
||||
break;
|
||||
case 'info':
|
||||
window.smartphone.sideButton.click();
|
||||
@ -28,3 +30,8 @@ window.show = function(id) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
window.hideall = function() {
|
||||
$('#chatcontrols, #chat, #chatinput, #sidebartoggle, #scrollwrapper, #updatestatus, #portal_highlight_select').hide();
|
||||
$('#map').css('visibility', 'hidden');
|
||||
}
|
||||
|
Reference in New Issue
Block a user