1function inFrame() 2{ 3 try { 4 return window.self !== window.top; 5 } catch (e) { 6 return true; 7 } 8} 9 10function logFrame() 11{ 12 var frame = window.self.document.referrer, 13 hostname = window.self.location.hostname; 14 if (!hostname) return; 15 if (!frame) frame = 'UNKNOWN'; 16 17 // remove query string, limit length 18 frame = frame.split('?')[0]; 19 frame = frame.substring(0, 256); 20 21 ps$(function() { 22 ps$.ajax({ 23 type: 'POST', 24 url: '/ajax/logFrame', 25 dataType: 'json', 26 data: { 27 FL_FRAME_URL: frame, 28 FL_SITE_HOST: hostname 29 } 30 }); 31 }); 32} 33 34if (inFrame()) logFrame();
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.