PageSourceSearch

https://gooutdoorsiowa.com/Scripts/Validation.js?639258275686155750

js gooutdoorsiowa.com collected 2026-09-24 11:19:38 UTC 2,174 bytes, 83 lines download raw bytes

1
2//control input
3var isShift = false;
4function keyUP(keyCode) {
5    if (keyCode == 16)
6        isShift = false;
7}
8//only allow numeric input 
9function isNumeric(keyCode, validateThis) {
10    if (keyCode == 16)
11        isShift = true;
12
13    var isNumericInput = ((keyCode >= 48 && keyCode <= 57 || keyCode == 8 || keyCode == 9 || keyCode == 13 ||
14        (keyCode >= 96 && keyCode <= 105)) && isShift == false);
15
16    if (!isNumericInput) {
17        $(validateThis).removeClass("has-success");
18        $(validateThis).addClass("has-error");
19    }
20    else {
21        $(validateThis).removeClass("has-success");
22        $(validateThis).addClass("has-error");
23    }
24    return isNumericInput;
25}
26
27function isNumber(input) {
28    return !isNaN(input);
29}
30function MaskSocial(input, output) {
31
32    var selected = false;
33
34    /// <summary>
35    /// Masks the social.
36    /// </summary>
37    /// <param name="input">The input.</param>
38    /// <param name="output">The output.</param>
39    input.on("keyup",
40        function (e) {
41
42            var currentText = input.val();
43            var lastKeyEntered = currentText.substr(currentText.length - 1);
44
45            var data = output;
46            var currentData = data.val();
47
48            if (selected) {
49                data.val("");
50            }
51
52            var key = e.keyCode || e.charCode;
53
54            // when deleting synch data
55            if (lastKeyEntered.length == 0 || key == 8) {
56                data.val(currentData.slice(0, -1));
57            } else if (key != 46) {
58                // update
59                data.val(data.val() + lastKeyEntered);
60            }
61
62            // synch backing data
63            if (currentText.length == 0) {
64                data.val("");
65            }
66
67            //alert(data.val());
68
69            input.val(function (i, text) {
70                if (text.length <= 9) {
71                    return text.replace(/\d/g, "*");
72                }
73                return false;
74            });
75
76            selected = false;
77
78        }).on("select",
79        function (e) {
80            selected = true;
81        });
82
83}

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.