diff --git a/commonHelpers.js b/commonHelpers.js new file mode 100644 index 0000000..ef76156 --- /dev/null +++ b/commonHelpers.js @@ -0,0 +1,2 @@ +(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))i(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const r of t.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&i(r)}).observe(document,{childList:!0,subtree:!0});function c(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?t.credentials="include":e.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function i(e){if(e.ep)return;e.ep=!0;const t=c(e);fetch(e.href,t)}})();(()=>{const o={modal:document.querySelector("#mobile-menu"),menuOpenBtn:document.querySelector(".button-menu-open"),menuCloseBtn:document.querySelector(".modal-btn"),menuCloseByLink:document.querySelector(".modal-menu-link"),menuCloseByLinkShop:document.querySelector(".modal-menu-link-shop")};o.menuOpenBtn.addEventListener("click",n),o.menuCloseBtn.addEventListener("click",n),o.menuCloseByLink.addEventListener("click",n),o.menuCloseByLinkShop.addEventListener("click",n);function n(){o.modal.classList.toggle("is-open")}})(); +//# sourceMappingURL=commonHelpers.js.map diff --git a/commonHelpers.js.map b/commonHelpers.js.map index 9415e38..2757e1d 100644 --- a/commonHelpers.js.map +++ b/commonHelpers.js.map @@ -1 +1 @@ -{"version":3,"file":"commonHelpers.js","sources":[],"sourcesContent":[],"names":[],"mappings":""} \ No newline at end of file +{"version":3,"file":"commonHelpers.js","sources":["../src/main.js"],"sourcesContent":["(() => {\n const mobileMenu = {\n modal: document.querySelector('#mobile-menu'),\n menuOpenBtn: document.querySelector('.button-menu-open'),\n menuCloseBtn: document.querySelector('.modal-btn'),\n menuCloseByLink: document.querySelector('.modal-menu-link'),\n menuCloseByLinkShop: document.querySelector('.modal-menu-link-shop'),\n };\n\n mobileMenu.menuOpenBtn.addEventListener('click', toogleIsOpen);\n mobileMenu.menuCloseBtn.addEventListener('click', toogleIsOpen);\n mobileMenu.menuCloseByLink.addEventListener('click', toogleIsOpen);\n mobileMenu.menuCloseByLinkShop.addEventListener('click', toogleIsOpen);\n function toogleIsOpen() {\n mobileMenu.modal.classList.toggle('is-open');\n }\n})();\n"],"names":["mobileMenu","toogleIsOpen"],"mappings":"usBAAC,IAAM,CACL,MAAMA,EAAa,CACjB,MAAO,SAAS,cAAc,cAAc,EAC5C,YAAa,SAAS,cAAc,mBAAmB,EACvD,aAAc,SAAS,cAAc,YAAY,EACjD,gBAAiB,SAAS,cAAc,kBAAkB,EAC1D,oBAAqB,SAAS,cAAc,uBAAuB,CACvE,EAEEA,EAAW,YAAY,iBAAiB,QAASC,CAAY,EAC7DD,EAAW,aAAa,iBAAiB,QAASC,CAAY,EAC9DD,EAAW,gBAAgB,iBAAiB,QAASC,CAAY,EACjED,EAAW,oBAAoB,iBAAiB,QAASC,CAAY,EACrE,SAASA,GAAe,CACtBD,EAAW,MAAM,UAAU,OAAO,SAAS,CAC5C,CACH,GAAI"} \ No newline at end of file diff --git a/index.html b/index.html index bfae686..3e767f4 100644 --- a/index.html +++ b/index.html @@ -18,6 +18,7 @@ rel="stylesheet" /> +
@@ -54,7 +55,7 @@ -