1// JavaScript code to check if a resource exists 2function checkResourceExistence(resourcePath) { 3 var servletUrl = '/bin/bot/checkFormResourceExist?formResourcePath=' + resourcePath; 4 fetch(servletUrl) 5 .then(response => response.json()) 6 .then(data => { 7 if (data.exists) { 8 document.querySelector(".form-container__main").classList.remove('hidden'); 9 } else { 10 document.querySelector(".form-container__main").innerHTML=''; 11 document.querySelector(".form-not-available-error__container__main").classList.remove('hidden'); 12 } 13 }) 14 .catch(error => { 15 console.error('Error:', error); 16 }); 17}
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.