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