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