aboutsummaryrefslogtreecommitdiffstats
path: root/phonegap
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2012-05-28 10:24:28 +0100
committerStruan Donald <struan@exo.org.uk>2012-05-28 10:24:28 +0100
commitab41d7aaaa2b1358f1ff89e1f09f222974c72b21 (patch)
tree78cf5a3ec2c6c688dac4460e91290c9858016ece /phonegap
parent1a7690d060125886c450986490fe7e950a99cef9 (diff)
prevent scrolling on front page on iPhone to make it a bit more app like
Diffstat (limited to 'phonegap')
-rw-r--r--phonegap/www/css/mobile.css21
-rw-r--r--phonegap/www/index.html2
-rw-r--r--phonegap/www/js/mobile.js4
3 files changed, 24 insertions, 3 deletions
diff --git a/phonegap/www/css/mobile.css b/phonegap/www/css/mobile.css
index 29203bf31..7236afc8f 100644
--- a/phonegap/www/css/mobile.css
+++ b/phonegap/www/css/mobile.css
@@ -1,3 +1,13 @@
+/* stop scrolling on iphone */
+#container {
+ width: 100%;
+ height: 100%;
+}
+
+#container .container {
+ padding-bottom: 0;
+}
+
.mobile-nav-banner {
background: black;
}
@@ -53,8 +63,15 @@
margin-top: 35px;
}
-
-
.mobile-header #site-logo {
margin-top: 35px;
+}
+
+
+#front-howto h2 {
+ margin-top: 0.8em;
+}
+
+ol.big-numbers > li {
+ margin-bottom: 0.8em;
} \ No newline at end of file
diff --git a/phonegap/www/index.html b/phonegap/www/index.html
index 338851543..e3ed9cfa4 100644
--- a/phonegap/www/index.html
+++ b/phonegap/www/index.html
@@ -39,7 +39,7 @@
};
</script>
</head>
- <body class="frontpage fullwidthpage">
+ <body id="container" class="frontpage fullwidthpage" ontouchmove="touchmove(event);">
<div class="wrapper">
<div class="table-cell">
diff --git a/phonegap/www/js/mobile.js b/phonegap/www/js/mobile.js
index 309b34073..07dc61ac3 100644
--- a/phonegap/www/js/mobile.js
+++ b/phonegap/www/js/mobile.js
@@ -1,3 +1,7 @@
+function touchmove(e) {
+ e.preventDefault();
+}
+
function show_around( lat, long ) {
pc = $('#pc').val();
localStorage.latitude = lat;