diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-09-16 15:14:38 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-09-16 15:14:38 -0400 |
| commit | 48e5fec1e86ee8f22ed0e0f3dde5b93f600b7a6f (patch) | |
| tree | fc04dc3e9146f8800d51f6e24ca1b03d92599609 /StoneIsland/platforms/ios | |
| parent | 164fc4407621b4bd6448dd7790d684635a023726 (diff) | |
phonegap stuff
Diffstat (limited to 'StoneIsland/platforms/ios')
| -rwxr-xr-x | StoneIsland/platforms/ios/StoneIsland/config.xml | 10 | ||||
| -rw-r--r-- | StoneIsland/platforms/ios/www/css/nav.css | 10 | ||||
| -rw-r--r-- | StoneIsland/platforms/ios/www/js/index.js | 11 |
3 files changed, 24 insertions, 7 deletions
diff --git a/StoneIsland/platforms/ios/StoneIsland/config.xml b/StoneIsland/platforms/ios/StoneIsland/config.xml index 5acacfc0..f2e3c45d 100755 --- a/StoneIsland/platforms/ios/StoneIsland/config.xml +++ b/StoneIsland/platforms/ios/StoneIsland/config.xml @@ -38,7 +38,6 @@ </feature> <allow-intent href="itms:*" /> <allow-intent href="itms-apps:*" /> - <preference name="BackupWebStorage" value="local" /> <preference name="KeyboardDisplayRequiresUserAction" value="false" /> <name>StoneIsland</name> <description> @@ -55,4 +54,13 @@ <allow-intent href="sms:*" /> <allow-intent href="mailto:*" /> <allow-intent href="geo:*" /> + <preference name="EnableViewportScale" value="true" /> + <preference name="BackupWebStorage" value="local" /> + <preference name="TopActivityIndicator" value="white" /> + <preference name="SuppressesIncrementalRendering" value="true" /> + <preference name="DisallowOverscroll" value="true" /> + <preference name="HideKeyboardFormAccessoryBar" value="true" /> + <preference name="StatusBarOverlaysWebView" value="false" /> + <preference name="StatusBarBackgroundColor" value="#000000" /> + <preference name="StatusBarStyle" value="lightcontent" /> </widget> diff --git a/StoneIsland/platforms/ios/www/css/nav.css b/StoneIsland/platforms/ios/www/css/nav.css index e5c03010..cf1a94e3 100644 --- a/StoneIsland/platforms/ios/www/css/nav.css +++ b/StoneIsland/platforms/ios/www/css/nav.css @@ -16,11 +16,13 @@ -webkit-transform: translateZ(0) translateX(0px); -webkit-transition: -webkit-transform 0.3s; } +/* .ios #nav, .ios #content { - top: 40px; - height: -webkit-calc(100% - 40px); + top: 20px; + height: -webkit-calc(100% - 20px); } + */ .nav #nav { -webkit-transform: translateZ(0) translateX(0); } @@ -43,7 +45,7 @@ } #intro div { position: absolute; - top: 50%; left: 50%; + top: 40%; left: 50%; width: 200px; padding: 50px; text-align: center; @@ -71,7 +73,7 @@ } #intro .latlng { position: absolute; - bottom: 0; left: 0; width: 100%; + bottom: 10%; left: 0; width: 100%; text-align: center; z-index: 2 } diff --git a/StoneIsland/platforms/ios/www/js/index.js b/StoneIsland/platforms/ios/www/js/index.js index 5720dcf1..5f9ca688 100644 --- a/StoneIsland/platforms/ios/www/js/index.js +++ b/StoneIsland/platforms/ios/www/js/index.js @@ -25,11 +25,18 @@ var app = (function(){ } app.bind = function(){ - if (window.location.href.match("8000")) { app.ready() } - document.addEventListener('deviceready', app.ready, false) + if (window.cordova) { + document.addEventListener('deviceready', app.ready, false) + } + else { + app.ready() + } } app.ready = function(){ + if (window.cordova) { + // cordova.plugins.Keyboard.disableScroll(true) + } app.view = null app.router = new SiteRouter () app.router.route() |
