2019-11-19 14:57:49 +00:00
|
|
|
window.GOVUK.Frontend.initAll();
|
2019-10-10 16:16:51 +01:00
|
|
|
|
2020-01-21 09:37:38 +00:00
|
|
|
var consentData = window.GOVUK.getConsentCookie();
|
|
|
|
|
window.GOVUK.Modules.CookieBanner.clearOldCookies(consentData);
|
2019-12-13 22:07:43 +00:00
|
|
|
|
2020-01-21 09:37:38 +00:00
|
|
|
if (window.GOVUK.hasConsentFor('analytics', consentData)) {
|
2020-01-02 14:26:57 +00:00
|
|
|
window.GOVUK.initAnalytics();
|
|
|
|
|
}
|
2019-12-13 22:07:43 +00:00
|
|
|
|
2016-09-28 17:47:40 +01:00
|
|
|
$(() => $("time.timeago").timeago());
|
|
|
|
|
|
2017-05-16 16:56:40 +01:00
|
|
|
$(() => GOVUK.stickAtTopWhenScrolling.init());
|
2018-11-05 17:47:25 +00:00
|
|
|
$(() => GOVUK.stickAtBottomWhenScrolling.init());
|
2017-05-16 16:56:40 +01:00
|
|
|
|
2018-08-09 11:59:05 +01:00
|
|
|
var showHideContent = new GOVUK.ShowHideContent();
|
|
|
|
|
showHideContent.init();
|
|
|
|
|
|
2015-12-20 00:00:01 +00:00
|
|
|
$(() => GOVUK.modules.start());
|
2016-01-13 17:42:01 +00:00
|
|
|
|
2016-02-23 06:47:39 +00:00
|
|
|
$(() => $('.error-message').eq(0).parent('label').next('input').trigger('focus'));
|
2017-02-13 12:11:32 +00:00
|
|
|
|
|
|
|
|
$(() => $('.banner-dangerous').eq(0).trigger('focus'));
|
2020-09-23 10:16:38 +01:00
|
|
|
|
|
|
|
|
$(() => $('.govuk-header__container').on('click', function() {
|
|
|
|
|
$(this).css('border-color', '#005ea5');
|
|
|
|
|
}));
|