More iOS web app tweaks
* add apple-mobile-web-app-capable meta tag for home screen web app * set viewport to device-width
This commit is contained in:
parent
9575411593
commit
86a051b290
3 changed files with 6 additions and 3 deletions
|
@ -48,8 +48,8 @@ function LOG(level, msg)
|
|||
$(document).ready(function(){
|
||||
// Hide the address bar on mobile browsers
|
||||
setTimeout(function(){
|
||||
// some sites suggest 0,0 - not sure which is correct
|
||||
window.scrollTo(0, 1);
|
||||
// some sites suggest 0,0 and others 0,1 - not sure which is correct
|
||||
window.scrollTo(0, 0);
|
||||
}, 0);
|
||||
// set up UI (buttons, etc.)
|
||||
setup_ui_elements();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue