summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--StoneIsland/config.xml13
-rwxr-xr-xStoneIsland/platforms/ios/StoneIsland/config.xml10
-rw-r--r--StoneIsland/platforms/ios/www/css/nav.css10
-rw-r--r--StoneIsland/platforms/ios/www/js/index.js11
-rw-r--r--StoneIsland/www/css/nav.css4
-rw-r--r--StoneIsland/www/js/index.js11
6 files changed, 49 insertions, 10 deletions
diff --git a/StoneIsland/config.xml b/StoneIsland/config.xml
index b57b1693..9d098b8a 100644
--- a/StoneIsland/config.xml
+++ b/StoneIsland/config.xml
@@ -16,6 +16,19 @@
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
+
+ <preference name="DisallowOverscroll" value="true" />
+ <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" />
+
<platform name="android">
<allow-intent href="market:*" />
</platform>
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()
diff --git a/StoneIsland/www/css/nav.css b/StoneIsland/www/css/nav.css
index 3c4e5e3e..25f4c3bb 100644
--- a/StoneIsland/www/css/nav.css
+++ b/StoneIsland/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: 20px;
height: -webkit-calc(100% - 20px);
}
+ */
.nav #nav {
-webkit-transform: translateZ(0) translateX(0);
}
@@ -71,7 +73,7 @@
}
#intro .latlng {
position: absolute;
- bottom: 0; left: 0; width: 100%;
+ bottom: 5%; left: 0; width: 100%;
text-align: center;
z-index: 2
}
diff --git a/StoneIsland/www/js/index.js b/StoneIsland/www/js/index.js
index 5720dcf1..5f9ca688 100644
--- a/StoneIsland/www/js/index.js
+++ b/StoneIsland/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()