From 0ca39da0327d9383acd83f12ad1bb3d905a5322a Mon Sep 17 00:00:00 2001 From: Tristan Schneider Date: Sat, 13 Feb 2021 21:49:13 +0100 Subject: [PATCH] legendary archive logo can be configured --- index.php | 5 ++++- owe.js | 6 ++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index a13fa5e..212347e 100644 --- a/index.php +++ b/index.php @@ -95,7 +95,10 @@ $config_data = json_decode($raw_json_config, false);
" style="width: 10%; float: left;">

headline ?? "One Word Each Seite"); ?>

- +
diff --git a/owe.js b/owe.js index db53f7c..209be09 100644 --- a/owe.js +++ b/owe.js @@ -85,9 +85,15 @@ function toggleArchives() { if (archives.style.display == "none") { archives.style.display = "flex"; + if (config_data.archive) { + document.getElementById("archive_image").src = config_data.archive.logo_path_open + } return; } archives.style.display = "none"; + if (config_data.archive) { + document.getElementById("archive_image").src = config_data.archive.logo_path_closed + } } function resetUnread() {