Add GOV.UK Frontend JS

This includes the JS for all GOV.UK Frontend code.
If our frontend build includes a module bundler in
future, we should only include the JS for the
components we use, as with our Sass.
This commit is contained in:
Tom Byers
2019-10-10 16:16:51 +01:00
parent 8fc510384c
commit d80b42a255
2 changed files with 4 additions and 1 deletions

View File

@@ -1,3 +1,5 @@
window.GOVUKFrontend.initAll();
$(() => $("time.timeago").timeago());
$(() => GOVUK.stickAtTopWhenScrolling.init());