PageSourceSearch

https://serieliv.no/content/themes/serieliv-theme/assets/javascripts/CDWidget.js?ver=5.8.17

js serieliv.no collected 2026-10-02 14:11:53 UTC 3,125 bytes, 78 lines download raw bytes

1var clickd_timeStamp = (new Date()).getTime().toString();
2var CDWidget = {
3    widgetContainer: null,
4    pageID: null,
5    isInitialized: false,
6    loadWidget: function () {
7        var link = clickd_jquery("<link>");
8        link.attr({
9            type: 'text/css',
10            rel: 'stylesheet',
11            href: "https://az124611.vo.msecnd.net/web/v10/cdform.min.css"
12        });
13        clickd_jquery("head").append(link);
14             
15
16        CDWidget.widgetContainer = clickd_jquery("div[pageID]");
17        CDWidget.pageID = CDWidget.widgetContainer.attr('pageID');
18        clickd_jquery.getScript(loc + CDWidget.pageID + ".js?v=" + clickd_timeStamp, function (data, textStatus, jqxhr) {
19            formHTML = formHTML.replace(/#sleshr#/g, '\r');
20            formHTML = formHTML.replace(/#sleshn#/g, '\n');
21            formHTML = formHTML.replace(/#slesht#/g, '\t');
22
23            formScript = formScript.replace(/#sleshr#/g, '\r');
24            formScript = formScript.replace(/#sleshn#/g, '\n');
25            formScript = formScript.replace(/#slesht#/g, '\t');
26
27            analyticsScript = analyticsScript.replace(/#sleshr#/g, '\r');
28            analyticsScript = analyticsScript.replace(/#sleshn#/g, '\n');
29            analyticsScript = analyticsScript.replace(/#slesht#/g, '\t');
30
31            CDWidget.widgetContainer.html(clickd_jquery("<div>").html(formHTML).text() + " <script type=\"text/javascript\">" + clickd_jquery("<div>").html(formScript).text() + "<\/script>" + clickd_jquery("<div>").html(analyticsScript).text());
32        });
33    }
34};
35
36//Jquery
37var clickd_scriptJQuery = document.createElement("script");
38clickd_scriptJQuery.async = true;
39clickd_scriptJQuery.src = "https://az124611.vo.msecnd.net/web/v10/cdform.jquery.js?v=" + clickd_timeStamp;
40
41//Form
42var clickd_scriptCDForm = document.createElement("script");
43clickd_scriptCDForm.async = true;
44
45var loadedScriptCount = 0;
46function onAllScriptsLoaded() {
47
48    //Load the js files only after jquery was loaded
49    if (loadedScriptCount === 1) {
50
51        clickd_scriptCDForm.src = "https://az124611.vo.msecnd.net/web/v10/cdform.min.js?v=" + clickd_timeStamp;
52        document.getElementsByTagName('head')[0].appendChild(clickd_scriptCDForm);
53    }
54    else {
55        if (loadedScriptCount === 2) {
56            CDWidget.isInitialized = true;
57            CDWidget.loadWidget();
58        }
59    }
60}
61
62
63clickd_scriptJQuery.onload = clickd_scriptJQuery.onreadystatechange = function () {
64    if (typeof(jQuery) != "undefined" && (this.readyState == 'loaded' || this.readyState == 'complete' || typeof this.readyState == "undefined") && !CDWidget.isInitialized) {
65        clickd_jquery = jQuery.noConflict(true);
66        loadedScriptCount++;
67        onAllScriptsLoaded();
68    }
69};
70
71clickd_scriptCDForm.onload = clickd_scriptCDForm.onreadystatechange = function () {
72    if ((this.readyState == 'loaded' || this.readyState == 'complete' || typeof this.readyState == "undefined") && !CDWidget.isInitialized) {
73        loadedScriptCount++;
74        onAllScriptsLoaded();
75    }
76};
77
78document.getElementsByTagName('head')[0].appendChild(clickd_scriptJQuery);

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.