diff --git a/static/dl/2023-12-13_Mitgliedsantrag_cbue-4.pdf b/static/dl/2023-12-13_Mitgliedsantrag_cbue-4.pdf deleted file mode 100644 index fd9c75e..0000000 Binary files a/static/dl/2023-12-13_Mitgliedsantrag_cbue-4.pdf and /dev/null differ diff --git a/static/img/banner_open.jpg b/static/img/banner_open.jpg new file mode 100644 index 0000000..41b2895 Binary files /dev/null and b/static/img/banner_open.jpg differ diff --git a/themes/hugo-theme-flat/static/css/style.css b/themes/hugo-theme-flat/static/css/style.css index 0a3e198..f758b8d 100644 --- a/themes/hugo-theme-flat/static/css/style.css +++ b/themes/hugo-theme-flat/static/css/style.css @@ -258,6 +258,9 @@ a.external:after { background-position-x: center ; background-position-y: top ; } +.header.door_open{ + background-image: url("/img/banner_open.jpg"); +} .header-wrapper, .footer { width: 90vw; diff --git a/themes/hugo-theme-flat/static/js/door-status.js b/themes/hugo-theme-flat/static/js/door-status.js index 37ab6d1..50de736 100644 --- a/themes/hugo-theme-flat/static/js/door-status.js +++ b/themes/hugo-theme-flat/static/js/door-status.js @@ -5,6 +5,14 @@ document.addEventListener("DOMContentLoaded", function () { return response.json(); }) .then(function (data) { + let body=document.getElementsByTagName("body")[0]; + if (data.state.open) { + body.classList.remove("door_closed"); + body.classList.add("door_open"); + } else { + body.classList.remove("door_open"); + body.classList.add("door_closed"); + } document .getElementById("ds-img") .setAttribute(