Skip to content

Commit 3357dd9

Browse files
Automatically hide address bar, when possible; rossengeorgiev#10
1 parent d4a0bca commit 3357dd9

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ <h2>Chase car mode</h2>
5858
<span class="r"><input type="text" id="cc_callsign" style="width: 140px;"/></span>
5959
</div>
6060
<div class="row">
61-
<span><b>Warning: If you enable this, your location will be uploaded to habitat making it publicly visible on the map.</b></span>
61+
<span><b>Warning: If you enable this, your location will be uploaded to habitat; making it publicly visible on the map.</b></span>
6262
</div>
6363
<hr>
6464
<div class="row">

js/app.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ function checkSize() {
3939
}
4040

4141
if(map) map.checkResize();
42+
43+
// this should hide the address bar, when possible
44+
window.scrollTo(0,1);
4245
}
4346

4447
window.onresize = checkSize;
@@ -290,6 +293,9 @@ $(window).ready(function() {
290293
setTimeout(function() {
291294
$('#loading').hide(); // welcome screen
292295
$('header,#main,#map').show(); // interface elements
296+
297+
// try hiding the address bar
298+
window.scrollTo(0,1);
293299
}, 500);
294300
}, 100);
295301
});

js/mobile.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)