Primer Primer Commit

This commit is contained in:
2025-09-21 12:14:02 -04:00
parent 3a03b570f9
commit cda4e957de
362 changed files with 215921 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
(function () {
'use strict'
// Fetch all the forms we want to apply custom Bootstrap validation styles to
var forms = document.querySelectorAll('.needs-validation')
// Loop over them and prevent submission
Array.prototype.slice.call(forms)
.forEach(function (form) {
form.addEventListener('submit', function (event) {
if (!form.checkValidity()) {
event.preventDefault()
event.stopPropagation()
}
form.classList.add('was-validated')
}, false)
})
})()