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