From 9799d7e51581fecda865ae0bf4a73c4fc46f6ed4 Mon Sep 17 00:00:00 2001 From: Zankaria Date: Mon, 15 Apr 2024 23:24:54 +0200 Subject: [PATCH] thread.html main.js: use ids to identify hud top and bottom bars --- templates/main.js | 2 +- templates/thread.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/main.js b/templates/main.js index 6652343d..b981a78b 100755 --- a/templates/main.js +++ b/templates/main.js @@ -227,7 +227,7 @@ function init_stylechooser() { newElement.appendChild(style); } - document.getElementsByTagName('body')[0].insertBefore(newElement, document.getElementsByTagName('body')[0].lastChild.nextSibling); + document.getElementById('bottom-hud').before(newElement); } function get_cookie(cookie_name) { diff --git a/templates/thread.html b/templates/thread.html index 87baad83..89569ff2 100644 --- a/templates/thread.html +++ b/templates/thread.html @@ -29,7 +29,7 @@ {{ board.url }} - {{ meta_subject }} -
+
{{ boardlist.top }}
@@ -106,7 +106,7 @@ {% for footer in config.footer %}

{{ footer }}

{% endfor %}
-
+