mirror of
https://github.com/kognise/water.css.git
synced 2026-01-14 09:06:12 +01:00
feat: add build files, add docs/ and .github/
This commit is contained in:
parent
21869afbd7
commit
79ad695531
13 changed files with 80 additions and 47 deletions
4
docs/script.js
Normal file
4
docs/script.js
Normal 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' });
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue