1if (typeof jQuery != 'undefined') { 2 jQuery(document).ready(function() { 3 var filetypes = /(\.(zip|exe|pdf|doc*|xls*|ppt*|mp3)|(\?download=1))$/i; 4 jQuery('a').each(function() { 5 var href = jQuery(this).attr('href'); 6 if (href && (href.match(/^https?\:/i)) && (!href.match(document.domain))) { 7 jQuery(this).click(function() { 8 var rel = jQuery(this).attr('rel'); 9 if(rel && rel.match(/^shadowbox/)){ 10 return false; 11 } 12 else{ 13 var extLink = href.replace(/^https?\:\/\//i, ''); 14 Tracker.TrackEvent('External links','Click',extLink); 15 if (this.target.toLowerCase() != '_blank') { 16 setTimeout(function() { location.href = href; }, 200); 17 return false; 18 } 19 } 20 }); 21 } 22 else if (href && href.match(/^mailto\:/i)) { 23 jQuery(this).click(function() { 24 var mailLink = href.replace(/^mailto\:/i, ''); 25 Tracker.TrackEvent('Email','Click',mailLink); 26 }); 27 } 28 else if (href && href.match(filetypes)) { 29 jQuery(this).click(function() { 30 var extension = (/[.]/.exec(href)) ? /[^.]+$/.exec(href) : ''; 31 if(extension.length>0){ 32 extension = extension[0].replace(/\?download=1/i,''); 33 } 34 var filePath = href; 35 var fileID = /Files\/v\/([^.]+)\./i.exec(href); 36 fileID = (fileID!=null?fileID[1]:''); 37 if(jQuery('body').hasClass('IC2Editor')){ 38 var trackID = 'e_f'+fileID; 39 }else{ 40 var trackID = 'r_f'+fileID; 41 } 42 Tracker.TrackDownloadEvent('Files - '+extension.toUpperCase(),'Download',filePath,trackID); 43 if (this.target.toLowerCase() != '_blank') { 44 setTimeout(function() { location.href = href; }, 200); 45 return false; 46 } 47 }); 48 } 49 }); 50 }); 51} 52 53//GA 54(function() { 55 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; 56 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; 57 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); 58 59 var ga2 = document.createElement('script'); ga2.type = 'text/javascript'; ga2.async = true; 60 ga2.src = 'https://www.googletagmanager.com/gtag/js?id=' + gtagId; 61 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga2, s); 62})();
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.