Update projects.html

This commit is contained in:
LEGALISE_PIRACY 2024-01-26 06:21:34 +00:00
parent 23adbb3747
commit 8b3ba63b31

View File

@ -163,6 +163,24 @@ document.addEventListener("DOMContentLoaded", function () {
}
}
</script>
<script>
function searchGames() {
var input, filter, games, game, title, i;
input = document.getElementById("gamesearch");
filter = input.value.toUpperCase();
games = document.getElementById("games");
game = games.getElementsByClassName("game");
for (i = 0; i < game.length; i++) {
title = game[i].getElementsByTagName("h1")[0];
if (title.innerHTML.toUpperCase().indexOf(filter) > -1) {
game[i].style.display = "";
} else {
game[i].style.display = "none";
}
}
}
</script>
</body>
</html>