Files
notifications-admin/app/assets/javascripts/main.js
T

27 lines
742 B
JavaScript
Raw Normal View History

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)) {
window.GOVUK.initAnalytics();
}
2019-12-13 22:07:43 +00:00
$(() => $("time.timeago").timeago());
$(() => GOVUK.stickAtTopWhenScrolling.init());
2018-11-05 17:47:25 +00:00
$(() => 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'));
$(() => $('.govuk-header__container').on('click', function() {
$(this).css('border-color', '#005ea5');
}));