Tweaks to mobile for portal_highlighter and others.

This commit is contained in:
hastarin
2013-05-09 00:50:12 +10:00
parent 93f330718a
commit ff6d261407
3 changed files with 18 additions and 18 deletions

View File

@ -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) {}
});
}
}

View File

@ -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');
}