File "homepage.min.js"

Full Path: /home/warrior1/public_html/themes/storefront/assets/js/homepage.min.js
File size: 693 bytes
MIME-type: text/plain
Charset: utf-8

document.addEventListener("DOMContentLoaded",function(){const t=document.querySelector(".page-template-template-homepage .type-page.has-post-thumbnail");if(t){const e=t.querySelectorAll(".entry-title, .entry-content");for(let t=0;t<e.length;t++)e[t].classList.add("loaded");const n=document.querySelector(".site-main"),i=document.documentElement.getAttribute("dir"),o=function(){o._tick&&window.cancelAnimationFrame(o._tick),o._tick=window.requestAnimationFrame(function(){o._tick=null,t.style.width=window.innerWidth+"px","rtl"!==i?t.style.marginLeft=-n.getBoundingClientRect().left+"px":t.style.marginRight=-n.getBoundingClientRect().left+"px"})};window.addEventListener("resize",o),o()}});