From 48e5fec1e86ee8f22ed0e0f3dde5b93f600b7a6f Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 16 Sep 2015 15:14:38 -0400 Subject: phonegap stuff --- StoneIsland/platforms/ios/StoneIsland/config.xml | 10 +++++++++- StoneIsland/platforms/ios/www/css/nav.css | 10 ++++++---- StoneIsland/platforms/ios/www/js/index.js | 11 +++++++++-- 3 files changed, 24 insertions(+), 7 deletions(-) (limited to 'StoneIsland/platforms') 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 @@ - StoneIsland @@ -55,4 +54,13 @@ + + + + + + + + + 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() -- cgit v1.2.3-70-g09d2