regenbogenkarte/main.ts
Zora Franke 28cb5f0bf0
Django backend preparation (#147)
This prepares the data fetching for the upcoming Django backend.
It is made in a backwards-compatible way to ensure no breakage
of the existing map.

Co-authored-by: Zora Franke <zora@zorafranke.de>
2024-06-29 14:02:20 +00:00

22 lines
686 B
TypeScript

import "./main.css";
import { initializeForms } from "./ts/form";
import { setupInfoButton } from "./ts/info-menu";
import { initializeMap } from "./ts/map";
import "@fontsource/ubuntu/latin.css";
import { setupLegend } from "./ts/legend";
import { setupEmergencyButton, setupResetButton, setupHamburgerButton } from "./ts/buttons";
import { addGoatCounter } from "./ts/goatcounter";
document.addEventListener("DOMContentLoaded", async () => {
await initializeMap();
initializeForms();
setupInfoButton();
setupLegend();
setupEmergencyButton();
setupResetButton();
setupHamburgerButton();
if (import.meta.env.VITE_QUEER_LEXIKON_PRIVATE === "true") {
addGoatCounter();
}
});