1/** 2 * Sucht im Namensverzeichnis nach einer Person 3 */ 4$('#fp_eg_searchInput').keyup(function() { 5 const phrase = $(this).val(); 6 fp_eg_search(phrase); 7}); 8function fp_eg_search(phrase) { 9 phrase = phrase.toLowerCase(); 10 if(phrase == "") { 11 $('#fp_eg_search .person').each(function() { 12 $(this).addClass("d-none"); 13 }); 14 } else { 15 $('#fp_eg_search .person').each(function() { 16 const name = $(this).html().toLowerCase(); 17 const containsPhrase = name != name.replace(phrase, ""); 18 if(containsPhrase) { 19 $(this).removeClass("d-none"); 20 } else{ 21 $(this).addClass("d-none"); 22 } 23 24 25 }); 26 } 27}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.