1jQuery(document).ready(function($) 2{ 3 $('body').on('contextmenu', 'div.ssfa-meta-container a[data-stat="true"], div#ssfa-flightbox a[data-stat="true"]', function() 4 { 5 return false; 6 }); 7 $('body').on('click', 'div.ssfa-meta-container a[data-stat="true"], div#ssfa-flightbox a[data-stat="true"]', function(ev) 8 { 9 if($(this).data('stat')) 10 { 11 ev.preventDefault(); 12 var href = $(this).attr('href'); 13 var type = 'default'; 14 if(href.indexOf('?s2member') >= 0) type = 's2member'; 15 else if(href.indexOf('?fileaway') >= 0) type = 'encrypted'; 16 var shadow = $('<div id="ssfa-stats-shadow" style="display:none;" />'); 17 $('body').append(shadow); 18 shadow.fadeIn(1000); 19 $("body").css("cursor", "progress"); 20 $.post( 21 fileaway_stats.ajaxurl, 22 { 23 action : 'fileaway-stats', 24 dataType : 'html', 25 act : 'insert', 26 file : href, 27 type : type, 28 nonce : fileaway_stats.nonce 29 }, 30 function(response) 31 { 32 $("body").css("cursor", "auto"); 33 shadow.fadeOut(500).queue(function(){ 34 $(this).remove(); 35 }); 36 if(response != 'error') window.location = response; 37 } 38 ); 39 return false; 40 } 41 }); 42 $('span[id^="stataway-refresh-"]').on('click', function() 43 { 44 $b = $('input#stataway-fsb').val(); 45 $e = $('input#stataway-fse').val(); 46 if($b == '' || $e == '') filertify.alert('Please select a beginning and an end date.'); 47 else 48 { 49 var shadow = $('<div id="ssfa-stats-shadow" style="display:none;" />'); 50 $('body').append(shadow); 51 shadow.fadeIn(1000); 52 $("body").css("cursor", "progress"); 53 $q = $(this).data('url').indexOf('?') >= 0 ? '&' : '?'; 54 window.location = $(this).data('url')+$q+"fsb="+$b+"&fse="+$e; 55 } 56 }); 57});
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.