Skip to content

Commit

Permalink
Update list.html
Browse files Browse the repository at this point in the history
  • Loading branch information
MegaTheLEGEND committed Feb 3, 2024
1 parent d79c658 commit fe2f28c
Showing 1 changed file with 35 additions and 2 deletions.
37 changes: 35 additions & 2 deletions FZ2.3-dev/File-Z-master/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,18 @@
<body>
<div class="container">
<div class="box">
<input type="text" id="gsearchbar" onkeyup="document.querySelectorAll('#glist>a').forEach(l=>l.style.display=l.textContent.toUpperCase().includes(this.value.toUpperCase().replace(/ /g,''))?'block':'none')" autocomplete="off" spellcheck="false" placeholder="Search" />


<input
type="text"
id="gsearchbar"
onkeyup="filterLinks()"
autocomplete="off"
spellcheck="false"
placeholder="Search"
/>


<div id="glist">
<h2 alt="press CRTL + SHIFT + R if your actually online">Offline Mode</h2>
<h2>HTML5 Games</h2>
Expand Down Expand Up @@ -354,6 +365,28 @@ <h2>Off Topic</h2>
</div>
</div>
</div>
<script src="https://megathelegend.github.io/File-Z-backend/gs/list/listmod.js"></script>

<script>
document.getElementById('gsearchbar').addEventListener('input', filterLinks);

function filterLinks() {
console.log("Function triggered");

var searchValue = document.getElementById('gsearchbar').value.toUpperCase().replace(/ /g, '');
var links = document.querySelectorAll('#glist>a');

links.forEach(function(link) {
link.style.display = link.textContent.toUpperCase().includes(searchValue) ? 'block' : 'none';
});

if (searchValue.indexOf("RICK") !== -1) {
window.location.replace("css/other-assets/index.html");
}
}
</script>



<script src="https:/megathelegend.github.io/File-Z-backend/gs/list/listmod.js"></script>
</body>
</html>

0 comments on commit fe2f28c

Please sign in to comment.