commit 162a5cfb1b2126d58713b682a441e1037f3605ef parent 9bab9d2e0c41ba153abbfd788c1c3258a06fb91c Author: Hugo Soucy <hugo@soucy.cc> Date: Sat, 17 Oct 2020 22:56:22 -0400 Add the main JS file Diffstat:
A | js/index.js | | | 12 | ++++++++++++ |
1 file changed, 12 insertions(+), 0 deletions(-)
diff --git a/js/index.js b/js/index.js @@ -0,0 +1,12 @@ +(function () { + 'use strict'; + // Switch "no-js" class to "with-js" + document.documentElement.className = 'with-js'; + + // https://responsivenews.co.uk/post/18948466399/cutting-the-mustard + if ('querySelector' in document + && 'localStorage' in window + && 'addEventListener' in window) { + // bootstrap the javascript application + } +})();