mirror of
https://github.com/Queer-Lexikon/regenbogenkarte
synced 2024-11-10 06:34:21 +00:00
28cb5f0bf0
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>
22 lines
686 B
TypeScript
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();
|
|
}
|
|
});
|