1(function() { 2 'use strict'; 3 window.addEventListener('load', function() { 4 // Fetch all the forms we want to apply custom Bootstrap validation styles to 5 var forms = document.getElementsByClassName('needs-validation'); 6 // Loop over them and prevent submission 7 var validation = Array.prototype.filter.call(forms, function(form) { 8 form.addEventListener('submit', function(event) { 9 if (form.checkValidity() === false) { 10 event.preventDefault(); 11 event.stopPropagation(); 12 } 13 form.classList.add('was-validated'); 14 }, false); 15 }); 16 }, false); 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.