Scaffold containerized Django/Wagtail app with core features

This commit is contained in:
Codex_B
2026-02-28 11:52:59 +00:00
parent 62323abd62
commit b5f0f40c4c
84 changed files with 1647 additions and 0 deletions

13
static/js/consent.js Normal file
View File

@@ -0,0 +1,13 @@
(function () {
function parseCookieValue(name) {
const match = document.cookie.match(new RegExp('(?:^|;)\\s*' + name + '\\s*=\\s*([^;]+)'));
if (!match) return {};
try {
return Object.fromEntries(new URLSearchParams(match[1]));
} catch (_e) {
return {};
}
}
const c = parseCookieValue('nhAiConsent');
window.__nhConsent = { analytics: c.a === '1', advertising: c.d === '1' };
})();