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.
This commit is contained in:
@@ -72,6 +72,8 @@ var kub = (function () {
|
||||
headlineWrapper = $('#headlineWrapper');
|
||||
HEADER_HEIGHT = header.outerHeight();
|
||||
|
||||
document.documentElement.classList.remove('no-js');
|
||||
|
||||
resetTheView();
|
||||
|
||||
window.addEventListener('resize', resetTheView);
|
||||
|
||||
Reference in New Issue
Block a user