feat: add build files, add docs/ and .github/

This commit is contained in:
Jonas Kuske 2019-05-27 22:41:36 +02:00
parent 21869afbd7
commit 79ad695531
13 changed files with 80 additions and 47 deletions

4
docs/script.js Normal file
View file

@ -0,0 +1,4 @@
document.getElementById('switch').addEventListener('click', function() {
const stylesheet = document.getElementById('stylesheet');
stylesheet.href = stylesheet.href.replace(/dark|light/, function(replaced) { return replaced === 'dark' ? 'light' : 'dark' });
});