PageSourceSearch

https://yourcloudlibrary.com/apps/oclc/docroot/js/pardot.loader-1.0.js

js yourcloudlibrary.com collected 2026-10-01 10:27:41 UTC 1,506 bytes, 53 lines download raw bytes

1function pardotCheck() {
2    if (window.pardotLoaded || window.pardotCheckInProgress) {
3        return;
4    }
5
6    window.pardotCheckInProgress = true;
7
8    $.ajax({
9        url: "/apps/oclc/pardot-check",
10        method: "GET",
11        dataType: "json",
12        success: function (response) {
13            if (window.pardotLoaded) {
14                return;
15            }
16            //alert(response.details);
17
18            if (response.instance === "A") {
19                window.pardotLoaded = true;
20                loadPardot("863361", "learn.oclc.org");
21            } else if (response.instance === "B") {
22                window.pardotLoaded = true;
23                loadPardot("48682", "connect.oclc.org");
24            } else {
25                console.warn("Unknown Pardot instance:", response.instance);
26            }
27        },
28        error: function (xhr, status, error) {
29            console.error("Failed to determine Pardot instance:", status, error);
30        },
31        complete: function () {
32            window.pardotCheckInProgress = false;
33        }
34    });
35}
36
37function loadPardot(accountId, hostname) {
38    if (document.getElementById("pardot-tracker-script")) {
39        return;
40    }
41
42    window.piAId = accountId;
43    window.piCId = "";
44    window.piHostname = hostname;
45
46    var s = document.createElement("script");
47    s.id = "pardot-tracker-script";
48    s.type = "text/javascript";
49    s.src = "https://" + hostname + "/pd.js";
50    s.async = true;
51
52    document.head.appendChild(s);
53}

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.