1;(function() { 2 // News 3 if (!$('a.news-popup').length) return false; 4 5 var a_item = $('a.news-popup:eq(0)'), 6 item_href = a_item.attr('href'); 7 8 item_href = item_href.substr(0, item_href.indexOf('?')); 9 10 var current_location = window.location.href; 11 var open_news = function($el){ 12 var u = $el.attr('href'), 13 h = u.substr(u.indexOf('?url=') + '?url='.length, u.length); 14 fancyPopup(u, h, 'dark', current_location); 15 }; 16 17 $('body').delegate('.news-popup', 'click', function(e) { 18 e.preventDefault(); 19 open_news($(this)); 20 }); 21 22 // prev next actions 23 $('body') 24 .delegate('.fancybox-inner .b-pn-box--prev a, .fancybox-inner .b-pn-box--next a', 'click', function(e){ 25 e.preventDefault(); 26 var u = $(this).attr('href'), 27 h = u.replace('?url=', ''), 28 href = ''; 29 30 if (item_href) href = item_href; 31 32 $.fancybox.close(), fancyPopup(href + u, h, 'dark', current_location); 33 }); 34 35 // If search 36 var search = window.location.search, 37 search = search.replace('?',''), 38 url; 39 40 if (search && search.indexOf('url') >= 0){ 41 url = searchParamValue(search, 'url'); 42 fancyPopup('?url=' + url, url, 'dark', current_location); 43 }; 44 45}).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.