mirror of
https://gitlab.com/skysthelimit.dev/selenite.git
synced 2025-06-16 02:22:07 -05:00
Update projects.html
This commit is contained in:
parent
8b3ba63b31
commit
a6341bcf05
@ -164,23 +164,21 @@ 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>
|
||||
$(document).ready(function() {
|
||||
$("#gamesearch").on("input", function() {
|
||||
var filter = $(this).val().toUpperCase();
|
||||
$(".game").each(function() {
|
||||
var title = $(this).find("h1").text().toUpperCase();
|
||||
if (title.indexOf(filter) > -1) {
|
||||
$(this).show();
|
||||
} else {
|
||||
$(this).hide();
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
x
Reference in New Issue
Block a user