2022-09-04 08:26:20 +00:00
|
|
|
import "./main.css";
|
|
|
|
import { initializeForms } from "./ts/form";
|
|
|
|
import { setupHamburger } from "./ts/hamburger";
|
|
|
|
import { initializeMap } from "./ts/map";
|
|
|
|
import "@fontsource/ubuntu/latin.css";
|
|
|
|
import { setupLegend } from "./ts/legend";
|
|
|
|
import { setupEmergencyButton } from "./ts/emergency-button";
|
2022-09-08 13:48:59 +00:00
|
|
|
import { addGoatCounter } from "./ts/goatcounter";
|
2022-09-04 08:26:20 +00:00
|
|
|
|
|
|
|
document.addEventListener("DOMContentLoaded", () => {
|
|
|
|
initializeMap();
|
|
|
|
initializeForms();
|
|
|
|
setupHamburger();
|
|
|
|
setupLegend();
|
|
|
|
setupEmergencyButton();
|
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
|
|
|
});
|