2022-09-04 08:26:20 +00:00
|
|
|
import "./main.css";
|
|
|
|
import { initializeForms } from "./ts/form";
|
2022-10-26 12:22:36 +00:00
|
|
|
import { setupInfoButton } from "./ts/info-menu";
|
2022-09-04 08:26:20 +00:00
|
|
|
import { initializeMap } from "./ts/map";
|
|
|
|
import "@fontsource/ubuntu/latin.css";
|
|
|
|
import { setupLegend } from "./ts/legend";
|
2022-10-26 12:25:21 +00:00
|
|
|
import { setupEmergencyButton, setupResetButton, setupHamburgerButton } from "./ts/buttons";
|
2022-09-08 13:48:59 +00:00
|
|
|
import { addGoatCounter } from "./ts/goatcounter";
|
2022-09-04 08:26:20 +00:00
|
|
|
|
2024-06-29 14:02:20 +00:00
|
|
|
document.addEventListener("DOMContentLoaded", async () => {
|
|
|
|
await initializeMap();
|
2022-09-04 08:26:20 +00:00
|
|
|
initializeForms();
|
2022-10-26 12:22:36 +00:00
|
|
|
setupInfoButton();
|
2022-09-04 08:26:20 +00:00
|
|
|
setupLegend();
|
|
|
|
setupEmergencyButton();
|
2022-10-01 10:34:36 +00:00
|
|
|
setupResetButton();
|
2022-10-26 12:25:21 +00:00
|
|
|
setupHamburgerButton();
|
2022-09-08 13:48:59 +00:00
|
|
|
|
|
|
|
if (import.meta.env.VITE_QUEER_LEXIKON_PRIVATE === "true") {
|
|
|
|
addGoatCounter();
|
|
|
|
}
|
2022-09-04 08:26:20 +00:00
|
|
|
});
|