PageSourceSearch

https://susanhollandrealtor.com/Widgets/SiteUser/SiteUserLoginRedi…x-iwVnSW4SGLofm0xlSvxCP7bUZXJeqFJOuNn2daJls

js susanhollandrealtor.com collected 2026-10-05 22:58:41 UTC 1,935 bytes, 60 lines download raw bytes

1Widgets.SiteUserLoginRedirect = function (options = null) {
2  this.className = "defaultSiteUserLoginRedirectContainer";
3
4  Widgets.BaseWidget.call(this, "/Widgets/SiteUser/SiteUserLoginRedirect", this.className);
5
6  //custom overriding options
7  BaseHelper.MergeIntoObject(this, options);
8
9  this._setup = function () {
10    Widgets.BaseWidget.prototype._setup.call(this);
11    this.OnSignInArr = [];
12  };
13
14  this.getLoadData = async function () {
15    let result = await Widgets.BaseWidget.prototype.getLoadData.call(this);
16    this.ToggleLoading(true);
17    let json_data = await BaseHelper.MakeAJAXPostJSONRequest("/api/SiteUser/SiteUserStatus");
18    this.ToggleLoading(false);
19    let response = JSON.parse(json_data);
20    if (response.LoggedIn && this.OnSignInArr != null) {
21      this.OnSignInArr.forEach((f) => {
22        f(this);
23      });
24    }
25    console.log(json_data);
26    return result;
27  };
28
29  this.Login = async function () {
30    let loginData = {
31      "Email": this.txtEmail.value,
32      "Password": this.txtPassword.value
33    };
34    this.ToggleLoading(true);
35    let json_data = await BaseHelper.MakeAJAXPostJSONRequest("/api/SiteUser/SiteUserLogin", loginData)
36    this.ToggleLoading(false);
37    let response = JSON.parse(json_data);
38    let SiteUserLoginInfo = response.SiteUserLoginInfo;
39    if (response.LoggedIn == true) {
40      if (this.OnSignInArr != null) {
41        this.OnSignInArr.forEach((f) => {
42          f(this);
43        });
44      }
45    }
46    console.log(response);
47    return json_data;
48  };
49
50  this.onTemplateLoad = function () {
51    this.txtEmail = this.element.querySelector(".txtEmail");
52    this.txtPassword = this.element.querySelector(".txtPassword");
53    this.btnSignIn = this.element.querySelector(".btnSignIn");
54
55    this.btnSignIn.addEventListener("click", async (e) => {
56      await this.Login();
57    });
58  };
59}
60Widgets.SiteUserLoginRedirect.prototype = new Widgets.SiteUserLoginRedirect();

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.