1( function( $ ) { 2 3 $(document).ready(function(){ 4 5 $(document).on("gform_confirmation_loaded", function (e, form_id) { 6 7 if(2==form_id){ 8 9 $('#accessSignUpForm').magnificPopup('close'); 10 setTimeout(function() { 11 location.reload(); 12 }, 500); 13 14 } 15 16 }); 17 18 // Track downloads 19 $('.download-resource').on('click', function(e){ 20 e.preventDefault(); 21 22 var resourceArr = [{ 23 resourceStandardSet : $(this).data('standardset'), 24 // resourceTitle : $(this).data('resource'), 25 resourceId : $(this).data('resourceid'), 26 resourceType : $(this).data('type'), 27 }]; 28 29 $.ajax({ 30 url: trackAjax.ajax_url, 31 type: 'POST', 32 data: { 33 'action' : 'ac_track', 34 '_ajax_nonce' : trackAjax.nonce, 35 'track_data' : resourceArr, 36 }, 37 cache: false, 38 dataType: "json", 39 success: function(data) { 40 var win = window.open(data.download, '_blank'); 41 win.focus(); 42 }, 43 }); 44 45 }); 46 47 }); 48 49} )( 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.