1
0
mirror of https://github.com/kognise/water.css.git synced 2025-08-15 01:24:46 +02:00

Move demo out of docs folder

This commit is contained in:
Kognise
2019-04-05 12:47:56 -04:00
parent 725ff2aede
commit 901f911ea9
2 changed files with 2 additions and 1 deletions

View File

@@ -1,11 +0,0 @@
document.getElementById('switch').addEventListener('click', () => {
const { body } = document
const ph = document.getElementById('ph')
if (body.classList.contains('light')) {
body.classList.remove('light')
ph.src = ph.src.replace('theme=light', 'theme=dark')
} else {
body.classList.add('light')
ph.src = ph.src.replace('theme=dark', 'theme=light')
}
})