1(function ($) { 2 /*jslint undef: false, browser: true, devel: false, eqeqeq: false, bitwise: false, white: false, plusplus: false, regexp: false, nomen: false */ 3 /*global jQuery,setTimeout,projekktor,location,setInterval,YT,clearInterval,pixelentity,$ */ 4 $.pixelentity = $.pixelentity || {}; 5 6 var items = []; 7 var active = []; 8 9 function Factory() { 10 function add(cond,widget) { 11 items.push({ 12 check:cond, 13 widget:widget 14 }); 15 } 16 17 function build(target,controller) { 18 if (target.data("peWidgets")) { 19 return false; 20 } 21 var applied = false; 22 target.data("peWidgets",true); 23 var n = items.length; 24 var item; 25 var elem; 26 for (var i=0;i<n;i++) { 27 item = items[i]; 28 elem = item.check(target,controller); 29 if (elem) { 30 applied = true; 31 if (item.widget) { 32 active.push(new item.widget(elem)); 33 } 34 } 35 } 36 return applied; 37 } 38 39 $.extend(this, { 40 "add":add, 41 "build":build 42 }); 43 } 44 45 $.pixelentity.widgets = new Factory(); 46}(jQuery));
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.