PageSourceSearch

https://www.lahsa.org/js/UniversalFormFunctions.js?v=0.2.3

js lahsa.org collected 2026-09-24 09:02:40 UTC 1,205 bytes, 29 lines download raw bytes

1(function () {
2    // your page initialization code here
3    // the DOM will be available here
4    let valMonField = document.getElementsByClassName('validateMoneyField');
5    if (valMonField.length > 0) {
6        let mList = document.querySelectorAll('.validateMoneyField');
7        for (var i = 0; i < mList.length; i++) {
8            mList[i].addEventListener('change', function () {
9                this.value = parseFloat(this.value).toFixed(2);
10            });
11        }
12    }
13
14    let phoneFormatField = document.getElementsByClassName('phoneFormat');
15    if (phoneFormatField.length > 0) {
16        let list = document.querySelectorAll(".phoneFormat");
17        for (var i = 0; i < list.length; i++) {
18            list[i].addEventListener('input', function () {
19                let number = this.value.replace(/[^\d]/g, '');
20                if (number.length == 7) {
21                    number = number.replace(/(\d{3});(\d{4})/, "$1-$2");
22                } else if (number.length == 10) {
23                    number = number.replace(/(\d{3})(\d{3})(\d{4})/, "($1) $2-$3");
24                }
25                this.value = number;
26            });
27        }
28    }
29})();

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.