1(function() { 2 var loadvid; 3 4 loadvid = function(urltitle) { 5 var last; 6 $.get('/ajax/stories-load/' + urltitle + '?e=header').done(function(data) { 7 return $(".video-titles .tab:visible").html(data); 8 }); 9 $.get('/ajax/stories-load/' + urltitle + '?e=copy').done(function(data) { 10 $(".sidebar-layout > .video-tabs .tab:visible").html(data); 11 return $(".collapser").bindCollapsers(); 12 }); 13 $.get('/ajax/stories-load/' + urltitle + '?e=sidebar').done(function(data) { 14 return $(".sidebar .video-tabs .tab:visible").html(data); 15 }); 16 last = $.last_segment(1); 17 if (last !== urltitle) { 18 if (!$("html").hasClass("no-history")) { 19 window.history.pushState(urltitle, urltitle, window.mpala['ajaxbase'] + 'stories/library/' + urltitle); 20 } 21 } 22 return true; 23 }; 24 25 $(window).load(function() { 26 $(".collapser").bindCollapsers(); 27 $("a.youtube").on("click", function(e) { 28 e.preventDefault(); 29 loadvid($(this).data("urltitle")); 30 $(this).openVid(); 31 return false; 32 }); 33 $("a.ustream").on("click", function(e) { 34 e.preventDefault(); 35 loadvid($(this).data("urltitle")); 36 $(this).openUstreamVid(); 37 return false; 38 }); 39 $.bindVideoTabs(); 40 //return $.bindGalleryTabs(); 41 }); 42 43}).call(this);
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.