1 2jQuery(document).ready(function($){ 3 var domain = location.hostname; 4 var path = location.pathname; 5 var title = document.title; 6 var referer = document.referrer; 7 8 $.ajax({ 9 type:"POST", 10 url:"/php/analytics.php", 11 cache:false, 12 dataType:"json", 13 scriptCharset:"utf-8", 14 async: true, 15 data:{"process":1,"domain":domain,"path":path,"title":title,"referer":referer} 16 }); 17}); 18jQuery(function($){ 19 $(document).on("click","a",function(){ 20 var domain = location.hostname; 21 var path = location.pathname; 22 var title = document.title; 23 var referer = document.referrer; 24 var links = this.href; 25 26 $.ajax({ 27 type:"POST", 28 url:"/php/analytics.php", 29 cache:false, 30 dataType:"json", 31 scriptCharset:"utf-8", 32 async: true, 33 data:{"process":2,"domain":domain,"path":path,"title":title,"referer":referer,"links":links} 34 }); 35 }); 36});
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.