mirror of
https://github.com/kognise/water.css.git
synced 2025-12-25 23:57:43 +01:00
fix indexing
fix indexing
This commit is contained in:
parent
fa81838993
commit
efc97a048e
1 changed files with 4 additions and 8 deletions
|
|
@ -71,12 +71,8 @@
|
|||
{ element: '#icon-32', href: { dark: './icons/light-favicon-32x32.png' } }
|
||||
])
|
||||
</script>
|
||||
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<h1>Water.css</h1>
|
||||
<!-- toggle dark-mode -->
|
||||
<div id="theme-container" aria-label="Toggle dark mode">
|
||||
|
|
@ -86,10 +82,10 @@
|
|||
</div>
|
||||
<script>
|
||||
const themeToggleButton = document.getElementById('theme-toggle')
|
||||
const themeStylesheet = document.getElementById('js-stylesheet')
|
||||
const themeIcon = document.getElementById('themeIcon')
|
||||
// Toggle between dark and light themes
|
||||
themeToggleButton.addEventListener('click', () => {
|
||||
const themeStylesheet = document.getElementById('js-stylesheet')
|
||||
const themeIcon = document.getElementById('themeIcon')
|
||||
// Toggle between dark and light themes
|
||||
themeToggleButton.addEventListener('click', () => {
|
||||
const currentTheme = themeStylesheet.getAttribute('href')
|
||||
|
||||
if (currentTheme.includes('light.min.css')) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue