fix minime
This commit is contained in:
14
assets/scripts/tonTruc.js
Normal file
14
assets/scripts/tonTruc.js
Normal file
@@ -0,0 +1,14 @@
|
||||
// JavaScript code
|
||||
function rechercher_evenement() {
|
||||
let input = document.getElementById("searchbar").value;
|
||||
input = input.toLowerCase();
|
||||
let x = document.getElementsByClassName("animals");
|
||||
|
||||
for (i = 0; i < x.length; i++) {
|
||||
if (!x[i].innerHTML.toLowerCase().includes(input)) {
|
||||
x[i].style.display = "none";
|
||||
} else {
|
||||
x[i].style.display = "list-item";
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user