mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-06 03:13:42 -05:00
It clashes with the new `$govuk-focus-colour` now. This commit changes
it to half way between `govuk-colour("dark-grey")` (`#505a5f`) and
`govuk-colour("mid-grey")` (`#b1b4b6`) from the Design System. Dark was
too dark and mid was too light.
It also adds a line of JS to let us easily switch the header to blue by
clicking on it, which is useful for taking screenshots etc.
27 lines
742 B
JavaScript
27 lines
742 B
JavaScript
window.GOVUK.Frontend.initAll();
|
|
|
|
var consentData = window.GOVUK.getConsentCookie();
|
|
window.GOVUK.Modules.CookieBanner.clearOldCookies(consentData);
|
|
|
|
if (window.GOVUK.hasConsentFor('analytics', consentData)) {
|
|
window.GOVUK.initAnalytics();
|
|
}
|
|
|
|
$(() => $("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'));
|
|
|
|
$(() => $('.govuk-header__container').on('click', function() {
|
|
$(this).css('border-color', '#005ea5');
|
|
}));
|