refactor: rename existing hamburger file

This commit is contained in:
nachtjasmin 2022-10-26 14:22:36 +02:00 committed by Jasmin
parent 926dc702c8
commit 514ca42a56
2 changed files with 3 additions and 3 deletions

View file

@ -1,6 +1,6 @@
import "./main.css";
import { initializeForms } from "./ts/form";
import { setupHamburger } from "./ts/hamburger";
import { setupInfoButton } from "./ts/info-menu";
import { initializeMap } from "./ts/map";
import "@fontsource/ubuntu/latin.css";
import { setupLegend } from "./ts/legend";
@ -10,7 +10,7 @@ import { addGoatCounter } from "./ts/goatcounter";
document.addEventListener("DOMContentLoaded", () => {
initializeMap();
initializeForms();
setupHamburger();
setupInfoButton();
setupLegend();
setupEmergencyButton();
setupResetButton();

View file

@ -1,6 +1,6 @@
const openClass = "open";
export const setupHamburger = () => {
export const setupInfoButton = () => {
const menu = document.getElementById("menu")!;
const openBtn = document.getElementById("open-menu-btn")!;
const closeBtn = document.getElementById("close-menu-btn")!;