PageSourceSearch

https://gjirafamall.com/js/public.auth.js?v=sLaO7MET9g4gtARyaxKfp4HDhCW20EOYKf-nLvJeCbE

js gjirafamall.com collected 2026-10-06 18:24:16 UTC 2,497 bytes, 85 lines download raw bytes

1/*
2** nopCommerce ajax auth implementation
3*/
4
5var Auth = {
6    loadWaiting: false,
7    usepopupnotifications: false,
8    loginpopupselector: '#sso-login-form',
9    localized_data: false,
10
11    init: function (localized_data) {
12        this.loadWaiting = false;
13        this.usepopupnotifications = false;
14        this.loginpopupselector = '#sso-login-form';
15        this.localized_data = localized_data
16    },
17
18    login: function (url, formselector) {
19        if (this.loadWaiting !== false) {
20            return;
21        }
22        this.setLoadWaiting(true);
23
24        $.ajax({
25            cache: false,
26            url: url,
27            data: $(formselector).serialize(),
28            type: "POST",
29            success: this.success_process,
30            error: this.resetLoadWaiting,
31            complete: this.resetLoadWaiting
32        });
33    },
34
35    setLoadWaiting: function (display) {
36        displayAjaxLoading(display);
37        this.loadWaiting = display;
38    },
39
40    success_process: function (response) {
41        if (response.updateloginpopuphtml) {
42            $(Auth.loginpopupselector).replaceWith(response.updateloginpopuphtml);
43            Auth.setLoadWaiting(false);
44        }
45
46        //if (response.message) {
47        //    //display notification
48        //    if (response.success === true) {
49        //        //success
50        //        if (Auth.usepopupnotifications === true) {
51        //            displayPopupNotification(response.message, 'success', true);
52        //        }
53        //        else {
54        //            //specify timeout for success messages
55        //            displayBarNotification(response.message, 'success', 3500);
56        //        }
57        //    }
58        //    else {
59        //        //error
60        //        if (Auth.usepopupnotifications === true) {
61        //            displayPopupNotification(response.message, 'error', true);
62        //        }
63        //        else {
64        //            //no timeout for errors
65        //            displayBarNotification(response.message, 'error', 0);
66        //        }
67        //    }
68        //    return false;
69        //}
70
71        if (response.redirect) {
72            location.reload();
73        }
74
75        return false;
76    },
77
78    resetLoadWaiting: function () {
79        Auth.setLoadWaiting(false);
80    },
81
82    ajaxFailure: function () {
83        alert(this.localized_data.AjaxFailure);
84    }
85};

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.