jcarrier-theme

A Grav CMS theme for <https://jacynthecarrier.com>.
git clone git://soucy.cc/jcarrier-theme.git
Log | Files | Refs | README | LICENSE

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:
Ajs/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 + } +})();