PageSourceSearch

https://collegeofparamedics.co.uk/iparts/Communications/Notification/Notification.js

js collegeofparamedics.co.uk collected 2026-10-02 06:57:00 UTC 2,776 bytes, 56 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                        setAlertState();
35                    } else {
36                        if (hiddenMessage != "") {
37                            mainContainer.parent().parent().show();
38                            mainContainer.show();
39                            alertContainer.hide().html(hiddenMessage).fadeIn('fast');
40                        }
41                        if (hideWhenEmpty === "False") {
42                            mainContainer.parent().parent().show();
43                        }
44                    }
45                }
46                else {
47                    if (hiddenMessage != "") {
48                        mainContainer.parent().parent().show();
49                        mainContainer.show();
50                        alertContainer.hide().html(hiddenMessage).fadeIn('fast');
51                    }
52                }
53            }
54        })
55    })
56};

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.