Skip to content

Commit 7738ba1

Browse files
author
Tim Bannister
committed
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.
1 parent 9c475f3 commit 7738ba1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

static/js/script.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ var kub = (function () {
7272
headlineWrapper = $('#headlineWrapper');
7373
HEADER_HEIGHT = header.outerHeight();
7474

75+
document.documentElement.classList.remove('no-js');
76+
7577
resetTheView();
7678

7779
window.addEventListener('resize', resetTheView);

0 commit comments

Comments
 (0)