mirror of
https://gitlab.com/skysthelimit.dev/selenite.git
synced 2025-06-15 10:12:06 -05:00
17 lines
514 B
JavaScript
17 lines
514 B
JavaScript
$(document).ready(function () {
|
|
$("#gamesearch").on("input propertychange paste", function () {
|
|
var txt = $("#gamesearch").val();
|
|
if(txt == "") {
|
|
$("#games .suggest").show();
|
|
} else {
|
|
$("#games .suggest").hide();
|
|
}
|
|
$("#games .game").hide();
|
|
$("#games .game").each(function () {
|
|
if (($(this).text().toUpperCase().indexOf(txt.toUpperCase()) != -1) || ($(this).attr("id").toUpperCase().indexOf(txt.toUpperCase()) != -1)) {
|
|
$(this).show();
|
|
}
|
|
});
|
|
});
|
|
});
|