PageSourceSearch

https://ispdhome.org/iparts/Communications/Notification/Notification.js

js ispdhome.org collected 2026-10-04 08:57:18 UTC 2,734 bytes, 55 lines download raw bytes

1
2function Asi_Web_iParts_Communications_Notification(alertSets, imisId, urlParameters, websiteKey, websiteBaseUrl, tilda, alertContainer, noAlertsHiddenField, hideWhenEmpty, version) {
3    jQuery(window).on("load", function () {
4        alertContainer = jQuery('#' + alertContainer);
5        var mainContainer = alertContainer.parent().parent().parent();
6
7        jQuery.ajax(window.gWebRoot + "/api/notificationsetresults?AlertSets=" + alertSets + "&UserId=" + imisId + "&UrlParameters=" + encodeURIComponent(urlParameters)
8            + "&WebsiteKey=" + encodeURIComponent(websiteKey) + "&WebsiteBaseUrl=" + encodeURIComponent(websiteBaseUrl)
9            + "&Tilda=" + encodeURIComponent(tilda) + "&Version=" + version, {
10            type: "GET",
11            contentType: "application/json",
12            headers: {
13                RequestVerificationToken: document.getElementById("__RequestVerificationToken").value
14            },
15            success: function (result) {
16                var data = result.Items.$values;
17                var hiddenMessage = jQuery('#' + noAlertsHiddenField).val();
18                if (data.length > 0) {
19                    var hasAlerts = false;
20                    for (i = 0; i < data.length; i++) {
21                        if (data[i].Result != "") {
22                            hasAlerts = true;
23                            break;
24                        }
25                    }
26                    if (hasAlerts == true) {
27                        var d = new Array(data.length);
28                        for (i = 0; i < data.length; i++) {
29                            d[i] = data[i].Result;
30                        }
31                        mainContainer.parent().parent().show();
32                        mainContainer.show();
33                        alertContainer.hide().html(d).fadeIn('slow');
34                    } else {
35                        if (hiddenMessage != "") {
36                            mainContainer.parent().parent().show();
37                            mainContainer.show();
38                            alertContainer.hide().html(hiddenMessage).fadeIn('fast');
39                        }
40                        if (hideWhenEmpty === "False") {
41                            mainContainer.parent().parent().show();
42                        }
43                    }
44                }
45                else {
46                    if (hiddenMessage != "") {
47                        mainContainer.parent().parent().show();
48                        mainContainer.show();
49                        alertContainer.hide().html(hiddenMessage).fadeIn('fast');
50                    }
51                }
52            }
53        })
54    })
55};

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.