forked from Decentrala/website
		
	fix: issue with button title
This commit is contained in:
		@@ -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();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user