Browse Source

Fixed dark theme banner

pull/76/merge
Jure Šorn 1 week ago
parent
commit
57dc6c523f
2 changed files with 4 additions and 4 deletions
  1. 6
      index.html
  2. 2
      parse.js

6
index.html

@ -55,7 +55,7 @@
<body>
<header>
<aside>February 9, 2025</aside>
<aside>February 16, 2025</aside>
<a href="https://gto76.github.io" rel="author">Jure Šorn</a>
</header>
@ -67,7 +67,7 @@
var link_to_theme = document.createElement("a")
link_to_theme.href = "index.html"
link_to_theme.text = "Switch to light theme"
document.getElementsByClassName("banner")[0].firstChild.children[4].replaceWith(link_to_theme)
document.getElementsByClassName("banner")[0].firstChild.children[3].replaceWith(link_to_theme)
var img_dark = document.createElement("img");
img_dark.src = "web/image_orig_blue6.png";
@ -2931,7 +2931,7 @@ $ deactivate <span class="hljs-comment"># Deactivates the active
<footer>
<aside>February 9, 2025</aside>
<aside>February 16, 2025</aside>
<a href="https://gto76.github.io" rel="author">Jure Šorn</a>
</footer>

2
parse.js

@ -742,7 +742,7 @@ const DARK_THEME_SCRIPT =
' var link_to_theme = document.createElement("a")\n' +
' link_to_theme.href = "index.html"\n' +
' link_to_theme.text = "Switch to light theme"\n' +
' document.getElementsByClassName("banner")[0].firstChild.children[4].replaceWith(link_to_theme)\n' +
' document.getElementsByClassName("banner")[0].firstChild.children[3].replaceWith(link_to_theme)\n' +
'\n' +
' var img_dark = document.createElement("img");\n' +
' img_dark.src = "web/image_orig_blue6.png";\n' +

Loading…
Cancel
Save