From fddf7f9585e50a60acca01b84bc8f9cfc267dd0b Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Fri, 25 Nov 2016 17:44:05 +0000 Subject: 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. --- templates/web/base/front/javascript.html | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'templates/web/base/front/javascript.html') 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 %] - - +[% +# 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') + } ], +] +%] -- cgit v1.2.3