PageSourceSearch

https://www.talkradioeurope.com/wp-content/themes/DCCore_Theme/assets/js/tre-contact-form.js?ver=1.0.0

js talkradioeurope.com collected 2026-10-02 05:29:56 UTC 1,027 bytes, 30 lines download raw bytes

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.