This commit is contained in:
Oliver
2025-06-23 12:27:48 -03:00
parent 8f60e78152
commit 24d316a60e
107 changed files with 1359 additions and 13255 deletions

View File

@@ -0,0 +1 @@
document.addEventListener("DOMContentLoaded",function(){const e=document.getElementById("story-modal"),t=document.getElementById("modal-content"),n=document.getElementById("close-modal");document.querySelectorAll(".open-modal").forEach(n=>{n.addEventListener("click",async function(){const n=this.getAttribute("data-story-url");try{const o=await fetch(n),i=await o.text(),a=new DOMParser,s=a.parseFromString(i,"text/html"),r=s.querySelector("article")||s.body;t.innerHTML=r.innerHTML,e.classList.add("show-story-modal")}catch{t.innerHTML="<p>Failed to load content.</p>",e.classList.add("show-story-modal")}})}),n.addEventListener("click",()=>e.classList.remove("show-story-modal"))})