diff --git a/footer.js b/footer.js new file mode 100644 index 0000000..e6bb3ed --- /dev/null +++ b/footer.js @@ -0,0 +1,120 @@ +/* ═══════════════════════════════════════════════════════════════════════ + The Radical Party — shared footer / wayfinding component. + + ONE script, loaded on every subdomain, so no island is a dead end: + + + - Self-contained: injects itself into , styles live in a Shadow DOM + so nothing leaks in or out of the host page's CSS. + - Central: edit this one file, every site updates. No per-repo redeploy. + - Two modes, chosen via a data attribute on the script tag: + (default) full footer bar at the end of the page. + data-mode="pill" compact fixed corner badge — for full-screen apps + (maps, games) where a block footer would be hidden. + Optional: data-accent="#ff0099" to match a site's own accent. + ═══════════════════════════════════════════════════════════════════════ */ +(function () { + if (window.__radicalFooter) return; + window.__radicalFooter = 1; + + // Read config off our own