Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make (push) Successful in 9s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-CMake (push) Successful in 14s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson (push) Failing after 8s
12 lines
410 B
JavaScript
12 lines
410 B
JavaScript
const themecheckbox = document.querySelector('#themecheckbox')
|
|
|
|
themecheckbox.addEventListener('click', (e) => {
|
|
if (themecheckbox.checked) {
|
|
document.documentElement.setAttribute('data-bs-theme', 'dark')
|
|
localStorage.setItem('bs-theme', 'dark')
|
|
} else {
|
|
document.documentElement.setAttribute('data-bs-theme', 'light')
|
|
localStorage.setItem('bs-theme', 'light')
|
|
}
|
|
})
|