More fixes for wording and CSS #8

Merged
fram3d merged 9 commits from hugo/website2:fix-wording2 into v3.0 2023-08-05 15:43:18 +00:00
8 changed files with 9 additions and 8 deletions
Showing only changes of commit 1e87f2be84 - Show all commits

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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();