PageSourceSearch

https://www.adcrux.io/static/js/adcrux.js

js adcrux.io collected 2026-10-08 09:26:09 UTC 3,195 bytes, 87 lines download raw bytes

1// fade out the error message if any
2setTimeout(function(){ $("#error_msg").fadeOut()},3000);
3
4$(document).ready(function() {
5
6
7
8    // process the form
9    $('#reg').submit(function(event) {
10        console.log("processing");
11
12        event.preventDefault();
13        if($('input[name=ipwd]').val() != $('input[name=rpwd]').val())
14        {
15            $("#msgs").html("Password Do Not Match!");
16            return;
17        }
18        else{
19            $("#msgs").html("")
20        }
21
22        $("#submit").html('<span class="spinner-border spinner-border-sm" role="status" aria-hidden="true"></span> &nbsp;<span class="text-center">Registering...</span>');
23
24        // checking query string in url
25        const params = new URLSearchParams(window.location.search)
26        if(params.has('ref')){
27            ref_val = params.get('ref')
28        }
29        else{
30            ref_val = '_blank'
31        }
32
33
34        // get the form data
35        var formData = {
36            'fname'              : $('input[name=fname]').val(),
37            'lname'              : $('input[name=lname]').val(),
38            'email'              : $('input[name=email]').val(),
39            'ipwd'               : $('input[name=ipwd]').val(),
40            'rpwd'               : $('input[name=rpwd]').val(),
41            'refr'               : ref_val,
42        };
43
44        console.log(formData);
45        // process the form
46        $.ajax({
47            type        : 'POST', 
48            url         : '/register', 
49            contentType: "application/json",
50            data        : JSON.stringify(formData), 
51            dataType    : 'json', 
52        })
53        .done(function(data) {
54
55            switch(data.type)
56            {
57                case "success":
58                    $("#msgs").html(data.msg);
59                    $("#submit").html('<span class="text-center">Registered!</span>');
60                    $('#submit').removeClass('btn-primary');
61                    $('#submit').addClass('btn-success');
62                    setTimeout(function(){$("#msgs").html("");                     
63                    $('#submit').removeClass('btn-success');
64                    $('#submit').addClass('btn-primary');
65                    window.location="/login"},5000);
66                    break;
67                case "exists":
68                    $("#msgs").html(data.msg);
69                    $("#submit").html('<span class="text-center">Register Account</span>');
70                    $('#submit').removeClass('btn-primary');
71                    $('#submit').addClass('btn-secondary');
72                    setTimeout(function(){$("#msgs").html("");                     
73                    $('#submit').removeClass('btn-secondary');
74                    $('#submit').addClass('btn-primary');},3000);
75                    break;
76                default:
77                    $("#submit").html('<span class="text-center">Registering...</span>');
78                    $('#submit').removeClass('btn-primary');
79                    $('#submit').addClass('btn-danger');
80                    $("#msgs").html("Unable to Register, Please contact support!");
81                    break;
82            }
83        });
84        
85    });
86
87});

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.