1/* ================================================================ 2 TRE â Contact Form JS 3 File: assets/js/tre-contact-form.js 4 ================================================================ */ 5 6(function () { 7 'use strict'; 8 9 document.addEventListener('DOMContentLoaded', function () { 10 document.querySelectorAll('.tre-cf__form').forEach(function (form) { 11 12 form.addEventListener('submit', function () { 13 var btn = form.querySelector('.tre-cf__submit'); 14 if ( btn ) { 15 btn.disabled = true; 16 btn.textContent = 'Sendingâ¦'; 17 } 18 }); 19 20 /* Clear error highlight on input */ 21 form.querySelectorAll('input, select, textarea').forEach(function (field) { 22 field.addEventListener('input', function () { 23 field.style.borderColor = ''; 24 field.style.boxShadow = ''; 25 }); 26 }); 27 }); 28 }); 29 30}());
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.