diff --git a/assets/js/a11y.js b/assets/js/a11y.js index 4c375b7c..48603832 100644 --- a/assets/js/a11y.js +++ b/assets/js/a11y.js @@ -16,14 +16,10 @@ window.A11yPanel = (() => { disableImages: { default: false, apply: (enabled) => { - document.querySelectorAll("script[data-target-id]").forEach((script) => { - const image = document.getElementById(script.getAttribute("data-image-id")); - const imageUrl = script.getAttribute("data-image-url"); - if (image) { - image.style.display = enabled ? "none" : ""; - if (!enabled && imageUrl && !image.src) image.src = imageUrl; - } - }); + const image = document.getElementById("background-image"); + if (image) { + image.style.display = enabled ? "none" : ""; + } }, }, diff --git a/layouts/partials/header/basic.html b/layouts/partials/header/basic.html index 18aab05e..328d04e0 100644 --- a/layouts/partials/header/basic.html +++ b/layouts/partials/header/basic.html @@ -198,14 +198,17 @@