mirror of
https://github.com/kognise/water.css.git
synced 2025-12-06 23:05:07 +01:00
Misc. style changes
This commit is contained in:
parent
4eaabf55cc
commit
06d99f9eab
2 changed files with 5 additions and 5 deletions
|
|
@ -1,8 +1,8 @@
|
|||
document.getElementById('switch').addEventListener('click', () => {
|
||||
const css = document.getElementById('watercss');
|
||||
if (css.getAttribute('href') == 'dist/water-dark.css') {
|
||||
css.setAttribute('href', 'dist/water-light.css')
|
||||
const stylesheet = document.getElementById('stylesheet')
|
||||
if (stylesheet.getAttribute('href') === 'dist/water-dark.css') {
|
||||
stylesheet.setAttribute('href', 'dist/water-light.css')
|
||||
} else {
|
||||
css.setAttribute('href', 'dist/water-dark.css')
|
||||
stylesheet.setAttribute('href', 'dist/water-dark.css')
|
||||
}
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue