PageSourceSearch

https://www.elitedental-studio.com/js/d-tect.js

js elitedental-studio.com collected 2026-10-04 08:38:27 UTC 1,179 bytes, 49 lines download raw bytes

1
2var enterDate = new Date();
3function secondsSinceEnter() {
4    return (new Date() - enterDate) / 1000;
5}
6
7function d_tect() {
8        if (secondsSinceEnter() > 5) {
9            return 1;
10        }
11        else {
12            return 0;
13            }
14}
15
16
17
18
19var valgroup = '';
20function ValidateInputs(sender, args) {
21    var phone = $(sender).parent().find('input[type=tel]').eq(0).val();
22    var email = $(sender).parent().find('input[type=email]').eq(0).val();
23    //rwd2 check
24    if (email === undefined) {
25        email = $(sender).parent().parent().parent().find('input[type=email]').eq(0).val();
26    }
27    if (phone === '' && email === '') {
28        args.IsValid = false;
29    }
30    else {
31        args.IsValid = true;
32    }
33}
34
35
36
37function ValidateForm(valgroup, sender) {
38    var btnSend = document.getElementById(sender);
39    if (Page_ClientValidate(valgroup)) {
40        if (!d_tect()) {
41            document.location.href = '/thankyoupage.aspx?v=5';
42            return false;
43        }
44        btnSend.disabled = 'disabled';
45        btnSend.innerText = 'Sending...';
46        return true;
47    }
48    else { return false;}
49}

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.