From 86a051b290b41eb28a6c9dc2649a164209002624 Mon Sep 17 00:00:00 2001 From: Donald Burr Date: Tue, 20 Oct 2015 15:37:59 -0700 Subject: [PATCH] More iOS web app tweaks * add apple-mobile-web-app-capable meta tag for home screen web app * set viewport to device-width --- web_app/css/sif-tools.css | 1 + web_app/js/sif_tools.js | 4 ++-- web_app/sif_tools.html | 4 +++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/web_app/css/sif-tools.css b/web_app/css/sif-tools.css index da00a5a..71fd57b 100644 --- a/web_app/css/sif-tools.css +++ b/web_app/css/sif-tools.css @@ -5,6 +5,7 @@ body { margin: 0px; background-color: #000000; color: #ffffff; + min-height: 480px; } p { diff --git a/web_app/js/sif_tools.js b/web_app/js/sif_tools.js index 84c59de..3fb22f0 100644 --- a/web_app/js/sif_tools.js +++ b/web_app/js/sif_tools.js @@ -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(); diff --git a/web_app/sif_tools.html b/web_app/sif_tools.html index 54a291e..2f4399f 100644 --- a/web_app/sif_tools.html +++ b/web_app/sif_tools.html @@ -2,7 +2,9 @@ - + + + SIF Tools