Added debug menu option and started tidying up 'window' handling

This commit is contained in:
Jon Benson
2013-05-07 14:09:30 +10:00
parent d97b78fafb
commit 0108d1b49c
11 changed files with 62 additions and 30 deletions

View File

@ -34,14 +34,6 @@ window.runOnSmartphonesBeforeBoot = function() {
+ '</style>');
}
// this also matches the expand button, but it is hidden via CSS
$('#chatcontrols a').click(function() {
$('#scrollwrapper, #updatestatus').hide();
// not displaying the map causes bugs in Leaflet
$('#map').css('visibility', 'hidden');
$('#chat, #chatinput').show();
});
window.smartphone.mapButton = $('<a>map</a>').click(function() {
$('#chat, #chatinput, #scrollwrapper').hide();
$('#map').css('visibility', 'visible');