diff --git a/assets/js/scripts.min.js b/assets/js/scripts.min.js deleted file mode 100755 index bd2ac98..0000000 --- a/assets/js/scripts.min.js +++ /dev/null @@ -1,11 +0,0 @@ -let container=document.querySelector('.js-container') -let toggleButton=document.querySelector('.js-menu-toggle') -toggleButton.addEventListener('click',(e)=>{e.preventDefault();container.classList.toggle('is-menu');document.body.classList.toggle("no-scroll");toggleButton.classList.toggle('is-active');if(toggleButton.getAttribute("aria-expanded")=="false"){toggleButton.setAttribute("aria-expanded","true");}else{toggleButton.setAttribute("aria-expanded","false");}});(function(){let shareButton=document.querySelector('.js-post__share-button');let sharePopup=document.querySelector('.js-post__share-popup');if(shareButton){sharePopup.addEventListener('click',function(e){e.stopPropagation();});shareButton.addEventListener('click',function(e){e.preventDefault();e.stopPropagation();sharePopup.classList.toggle('is-visible');});document.body.addEventListener('click',function(){sharePopup.classList.remove('is-visible');});} -var Config={Link:".js-share",Width:500,Height:500};var slink=document.querySelectorAll(Config.Link);for(var a=0;a-1&&h.indexOf('%')>-1){w=parseFloat(w.replace('%',''));h=parseFloat(h.replace('%',''));ratio=h/w;}else if(w.indexOf('%')===-1&&h.indexOf('%')===-1){w=parseInt(w,10);h=parseInt(h,10);ratio=h/w;} -if(ratio!==false){let ratioValue=(ratio*100)+'%';wrappers[i].setAttribute('style','--embed-aspect-ratio:'+ratioValue);}}})(); \ No newline at end of file