1class Form { 2 static showSuccessMessage(formId, text) { 3 this.showSubmitMessage(formId, text, true); 4 } 5 6 static showErrorMessage(formId, text) { 7 this.showSubmitMessage(formId, text, false); 8 } 9 10 static showSubmitMessage(formId, text, isSuccess) 11 { 12 var form = document.getElementById(formId); 13 var message = form.querySelector(".submitMessage"); 14 message.classList.add(isSuccess ? "submitMessage-success" : "submitMessage-error"); 15 message.innerHTML = text; 16 message.style.display = "block"; 17 setTimeout(() => { 18 this.hideSubmitMessage(message); 19 }, 5000); 20 } 21 22 static hideSubmitMessage(submitMessage) { 23 submitMessage.style.display = "none"; 24 } 25}
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.