demo mode
deploy / deploy (push) Canceled after 0s

This commit is contained in:
Jens
2026-07-27 23:38:37 +02:00
parent d28fd05bf6
commit 7caea3a1ee
44 changed files with 1682 additions and 460 deletions
+12
View File
@@ -55,6 +55,18 @@
});
});
if (document.body.dataset.demoReadOnly === "true") {
document.querySelectorAll('form[method="post" i]:not([data-demo-allow])').forEach((form) => {
form.querySelectorAll('button:not([type]), button[type="submit"], input[type="submit"]').forEach((control) => {
control.disabled = true;
control.dataset.demoDisabled = "true";
control.setAttribute("aria-describedby", "demo-read-only-note");
control.title = "Niet beschikbaar in de alleen-lezen demo";
});
});
}
const motionAllowed = !window.matchMedia("(prefers-reduced-motion: reduce)").matches;
if (motionAllowed) {
document.querySelectorAll("[data-radar-illustration]").forEach((illustration) => {