Restructure everything

This commit is contained in:
Kognise 2019-04-06 15:07:11 -04:00
parent 06d99f9eab
commit 54d5cbd805
No known key found for this signature in database
GPG key ID: 19AA40F6884A36D6
17 changed files with 230 additions and 243 deletions

View file

@ -1,8 +1,8 @@
document.getElementById('switch').addEventListener('click', () => {
const stylesheet = document.getElementById('stylesheet')
if (stylesheet.getAttribute('href') === 'dist/water-dark.css') {
stylesheet.setAttribute('href', 'dist/water-light.css')
if (stylesheet.getAttribute('href') === 'dist/dark.css') {
stylesheet.setAttribute('href', 'dist/light.css')
} else {
stylesheet.setAttribute('href', 'dist/water-dark.css')
stylesheet.setAttribute('href', 'dist/dark.css')
}
})