From 9870afdb47049e91e6e807a35ca682070f481cbc Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Sun, 7 Jul 2024 11:53:10 +0100 Subject: [PATCH] Fix forum unpainted nav on Firefox Firefox was showing the navbar unpainted which was a result of waiting for the inline script to load so move it separate file and load in footer. --- .../template/deluge_nav.js | 8 ++ .../template/deluge_nav_phpbb.html | 15 +-- .../template/overall_footer.html | 121 ++++++++++++++++++ 3 files changed, 131 insertions(+), 13 deletions(-) create mode 100644 forum.deluge-torrent.org/htdocs/styles/deluge_stormyday_3.3/template/deluge_nav.js create mode 100644 forum.deluge-torrent.org/htdocs/styles/deluge_stormyday_3.3/template/overall_footer.html diff --git a/forum.deluge-torrent.org/htdocs/styles/deluge_stormyday_3.3/template/deluge_nav.js b/forum.deluge-torrent.org/htdocs/styles/deluge_stormyday_3.3/template/deluge_nav.js new file mode 100644 index 000000000..30bf2be05 --- /dev/null +++ b/forum.deluge-torrent.org/htdocs/styles/deluge_stormyday_3.3/template/deluge_nav.js @@ -0,0 +1,8 @@ +const navList = document.getElementById("deluge-nav-lists"); +function show_nav_menu() { + navList.classList.add("menus-show"); +} + +function hide_nav_menu() { + navList.classList.remove("menus-show"); +} diff --git a/forum.deluge-torrent.org/htdocs/styles/deluge_stormyday_3.3/template/deluge_nav_phpbb.html b/forum.deluge-torrent.org/htdocs/styles/deluge_stormyday_3.3/template/deluge_nav_phpbb.html index 0abd0648b..4d6b9d318 100644 --- a/forum.deluge-torrent.org/htdocs/styles/deluge_stormyday_3.3/template/deluge_nav_phpbb.html +++ b/forum.deluge-torrent.org/htdocs/styles/deluge_stormyday_3.3/template/deluge_nav_phpbb.html @@ -6,14 +6,14 @@
-
+
- - diff --git a/forum.deluge-torrent.org/htdocs/styles/deluge_stormyday_3.3/template/overall_footer.html b/forum.deluge-torrent.org/htdocs/styles/deluge_stormyday_3.3/template/overall_footer.html new file mode 100644 index 000000000..a24786bba --- /dev/null +++ b/forum.deluge-torrent.org/htdocs/styles/deluge_stormyday_3.3/template/overall_footer.html @@ -0,0 +1,121 @@ + + + + + + + + + +
+ + {% if not S_IS_BOT %}{{ RUN_CRON_TASK }}{% endif %} +
+ + + + + + + + + + + + + + + + + + + +{$SCRIPTS} + + + + +