From 46809bd9086bc5e150dd21e0eab79935332e4669 Mon Sep 17 00:00:00 2001 From: vickydotbat Date: Thu, 16 Jul 2026 18:02:24 +0200 Subject: [PATCH] delete unused topbar-custom --- custom_pages/westgate-pages/topbar-custom.js | 224 ------------------- 1 file changed, 224 deletions(-) delete mode 100644 custom_pages/westgate-pages/topbar-custom.js 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