var input=document.getElementById("SearchGames");function myFunction(e){for(var t=e.target.value.toUpperCase(),n=document.getElementById("list-games").getElementsByTagName("div"),s=0;s<n.length;s++){var a=n[s].getElementsByTagName("h3")[0];a&&(a.innerHTML.toUpperCase().indexOf(t)>-1?n[s].style.display="":n[s].style.display="none")}}input.addEventListener("input",myFunction);const triggers=document.getElementsByClassName("pattern-btn"),triggerArray=Array.from(triggers).entries(),modals=document.getElementsByClassName("modal"),closeButtons=document.getElementsByClassName("btn-close");for(let[index,trigger]of triggerArray){let e=()=>{modals[index].classList.toggle("show-modal")};trigger.addEventListener("click",e),closeButtons[index].addEventListener("click",e)}setTimeout(()=>{var e;document.querySelector(".pageload").style.display="none"},3e3);