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,location,setInterval,YT,clearInterval,clearTimeout,pixelentity,Spinner */ 4 5 var lb; 6 7 if (!$.pixelentity || !(lb = $.pixelentity.lightbox)) { 8 return; 9 } 10 11 function Render(id,w,h) { 12 13 var slider; 14 var iw,ih; 15 var loading = false; 16 var output = false; 17 var conf; 18 19 function load(el) { 20 conf = el; 21 lb.signal("locked",id); 22 preload(el); 23 return this; 24 } 25 26 function resize(nw,nh) { 27 w = nw; 28 h = nh; 29 if (slider) { 30 slider.resize(w,h); 31 } 32 return this; 33 } 34 35 function loaded() { 36 lb.signal("loaded",id); 37 } 38 39 function complete() { 40 lb.signal("unlocked",id); 41 } 42 43 function render() { 44 setTimeout(gogo,50); 45 return output; 46 } 47 48 function gogo() { 49 if (slider) { 50 slider.gogo(); 51 } 52 } 53 54 55 function preload(el) { 56 loading = true; 57 if (!slider) { 58 output = $('<div class="peFlareLightboxRenderGallery" />'); 59 lb.addToBuffer(output); 60 slider = output.peBackgroundSlider({api:true,wait:true}); 61 slider.bind("loaded.pixelentity",loaded); 62 slider.bind("complete.pixelentity",complete); 63 } 64 slider.load(el.resource,el.bw); 65 //slider.configure(el.scale,"center,center"); 66 slider.configure("fillmax","center,center"); 67 } 68 69 function destroy() { 70 71 if (output) { 72 output.detach(); 73 output = undefined; 74 } 75 76 if (slider) { 77 slider.unbind("loaded.pixelentity",loaded); 78 slider.unbind("complete.pixelentity",complete); 79 slider.destroy(); 80 slider = undefined; 81 } 82 lb.signal("destroy",id); 83 } 84 85 86 $.extend(this, { 87 // plublic API 88 load: load, 89 preload: preload, 90 resize: resize, 91 render: render, 92 isGallery: true, 93 destroy: destroy 94 }); 95 } 96 97 lb.register(Render,"shutter"); 98 99}(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.