-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.7f9a1e82.js.map
1 lines (1 loc) · 2.34 KB
/
index.7f9a1e82.js.map
1
{"mappings":"AAIC,MACC,MAAMA,EAAaC,SAASC,cAAc,sBACpCC,EAAcF,SAASC,cAAc,iBACrCE,EAAeH,SAASC,cAAc,kBAEtCG,EAAa,KACjB,MAAMC,EAA2D,SAA9CH,EAAYI,aAAa,mBAA+B,EAC3EJ,EAAYK,aAAa,iBAAkBF,GAC3CN,EAAWS,UAAUC,OAAO,WAG5BC,eAD0BL,EAAmC,mBAAtB,qBACNL,SAASW,KAAI,EAGhDT,EAAYU,iBAAiB,QAASR,GACtCD,EAAaS,iBAAiB,QAASR,GAGvCS,OAAOC,WAAW,sBAAsBF,iBAAiB,UAAUG,IAC5DA,EAAEC,UACPjB,EAAWS,UAAUS,OAAO,WAC5Bf,EAAYK,aAAa,iBAAiB,GAC1CG,eAAeQ,iBAAiBlB,SAASW,MAAI,GAEjD,EAxBC","sources":["src/index.js"],"sourcesContent":["import './sass/main.scss';\n\n/* MENU-MOBILNE*/\n\n(() => {\n const mobileMenu = document.querySelector('.js-menu-container');\n const openMenuBtn = document.querySelector('.js-open-menu');\n const closeMenuBtn = document.querySelector('.js-close-menu');\n\n const toggleMenu = () => {\n const isMenuOpen = openMenuBtn.getAttribute('aria-expanded') === 'true' || false;\n openMenuBtn.setAttribute('aria-expanded', !isMenuOpen);\n mobileMenu.classList.toggle('is-open');\n\n const scrollLockMethod = !isMenuOpen ? 'disableBodyScroll' : 'enableBodyScroll';\n bodyScrollLock[scrollLockMethod](document.body);\n };\n\n openMenuBtn.addEventListener('click', toggleMenu);\n closeMenuBtn.addEventListener('click', toggleMenu);\n\n // Close the mobile menu on wider screens if the device orientation changes\n window.matchMedia('(min-width: 768px)').addEventListener('change', e => {\n if (!e.matches) return;\n mobileMenu.classList.remove('is-open');\n openMenuBtn.setAttribute('aria-expanded', false);\n bodyScrollLock.enableBodyScroll(document.body);\n });\n})();\n\n/*MODAL DO FORMULARZA*/\n\n// (() => {\n// const refs = {\n// openModalBtn: document.querySelector('[data-modal-open]'),\n// closeModalBtn: document.querySelector('[data-modal-close]'),\n// modal: document.querySelector('[data-modal]'),\n// };\n\n// refs.openModalBtn.addEventListener('click', toggleModal);\n// refs.closeModalBtn.addEventListener('click', toggleModal);\n\n// function toggleModal() {\n// refs.modal.classList.toggle('is-hidden');\n// }\n// })();\n"],"names":["mobileMenu","document","querySelector","openMenuBtn","closeMenuBtn","toggleMenu","isMenuOpen","getAttribute","setAttribute","classList","toggle","bodyScrollLock","body","addEventListener","window","matchMedia","e","matches","remove","enableBodyScroll"],"version":3,"file":"index.7f9a1e82.js.map"}