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
8b3ba63b31
commit
a6341bcf05
@ -164,23 +164,21 @@ document.addEventListener("DOMContentLoaded", function () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</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++) {
|
<script>
|
||||||
title = game[i].getElementsByTagName("h1")[0];
|
$(document).ready(function() {
|
||||||
if (title.innerHTML.toUpperCase().indexOf(filter) > -1) {
|
$("#gamesearch").on("input", function() {
|
||||||
game[i].style.display = "";
|
var filter = $(this).val().toUpperCase();
|
||||||
|
$(".game").each(function() {
|
||||||
|
var title = $(this).find("h1").text().toUpperCase();
|
||||||
|
if (title.indexOf(filter) > -1) {
|
||||||
|
$(this).show();
|
||||||
} else {
|
} else {
|
||||||
game[i].style.display = "none";
|
$(this).hide();
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user