aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/base/front/javascript.html
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2016-11-25 17:44:05 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2016-12-16 10:15:17 +0000
commitfddf7f9585e50a60acca01b84bc8f9cfc267dd0b (patch)
treec7b6d9e7bc457d8ff4b0883dd62ef9e2876b7f6c /templates/web/base/front/javascript.html
parente1f11deee821dd6540a76966731c94d31effa826 (diff)
Add offline support of static files/fallback page.
Use a list to store JavaScript files, so it can be shared between the HTML footer and the appcache manifest.
Diffstat (limited to 'templates/web/base/front/javascript.html')
-rw-r--r--templates/web/base/front/javascript.html19
1 files changed, 12 insertions, 7 deletions
diff --git a/templates/web/base/front/javascript.html b/templates/web/base/front/javascript.html
index 2795829a5..6b8e2a292 100644
--- a/templates/web/base/front/javascript.html
+++ b/templates/web/base/front/javascript.html
@@ -1,7 +1,12 @@
-[%# Assume using OpenStreetMap maps %]
-<script src="[% version('/js/yepnope.js') %]"></script>
-<script id="script_front" src="[% version('/cobrands/fixmystreet/front.js') %]"
- data-scripts="
- [%~ version('/js/OpenLayers/OpenLayers.fixmystreet.js') %],
- [%~ version('/js/map-OpenLayers.js') %],
- [%~ version('/js/map-OpenStreetMap.js') %]"></script>
+[%
+# Assume using OpenStreetMap maps
+map_js = [
+ version('/js/yepnope.js'),
+ [ version('/cobrands/fixmystreet/front.js'), {
+ id = 'script_front',
+ 'data-scripts' = version('/js/OpenLayers/OpenLayers.fixmystreet.js') _ ',' _
+ version('/js/map-OpenLayers.js') _ ',' _
+ version('/js/map-OpenStreetMap.js')
+ } ],
+]
+%]