mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2026-06-19 04:27:30 +02:00
Deploying to gh-pages from @ agdamsbo/FreesearchR@54dd332cd8 🚀
This commit is contained in:
parent
4cf4bd0499
commit
6d545337de
328 changed files with 12930 additions and 1662 deletions
|
|
@ -26,7 +26,7 @@ const setTheme = theme => {
|
|||
}
|
||||
}
|
||||
|
||||
function bsSetupThemeToggle () {
|
||||
function bsSetupThemeToggle() {
|
||||
'use strict'
|
||||
|
||||
const showActiveTheme = (theme, focus = false) => {
|
||||
|
|
@ -35,7 +35,7 @@ function bsSetupThemeToggle () {
|
|||
document.querySelectorAll('[data-bs-theme-value]').forEach(element => {
|
||||
const buttonTheme = element.getAttribute('data-bs-theme-value')
|
||||
const isActive = buttonTheme == theme
|
||||
|
||||
|
||||
element.classList.toggle('active', isActive)
|
||||
element.setAttribute('aria-pressed', isActive)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue