PageSourceSearch

https://account.capium.com/js/login.js

js capium.com collected 2026-09-24 12:07:33 UTC 3,288 bytes, 130 lines download raw bytes

1$(document).ready(function ()
2{
3
4    $("#Password").focus(function () {
5        $("#showPass").addClass("passwordFocus");
6    });
7    $("#Password").focusout(function () {
8        $("#showPass").removeClass("passwordFocus");
9    });
10
11    $('#showPass').on('click', function ()
12    {
13        var passInput = $("#Password");
14        if (passInput.attr('type') === 'password') {
15            passInput.attr('type', 'text');
16            $('#showPass').attr("title", "Hide");
17            $('#showPass').html("<i class='fa fa-eye' ></i>")
18        }
19        else {
20            passInput.attr('type', 'password');
21            $('#showPass').attr("title", "Show");
22            $('#showPass').html("<i class='fa fa-eye-slash' ></i>")
23        }
24    })
25    //function disableBack() 
26    //  {
27    //    window.history.forward()
28    //  }
29    //window.onload = disableBack();
30    //window.onpageshow = function (e) 
31    //{
32    //    if (e.persisted)
33    //        disableBack();
34    //}
35
36
37})
38
39$(document).on("click", "#lnkReSendVerification", function () {
40
41    $("#formReSendVerification").submit();
42})
43
44$(document).on("click", "#btnLogin", function (event) {
45
46    var valid = $("#loginForm").valid();
47    if (!valid) {
48        $(".field-validation-error").html('');
49        event.preventDefault();
50    }
51    else {
52        $("#loginForm").submit();
53    }
54})
55
56$(document).on("click", "#btnSingUp", function (event) {
57
58    var valid = $("#signUpForm").valid();
59    if (!valid) {
60        $(".field-validation-error").html('');
61        event.preventDefault();
62    }
63    else {
64        if ($("#chkTermcondition").prop('checked') == true) {
65            $("#signUpForm").submit();
66        }
67        else {
68            $("#chkTermcondition").addClass("input-validation-error");
69            event.preventDefault();
70        }
71    }
72});
73
74$(document).on("click", "#btnForgotPwd", function () {
75    $("#ErrorEmailVerified").html('');
76    IsValid = true;
77    var url = "/Account/ValidateForgotPasswordEmail"
78    if ($("#floatingInput").val().trim() != '')
79    {
80        CallAjaxMethod(url, "POST", function (response) {
81            
82            if (response.isSuccess) {
83                $("#ErrorEmailVerified").html('');
84                location.href = "/Account/ForgotPasswords?codeid=" + response.entityUId + ""
85
86            } else {
87                $("#ErrorEmailVerified").html(response.statusMessage);
88            }
89
90
91        }, function () {
92
93        }, { email: $("#floatingInput").val() });
94
95    }
96    else
97    {
98        // location.href = "/Account/ForgotPassword"
99        $("#ErrorEmailVerified").html("Please enter your registered email to reset your password.");
100    }
101
102})
103
104$(document).on("keypress", "#floatingInput", function ()
105{
106
107    $(this).removeClass("input-validation-error");
108    $(this).next('span').text('');
109    
110})
111$(document).on("change", "#chkTermcondition", function ()
112{
113    if ($(this).prop('checked') == true) 
114    $(this).removeClass("input-validation-error");
115   
116    
117})
118
119function CallAjaxMethod(url, type, onSuccess, onFail, params) {
120    $.ajax({
121        type: type,
122        url: url,
123        data: params,
124        //contentType: "application/json; charset=utf-8",
125        dataType: "json",
126        success: onSuccess,
127        fail: onFail,
128        error: onFail
129    });
130};

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.