1var isEmpty = function(data) { 2 if(typeof(data) === 'object'){ 3 if(JSON.stringify(data) === '{}' || JSON.stringify(data) === '[]'){ 4 return true; 5 }else if(!data){ 6 return true; 7 } 8 return false; 9 }else if(typeof(data) === 'string'){ 10 if(!data.trim()){ 11 return true; 12 } 13 return false; 14 }else if(typeof(data) === 'undefined'){ 15 return true; 16 }else{ 17 return false; 18 } 19} 20 21function alertError(message) { 22 bootbox.alert({ 23 title: 'Error', 24 message: message, 25 }); 26} 27 28function lang() { 29 return document.documentElement.lang; 30}
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.