Move demo out of docs folder

This commit is contained in:
Kognise 2019-04-05 12:47:56 -04:00
parent 725ff2aede
commit 901f911ea9
No known key found for this signature in database
GPG key ID: 19AA40F6884A36D6
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')
}
})