1/* 2 * Version: 1.3.2 3 */ 4(function(){ 5 jQuery(function($){ 6 $("#youtube-sidebar-widget li div.play_arrow, #youtube-sidebar-widget li a, .ysw-youtube").click(function(){ 7 if($(this).is(".ysw-youtube")) { 8 var el = $(this); 9 } else { 10 var el = $(this).parent(); 11 } 12 var hash = el.attr('id'); 13 if(el.is(".ysw-autoplay")) { 14 var autoplay = 1; 15 } else { 16 var autoplay = el.attr('data-autoplay'); 17 } 18 var ssl = document.location.protocol; 19 $('body').prepend("<div id='ysw-overlay'></div><div id='ysw-viewer'><a href='#'>close</a><iframe title='YouTube video player' width='640' height='390' src='" + ssl + "//www.youtube.com/embed/" + hash + "?autoplay=" + autoplay + "' frameborder='0' allowfullscreen></iframe></div>"); 20 var win = $(window); 21 var overlay = $("#ysw-overlay"); 22 var viewer = $('#ysw-viewer'); 23 var top = ((win.height() / 2) - (viewer.height() / 2)) + "px"; 24 var left = ((win.width() / 2) - (viewer.width() / 2)) + "px"; 25 viewer.css({ 26 top: top, 27 left: left, 28 display: 'block' 29 }).children('a').click(function(){ 30 viewer.prev().hide().remove(); 31 viewer.hide().remove(); 32 return false; 33 }); 34 overlay.css({ 35 left: "0px", 36 top: "0px" 37 }); 38 return false; 39 }); 40 41 $(window).resize(function() { 42 var win = $(window); 43 var viewer = $('#ysw-viewer'); 44 var top = ((win.height() / 2) - (viewer.height() / 2)) + "px"; 45 var left = ((win.width() / 2) - (viewer.width() / 2)) + "px"; 46 viewer.css({ 47 top: top, 48 left: left, 49 display: 'block' 50 }); 51 }); 52 53 }); 54})(); 55
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.