aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/base/front/javascript.html
Commit message (Collapse)AuthorAgeLines
* Use modern prefetch.Matthew Somerville2017-11-15-12/+0
| | | | | | | | | | | | | This removes the yepnope library, instead using <link rel="prefetch"> with a polyfill (the polyfill will work on Safari but reload cached script on the front page each time). We prefetch map-related JavaScript (and other libraries only used on map pages, such as Dropzone and Fancybox) on non-map pages, and don't bother loading the validate plugin on the front page. Now the map JavaScript list is available everywhere, we can use that in the prefetch rather a hardcoded list.
* Move third party libraries into vendor directoriesMatthew Somerville2017-05-23-2/+2
| | | | | | | | This makes the git hook that lints our own JavaScript easier, and keeps things more cleanly separated. We also remove unused third party libraries (select2 and jquery.placeholder).
* Add offline support of static files/fallback page.Matthew Somerville2016-12-16-7/+12
| | | | | Use a list to store JavaScript files, so it can be shared between the HTML footer and the appcache manifest.
* Factor out most inline JavaScript.Matthew Somerville2016-08-16-13/+5
| | | | | No need for a special no-map case in the filters case, as all pages now have fixmystreet.page set if needed.
* Split up modernizr/html5shiv/yepnope.Matthew Somerville2016-08-16-1/+2
| | | | | We only need html5shiv for <IE9, and we only use yepnope on the front page.
* Merge branch '1351-report-list-ajax'Matthew Somerville2016-07-11-1/+0
|\
| * Move to using pushState for new report.Zarino Zappia2016-07-11-1/+0
| | | | | | | | | | Update the URL whenever location of pin is updated (first time, drag, or reclick), make sure it works when clicking back.
* | Remove need to customise OpenLayers built script.Matthew Somerville2016-07-04-1/+1
|/ | | | | This also allows the map to work in a proxied admin. Upgrade Angus OL to master branch code.
* Combine some base/fixmystreet templates.Matthew Somerville2015-10-07-0/+15
The aim is to combine base and fixmystreet as much as possible, providing enough template/styling hooks for any cobrand. This commit removes the need for separate base/fixmystreet templates for the front page, almost all of the /around templates, the open graph headers, and the low level item list templates.