mirror of
https://github.com/kognise/water.css.git
synced 2025-12-06 14:54:58 +01:00
Restructure everything
This commit is contained in:
parent
06d99f9eab
commit
54d5cbd805
17 changed files with 230 additions and 243 deletions
|
|
@ -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')
|
||||
}
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue