diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-11-25 17:44:05 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-12-16 10:15:17 +0000 |
commit | fddf7f9585e50a60acca01b84bc8f9cfc267dd0b (patch) | |
tree | c7b6d9e7bc457d8ff4b0883dd62ef9e2876b7f6c /templates/web/fixmystreet.com/front/javascript.html | |
parent | e1f11deee821dd6540a76966731c94d31effa826 (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/fixmystreet.com/front/javascript.html')
-rw-r--r-- | templates/web/fixmystreet.com/front/javascript.html | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/templates/web/fixmystreet.com/front/javascript.html b/templates/web/fixmystreet.com/front/javascript.html index ac9faa309..baf7ebb64 100644 --- a/templates/web/fixmystreet.com/front/javascript.html +++ b/templates/web/fixmystreet.com/front/javascript.html @@ -1,7 +1,12 @@ -<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-bing-ol.js') %], - [%~ version('/js/map-fms.js') %]"></script> +[% +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-bing-ol.js') _ ',' _ + version('/js/map-fms.js') + } ], +] +%] |