PageSourceSearch

https://adaptafghanistan.com/DesktopModules/OpenContent/js/opencontent.js?cdv=398

js adaptafghanistan.com collected 2026-10-08 23:03:21 UTC 1,836 bytes, 46 lines download raw bytes

1if (window.jQuery) {
2    /*globals jQuery, window, Sys */
3    (function ($, Sys) {
4        var OpenContent = function () {
5            return {
6                version: { major: 2, minor: 1, patch: 1 }
7            };
8        };
9        $.fn.openContent = function (options) {
10            return OpenContent();
11        };
12        $.fn.openContent.printLogs = function (title, logs) {
13            if (window.console) {
14                console.group(title);
15                for (var i in logs) {
16                    console.group(i);
17                    for (var j = 0; j < logs[i].length; j++) {
18                        console.log(logs[i][j].label, logs[i][j].message);
19                    }
20                    console.groupEnd();
21                }
22                console.groupEnd();
23            }
24        };
25        /*
26        var myString = $(this).closest("div[class*='DnnModule-']").attr('class');
27        var myRegexp = /DnnModule-(\d+)/g;
28        var match = myRegexp.exec(myString);
29        alert(match[1]);  // abc
30        */
31        $(document).ready(function () {
32            $(document).trigger("opencontent.ready", document);
33            if (Sys && Sys.WebForms) {
34                Sys.WebForms.PageRequestManager.getInstance().add_endRequest(function (sender, args) {
35                    var sName = args.get_response().get_webRequest().get_userContext();
36                    var div = $("#" + sName);
37                    $(document).trigger("opencontent.change", div);
38                });
39                Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(function (sender, args) {
40                    var sName = args.get_postBackElement().id;
41                    args.get_request().set_userContext(args.get_postBackElement().id);
42                });
43            }
44        });
45    }(jQuery, window.Sys));
46}

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.