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
32dc75dc6f
commit
d68d4dfa2d
@ -20,6 +20,24 @@
|
||||
<script src="/js/cookie.js"></script>
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
var searchbar = document.querySelector('#gamesearch');
|
||||
var games = document.querySelectorAll('.game');
|
||||
|
||||
searchbar.addEventListener('input', function () {
|
||||
var filter = searchbar.value.toUpperCase();
|
||||
|
||||
games.forEach(function (game) {
|
||||
var gameText = game.textContent || game.innerText;
|
||||
var displayStyle = gameText.toUpperCase().includes(filter) ? '' : 'none';
|
||||
game.style.display = displayStyle;
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<script src='https://cdn.jsdelivr.net/npm/@widgetbot/crate@3' async defer>
|
||||
new Crate({
|
||||
@ -167,25 +185,6 @@ document.addEventListener("DOMContentLoaded", function () {
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<script>
|
||||
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
var searchbar = document.querySelector('#gamesearch');
|
||||
var games = document.querySelectorAll('.game');
|
||||
|
||||
searchbar.addEventListener('input', function () {
|
||||
var filter = searchbar.value.toUpperCase();
|
||||
|
||||
games.forEach(function (game) {
|
||||
var gameText = game.textContent || game.innerText;
|
||||
var displayStyle = gameText.toUpperCase().includes(filter) ? '' : 'none';
|
||||
game.style.display = displayStyle;
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
x
Reference in New Issue
Block a user