From c89b16df11945075efc34815b66bdff6de1369e6 Mon Sep 17 00:00:00 2001 From: Claudio-Emmolo Date: Tue, 2 Jul 2024 07:39:13 +0000 Subject: [PATCH] Build assets --- dist/js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/js/main.js b/dist/js/main.js index e786f6e..6324e39 100644 --- a/dist/js/main.js +++ b/dist/js/main.js @@ -1 +1 @@ -function setDefaultSelectValue(){var e=document.querySelector("div.modal.fixed select");e&&(e.value="Default")}function addAspectRatioToImage(){document.querySelectorAll("#nova form button img").forEach(e=>{e.naturalWidth;var t=e.naturalHeight,a=document.createElement("div");Object.assign(a.style,{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",overflow:"hidden",width:t+"px",height:t+"px",border:"2px solid lime"}),e.parentElement.classList.add("relative"),e.parentElement.appendChild(a)})}document.addEventListener("DOMContentLoaded",function(){setDefaultSelectValue(),setTimeout(()=>{console.log("DOM fully loaded and parsed"),addAspectRatioToImage()},100)}); \ No newline at end of file +function setDefaultSelectValue(){var e=document.querySelector("div.modal.fixed select");e&&(e.value="Default")}function addAspectRatioToImage(){document.querySelectorAll("#nova form button img").forEach(e=>{e.naturalWidth;var t=e.naturalHeight,a=document.createElement("div");Object.assign(a.style,{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",overflow:"hidden",width:t+"px",height:t+"px",border:"2px solid lime"}),e.parentElement.classList.add("relative"),e.parentElement.appendChild(a)})}document.addEventListener("DOMContentLoaded",function(){setDefaultSelectValue(),setTimeout(()=>{console.log("DOM fully loaded and parsed"),addAspectRatioToImage()},300)}); \ No newline at end of file