mirror of
https://github.com/kognise/water.css.git
synced 2026-01-26 14:57:56 +01:00
Moved /docs back into root
This commit is contained in:
parent
5cf0f08d5e
commit
216432bf8f
5 changed files with 0 additions and 0 deletions
4
script.js
Normal file
4
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