mirror of
https://github.com/kognise/water.css.git
synced 2025-08-17 18:37:04 +02:00
Misc. style changes
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
<html lang='en'>
|
<html lang='en'>
|
||||||
<head>
|
<head>
|
||||||
<title>Water.css</title>
|
<title>Water.css</title>
|
||||||
<link id="watercss" rel='stylesheet' href='dist/water-dark.css'>
|
<link id='stylesheet' rel='stylesheet' href='dist/water-dark.css'>
|
||||||
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
|
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
|
||||||
|
|
||||||
<script async src='https://www.googletagmanager.com/gtag/js?id=UA-116663597-6'></script>
|
<script async src='https://www.googletagmanager.com/gtag/js?id=UA-116663597-6'></script>
|
||||||
|
@@ -1,8 +1,8 @@
|
|||||||
document.getElementById('switch').addEventListener('click', () => {
|
document.getElementById('switch').addEventListener('click', () => {
|
||||||
const css = document.getElementById('watercss');
|
const stylesheet = document.getElementById('stylesheet')
|
||||||
if (css.getAttribute('href') == 'dist/water-dark.css') {
|
if (stylesheet.getAttribute('href') === 'dist/water-dark.css') {
|
||||||
css.setAttribute('href', 'dist/water-light.css')
|
stylesheet.setAttribute('href', 'dist/water-light.css')
|
||||||
} else {
|
} else {
|
||||||
css.setAttribute('href', 'dist/water-dark.css')
|
stylesheet.setAttribute('href', 'dist/water-dark.css')
|
||||||
}
|
}
|
||||||
})
|
})
|
Reference in New Issue
Block a user