mirror of
https://github.com/kognise/water.css.git
synced 2025-12-07 23:35:10 +01:00
8 lines
No EOL
300 B
JavaScript
8 lines
No EOL
300 B
JavaScript
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')
|
|
} else {
|
|
css.setAttribute('href', 'dist/water-dark.css')
|
|
}
|
|
}) |