mirror of
https://github.com/Luzifer/ots.git
synced 2025-07-20 05:10:04 -04:00
Port frontend to Bootstrap 5.3, split components
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
b8fd877654
commit
8c0807d486
14 changed files with 813 additions and 830 deletions
|
@ -1,8 +1,7 @@
|
|||
<!doctype html>
|
||||
<html lang="en">
|
||||
<html lang="en" data-bs-theme="light">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
||||
{{ range (list "webfonts/fa-solid-900.woff2" "webfonts/fa-brands-400.woff2" "lato-v20-latin-ext_latin-regular.woff2" "lato-v20-latin-ext_latin-700.woff2") }}
|
||||
|
@ -35,7 +34,7 @@
|
|||
window.getTheme = () => localStorage.getItem('set-color-scheme') || (window.matchMedia('(prefers-color-scheme: light)').matches ? 'light' : 'dark')
|
||||
|
||||
window.refreshTheme = () => {
|
||||
document.querySelector('html').setAttribute('mode', window.getTheme())
|
||||
document.querySelector('html').setAttribute('data-bs-theme', window.getTheme())
|
||||
}
|
||||
|
||||
window.setTheme = (theme) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue