diff --git a/custom_pages/westgate-pages/topbar-custom.js b/custom_pages/westgate-pages/topbar-custom.js deleted file mode 100644 index 4f18c2b..0000000 --- a/custom_pages/westgate-pages/topbar-custom.js +++ /dev/null @@ -1,224 +0,0 @@ -/* ============================================================================ - SHADOWS OVER WESTGATE — top bar controller - ---------------------------------------------------------------------------- - Paste into ACP -> Settings -> Custom Content -> "Custom JavaScript". - (In the live theme this can instead live in the theme's client-side bundle.) - - WHY THIS FILE EXISTS - - The static page (join-the-team.html) needs NO JavaScript; it is pure - HTML/CSS (the only inline bit is an fallback). Home lives - in the westgate-pages plugin now (templates/home.tpl). - - The TOP BAR needs this small controller for: Forums mega-menu, inline - search, the mobile burger/drawer, and the drawer's Forums accordion. - - NODEBB-SPECIFIC NOTES - - NodeBB is a single-page app: it swaps #content on navigation instead of - reloading. So we DON'T bind to specific nodes on DOMContentLoaded — we use - event delegation on `document`, which keeps working across page changes and - even if the header is re-rendered. - - Inline