aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--www/css/fms.css24
-rw-r--r--www/index.html7
-rw-r--r--www/js/router.js2
-rw-r--r--www/templates/en/around.html3
4 files changed, 30 insertions, 6 deletions
diff --git a/www/css/fms.css b/www/css/fms.css
index 2d51724..247c31b 100644
--- a/www/css/fms.css
+++ b/www/css/fms.css
@@ -323,7 +323,6 @@
}
#map_box{
- margin: -15px;
background-color: #534741;
background-image: url('../images/mapbg.png');
}
@@ -423,3 +422,26 @@
{
text-shadow:none;
}
+
+ .ui-page {
+ background-image: none;
+ background-color: rgba(0,0,0,0);
+ }
+
+ /* This is a bit of hackery as without it jquerymobile never sets the page
+ * to be other than display: none. Should work out why and fix at source */
+ div[data-role="page"] {
+ display: block !important;
+ }
+
+ div.jquerymobile {
+ pointer-events: none;
+ }
+
+ input,
+ textarea,
+ select,
+ a,
+ .ui-btn {
+ pointer-events: all;
+ }
diff --git a/www/index.html b/www/index.html
index 9d143da..d84cfe3 100644
--- a/www/index.html
+++ b/www/index.html
@@ -63,5 +63,10 @@
<script type="text/javascript" src="js/app.js"></script>
</head>
- <body onload="onload()"></body>
+ <body onload="onload()">
+ <div id="map_box" class="mapbox">
+ <div id="map"></div>
+ </div>
+ <div class="jquerymobile"></div>
+ </body>
</html>
diff --git a/www/js/router.js b/www/js/router.js
index 3ea4dbd..9879078 100644
--- a/www/js/router.js
+++ b/www/js/router.js
@@ -147,7 +147,7 @@
$(view.el).attr('data-add-back-btn', 'true');
}
view.render();
- $('body').append($(view.el));
+ $('.jquerymobile').append($(view.el));
// if we are coming from the front page then we don't want to do
// any transitions as they just add visual distraction to no end
diff --git a/www/templates/en/around.html b/www/templates/en/around.html
index c429907..28e104d 100644
--- a/www/templates/en/around.html
+++ b/www/templates/en/around.html
@@ -64,8 +64,6 @@
</div>
- <div id="map_box" class="mapbox">
- <div id="map"></div>
<a id="mark-here" data-role="button" data-theme="a" class="map-bottom-btn nodisplay">
New Report Here
@@ -75,5 +73,4 @@
</a>
<a data-role="none" id="relocate" class="nodisplay"><img src="images/location@x2.png"></a>
- </div>
</div>