From 7738ba16fcc147559f0886eb4fe42bb8ba2aaff4 Mon Sep 17 00:00:00 2001 From: Tim Bannister Date: Sun, 3 Oct 2021 17:14:11 +0100 Subject: [PATCH] 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 element; this change removes it when JavaScript is running OK. --- static/js/script.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/static/js/script.js b/static/js/script.js index 929881fb34..840d76f83b 100644 --- a/static/js/script.js +++ b/static/js/script.js @@ -72,6 +72,8 @@ var kub = (function () { headlineWrapper = $('#headlineWrapper'); HEADER_HEIGHT = header.outerHeight(); + document.documentElement.classList.remove('no-js'); + resetTheView(); window.addEventListener('resize', resetTheView);