8.10.2026 - TimeFunction with Color and hide Quiz

This commit is contained in:
2026-10-08 16:26:02 +02:00
parent 9ca6ac7336
commit 43070072d9
3 changed files with 88 additions and 26 deletions
+4 -8
View File
@@ -1,13 +1,13 @@
document.getElementById("navSearch").oninput = (event) => {
navigationSearch(event)
document.getElementById("navSearch").oninput = () => {
navigationSearch();
};
function navigationSearch(event){
function navigationSearch(){
let value = document.getElementById("navSearch").value;
let lists = document.getElementById("navListItems").childNodes;
lists.forEach((element, key )=> {
lists.forEach((element) => {
if(element.textContent.toLowerCase().includes(value.toLowerCase()))
{
console.log(element.childNodes[0].hidden = false);
@@ -19,8 +19,4 @@ function navigationSearch(event){
console.log(element.textContent);
});
console.log("Input: " +value);
}