From cf7f3c9bb4f9adef9136a05e5a146f25d9d5c77d Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 19 Apr 2016 23:30:44 +0100 Subject: [PATCH] Remove the no-js class if there is JavaScript. --- assets/js/main.js | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 assets/js/main.js diff --git a/assets/js/main.js b/assets/js/main.js new file mode 100644 index 000000000..f7f3515b7 --- /dev/null +++ b/assets/js/main.js @@ -0,0 +1,4 @@ +(function ($) { + // Update the HTML classes. + $('html.no-js').removeClass('no-js').addClass('js'); +})(jQuery);