mirror of
https://gitlab.com/skysthelimit.dev/selenite.git
synced 2025-06-16 10:32:08 -05:00
Update projects.html
This commit is contained in:
parent
23adbb3747
commit
8b3ba63b31
@ -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>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user