{"mappings":"AAAA,MAAMA,UAAYC,SAASC,cACzB,yCAEIC,YAAcF,SAASC,cAAc,iCACrCE,UAAYH,SAASI,iBACzB,sCAEIC,OAASL,SAASC,cAAc,qBAEtCF,UAAUO,iBAAiB,SAAS,KAClCP,UAAUQ,UAAUC,OAAO,UAC3BN,YAAYK,UAAUC,OAAO,aAG/BR,SAASM,iBAAiB,UAAU,KAClC,IAAIG,EAAkBC,OAAOC,QAE3BN,OAAOO,MAAMC,gBADXJ,EAAkB,IACW,UAEA,iBAInCN,UAAUW,SAASC,IACjBA,EAAKT,iBAAiB,SAAS,KAC7BP,UAAUQ,UAAUC,OAAO,UAC3BN,YAAYK,UAAUC,OAAO","sources":["index.js"],"sourcesContent":["const hamburger = document.querySelector(\n \".header .nav-bar .nav-list .hamburger\"\n);\nconst mobile_menu = document.querySelector(\".header .nav-bar .nav-list ul\");\nconst menu_item = document.querySelectorAll(\n \".header .nav-bar .nav-list ul li a\"\n);\nconst header = document.querySelector(\".header.container\");\n\nhamburger.addEventListener(\"click\", () => {\n hamburger.classList.toggle(\"active\");\n mobile_menu.classList.toggle(\"active\");\n});\n\ndocument.addEventListener(\"scroll\", () => {\n var scroll_position = window.scrollY;\n if (scroll_position > 250) {\n header.style.backgroundColor = \"#29323c\";\n } else {\n header.style.backgroundColor = \"transparent\";\n }\n});\n\nmenu_item.forEach((item) => {\n item.addEventListener(\"click\", () => {\n hamburger.classList.toggle(\"active\");\n mobile_menu.classList.toggle(\"active\");\n });\n});\n"],"names":["hamburger","document","querySelector","mobile_menu","menu_item","querySelectorAll","header","addEventListener","classList","toggle","scroll_position","window","scrollY","style","backgroundColor","forEach","item"],"version":3,"file":"index.6f34c05a.js.map"}