forked from Decentrala/website
fix: issue with button title
This commit is contained in:
parent
b0f84486d8
commit
1e87f2be84
@ -14,7 +14,7 @@
|
||||
<body>
|
||||
<header>
|
||||
<a id="logo" href="/index.html">Decentrala</a>
|
||||
<button id="theme-switcher"></button>
|
||||
<button id="theme-switcher" title="turn light off"></button>
|
||||
<a class="account" href="/pages/account.html">Nalog</a>
|
||||
</header>
|
||||
<main>
|
||||
|
@ -14,7 +14,7 @@
|
||||
<body>
|
||||
<header>
|
||||
<a id="logo" href="/index.html">Decentrala</a>
|
||||
<button id="theme-switcher"></button>
|
||||
<button id="theme-switcher" title="turn light off"></button>
|
||||
<a class="account" href="/pages/account.html">Nalog</a>
|
||||
</header>
|
||||
<main>
|
||||
|
@ -14,7 +14,7 @@
|
||||
<body>
|
||||
<header>
|
||||
<a id="logo" href="/index.html">Decentrala</a>
|
||||
<button id="theme-switcher"></button>
|
||||
<button id="theme-switcher" title="turn light off"></button>
|
||||
<a class="account" href="/pages/account.html">Nalog</a>
|
||||
</header>
|
||||
<main>
|
||||
|
@ -14,7 +14,7 @@
|
||||
<body>
|
||||
<header>
|
||||
<a id="logo" href="/index.html">Decentrala</a>
|
||||
<button id="theme-switcher"></button>
|
||||
<button id="theme-switcher" title="turn light off"></button>
|
||||
<a class="account" href="/pages/account.html">Nalog</a>
|
||||
</header>
|
||||
<main>
|
||||
|
@ -14,7 +14,7 @@
|
||||
<body>
|
||||
<header>
|
||||
<a id="logo" href="/index.html">Decentrala</a>
|
||||
<button id="theme-switcher"></button>
|
||||
<button id="theme-switcher" title="turn light off"></button>
|
||||
<a class="account" href="/pages/account.html">Nalog</a>
|
||||
</header>
|
||||
<main>
|
||||
|
@ -14,7 +14,7 @@
|
||||
<body>
|
||||
<header>
|
||||
<a id="logo" href="/index.html">Decentrala</a>
|
||||
<button id="theme-switcher"></button>
|
||||
<button id="theme-switcher" title="turn light off"></button>
|
||||
<a class="account" href="/pages/account.html">Nalog</a>
|
||||
</header>
|
||||
<main>
|
||||
|
@ -14,7 +14,7 @@
|
||||
<body>
|
||||
<header>
|
||||
<a id="logo" href="/index.html">Decentrala</a>
|
||||
<button id="theme-switcher"></button>
|
||||
<button id="theme-switcher" title="turn light off"></button>
|
||||
<a class="account" href="/pages/account.html">Nalog</a>
|
||||
</header>
|
||||
<main>
|
||||
|
@ -22,7 +22,8 @@ if (theme !== null) {
|
||||
}
|
||||
|
||||
theme_switcher.addEventListener("click", () => {
|
||||
if (theme_switcher.getAttribute("title").indexOf("off") !== -1) {
|
||||
const attribute = theme_switcher.getAttribute("title") ?? "off"
|
||||
if (attribute.indexOf("off") !== -1) {
|
||||
changeToDarkTheme();
|
||||
} else {
|
||||
changeToLightTheme();
|
||||
|
Loading…
Reference in New Issue
Block a user