Mark when JavaScript is available

This might be useful for custom styling, or for using
a pure-CSS fallback for some scripted behavior.

There is already a no-js class set on the <html> element;
this change removes it when JavaScript is running OK.
pull/29904/head
Tim Bannister 2021-10-03 17:14:11 +01:00
parent 9c475f3c2b
commit 7738ba16fc
1 changed files with 2 additions and 0 deletions

View File

@ -72,6 +72,8 @@ var kub = (function () {
headlineWrapper = $('#headlineWrapper');
HEADER_HEIGHT = header.outerHeight();
document.documentElement.classList.remove('no-js');
resetTheView();
window.addEventListener('resize', resetTheView);