1document.addEventListener('DOMContentLoaded', () => { 2 let kiButton = document.querySelector('.iki-ki'); 3 let searchBarKiButton = document.querySelector('.btn-lupe-submit-ki'); 4 let kiButtonMobile = document.querySelector('.iki-mobile'); 5 let kiButtonKeyboard = document.querySelector('.iki'); 6 let searchInput = document.querySelector('.ki-lupe'); 7 let kiButtonMobileBurgerSubmit = document.querySelector('.btn-lupe-submit-burger'); 8 let kiButtonMobileBurger = document.querySelector('.ki-lupe-mobile'); 9 10 if (kiButton) { 11 kiButton.addEventListener("click", () => { 12 if(searchInput) { 13 startConversation(searchInput.value); 14 searchInput.value = ''; 15 } else { 16 startConversation(); 17 } 18 }); 19 } 20 21 if (kiButtonMobileBurgerSubmit) { 22 kiButtonMobileBurgerSubmit.addEventListener("click", () => { 23 if(searchInput) { 24 startConversation(searchInput.value); 25 searchInput.value = ''; 26 } else { 27 startConversation(); 28 } 29 }); 30 } 31 32 if (searchBarKiButton) { 33 searchBarKiButton.addEventListener("click", () => { 34 if(searchInput) { 35 startConversation(searchInput.value); 36 searchInput.value = ''; 37 } else { 38 startConversation(); 39 } 40 }); 41 } 42 43 if (kiButtonMobile) { 44 kiButtonMobile.addEventListener("click", () => { 45 if(searchInput) { 46 startConversation(searchInput.value); 47 searchInput.value = ''; 48 } else { 49 startConversation(); 50 } 51 }); 52 } 53 54 if (kiButtonKeyboard) { 55 kiButtonKeyboard.addEventListener("keydown", function(event) { 56 if(event.key === "Enter") { 57 event.preventDefault(); 58 if(searchInput) { 59 startConversation(searchInput.value); 60 searchInput.value = ''; 61 } else { 62 startConversation(); 63 } 64 } 65 }); 66 } 67 68 if (kiButtonMobileBurger) { 69 kiButtonMobileBurger.addEventListener("keydown", function(event) { 70 if(event.key === "Enter") { 71 event.preventDefault(); 72 if(searchInput) { 73 startConversation(searchInput.value); 74 searchInput.value = ''; 75 } else { 76 startConversation(); 77 } 78 } 79 }); 80 } 81 82 if (searchInput) { 83 searchInput.addEventListener("keydown", function(event) { 84 if(event.key === "Enter") { 85 event.preventDefault(); 86 startConversation(searchInput.value); 87 searchInput.value = ''; 88 } 89 }); 90 } 91});
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.