mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-11-02 00:59:44 +00:00
🔧 Update example site config and overrides for v3
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
09f0573749
commit
7659c5f23d
21 files changed
+226
-38
No files matched your search
@@ -26,33 +26,6 @@ window.addEventListener("DOMContentLoaded", (event) => {
|
||||
);
|
||||
});
|
||||
|
||||
function initLayoutLab() {
|
||||
document.querySelectorAll("[data-layout-switcher]").forEach((lab) => {
|
||||
const buttons = lab.querySelectorAll("[data-layout-switcher-button]");
|
||||
const panels = lab.querySelectorAll("[data-layout-switcher-panel]");
|
||||
const activate = (layout) => {
|
||||
buttons.forEach((button) => {
|
||||
const active = button.dataset.layoutSwitcherButton === layout;
|
||||
button.setAttribute("aria-selected", String(active));
|
||||
button.classList.toggle("border-primary-600", active);
|
||||
button.classList.toggle("bg-primary-600", active);
|
||||
button.classList.toggle("text-white", active);
|
||||
button.classList.toggle("dark:border-primary-500", active);
|
||||
button.classList.toggle("dark:bg-primary-500", active);
|
||||
});
|
||||
panels.forEach((panel) => {
|
||||
panel.hidden = panel.dataset.layoutSwitcherPanel !== layout;
|
||||
});
|
||||
};
|
||||
|
||||
buttons.forEach((button) => {
|
||||
button.addEventListener("click", () => activate(button.dataset.layoutSwitcherButton));
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
window.addEventListener("DOMContentLoaded", initLayoutLab);
|
||||
|
||||
var list_config = ["CardViewProse", "CardViewScreenWidth", "NormalView"];
|
||||
|
||||
var titles = {
|
||||
|
||||
Reference in new issue
Block a user