+</style><script type="module">document.getElementById("auto-source-form").addEventListener("submit",async t=>{t.preventDefault();const e=new FormData(t.target),r=e.get("url"),o=e.get("strategy");if(r)try{const s=`/auto_source/${btoa(r)}?strategy=${o}`,l=document.getElementById("result"),c=document.getElementById("feed-url"),a=document.getElementById("subscribe-link");c.textContent=s,a.href=s,l.style.display="block",l.scrollIntoView({behavior:"smooth"})}catch(n){console.error("Error generating feed:",n),d("Error generating feed. Please try again.")}});function d(t){const e=document.getElementById("error"),r=document.getElementById("error-message"),o=document.getElementById("result");o.style.display="none",r.textContent=t,e.style.display="block",e.scrollIntoView({behavior:"smooth"})}
0 commit comments