\n"):e,setAttributes(e,t){for(var n in t)e.setAttribute(n,t[n])},inputToggle(e){if(e.target.classList.contains("input-toggle")){let t=e.target.parentElement.lastElementChild;!0===e.target.checked?(t.style.height=t.scrollHeight+"px",t.classList.remove("hidden")):(t.firstChild.value="",t.style.height=null,t.classList.add("hidden"))}},addInput({parent:e,elm:t,placeholder:n,type:l,name:i,max:r}){r=r||6;let a=document.createElement("div");a.setAttribute("class","new-input");let s=document.createElement("input");s.setAttribute("type",l),s.setAttribute("placeholder",n),s.setAttribute("name",i);let o=document.createElement("button");o.setAttribute("class","remove"),o.setAttribute("type","button"),a.appendChild(s),a.appendChild(o),t.appendChild(a),t.childNodes.length>=r&&(t.nextElementSibling.disabled=!0,t.nextElementSibling.style.cssText="opacity:.3;cursor:not-allowed"),e.style.height=e.scrollHeight+"px"},removeInput({elm:e,target:t,max:n}){if(n=n||6,"remove"===t.className){--n;let i=t.parentElement.parentNode;var l=t.parentElement.getBoundingClientRect().height;t.parentElement.remove(),e.style.height=e.getBoundingClientRect().height-l+"px",i.childNodes.length<=n&&(i.nextElementSibling.disabled=!1,i.nextElementSibling.style.cssText="opacity:1;cursor:pointer;")}}};!function(){const e=document.getElementById("output-code"),t=document.getElementById("submit"),n=document.querySelector(".error-box"),l=document.getElementById("blog-url");!async function(){const[i,r]=await Promise.all([fetch("./data/recentpostsjs.txt"),fetch("./data/recentpostscss.txt")]);if(i.ok&&r.ok){const a=await i.text(),s=await r.text();document.addEventListener("focusin",function(e){e.target.classList.contains("error")&&e.target.classList.remove("error")}),t.addEventListener("click",function(){var t,i=helperFn.getVal("#blog-url"),r=helperFn.getVal("#label"),o=helperFn.getVal("#maxposts"),c=helperFn.getVal("#thumbnail"),d=helperFn.getValRadio(".aspectratio input");t=i,t=decodeURIComponent(t);var u='\x3c!-- HTML --\x3e\n
\n\n';if(u+="\x3c!-- JAVASCRIPT --\x3e\n