1// Avoid `console` errors in browsers that lack a console. 2(function() { 3 var method; 4 var noop = function() {}; 5 var methods = ['assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error', 'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log', 'markTimeline', 'profile', 'profileEnd', 'table', 'time', 'timeEnd', 'timeStamp', 'trace', 'warn']; 6 var length = methods.length; 7 var console = (window.console = window.console || {}); 8 9 while (length--) { 10 method = methods[length]; 11 12 // Only stub undefined methods. 13 if (!console[method]) { 14 console[method] = noop; 15 } 16 } 17}()); 18 19//External links open in a new window. 20$('a').not('.external-exclude').each(function() { 21 var a = new RegExp("/" + window.location.host + "/"); 22 const isPdf = this.href.indexOf(".pdf") > -1; 23 const isEmail = this.href.indexOf("mailto") > -1; 24 const isInternal = a.test(this.href); 25 const isWestLaw = this.href.indexOf('thomsonreuters.com') > -1; 26 if ((!isInternal && !isEmail && !isWestLaw) || isPdf) { 27 $(this).click(function(event) { 28 event.preventDefault(); 29 event.stopPropagation(); 30 window.open(this.href, '_blank', 'noopener, noreferrer'); 31 }); 32 } 33});
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.