1 2// Are we in debug mode? 3let url = new URL(window.location.href); 4const vhDebug = url.searchParams.has('vhdebug'); 5window.vhNoAutoplay = url.searchParams.has('vhNoAutoplay'); 6const vhHost = document.location.hostname; 7 8// This fixes a minor js error in term_reference_tree.js. 9// FALSE not defined. 10const TRUE = true; 11const FALSE = false; 12 13/** 14 * vhLog(). 15 * 16 * Write to console if we're in a dev environment. 17 */ 18var vhLog = function(msg, object, msg2, object2, msg3, object3) { 19 if (vhDebug === true 20 || (! vhHost.includes('test.') && ! vhHost.includes('www.')) ) { 21 if (typeof msg !== 'undefined' && (typeof object !== 'undefined')) { 22 msg = msg + ': '; 23 } 24 if (typeof msg2 !== 'undefined') { msg2 = '; ' + msg2 + ': '; } 25 if (typeof msg3 !== 'undefined') { msg3 = '; ' + msg3 + ': '; } 26 console.log(msg, object, msg2, object2, msg3, object3); 27 } 28};
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.