mirror of
https://github.com/GSA/notifications-admin.git
synced 2025-12-10 23:23:27 -05:00
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.
16 lines
419 B
JavaScript
16 lines
419 B
JavaScript
window.GOVUKFrontend.initAll();
|
|
|
|
$(() => $("time.timeago").timeago());
|
|
|
|
$(() => GOVUK.stickAtTopWhenScrolling.init());
|
|
$(() => GOVUK.stickAtBottomWhenScrolling.init());
|
|
|
|
var showHideContent = new GOVUK.ShowHideContent();
|
|
showHideContent.init();
|
|
|
|
$(() => GOVUK.modules.start());
|
|
|
|
$(() => $('.error-message').eq(0).parent('label').next('input').trigger('focus'));
|
|
|
|
$(() => $('.banner-dangerous').eq(0).trigger('focus'));
|