1// Chook 2window.chook = { 3 4 // Domain 5 domain: (function () { 6 var u = window.location.href.split('/'); 7 return 'https://' + u[2] + '/' + (document.getElementsByTagName('html')[0].className.indexOf('Staging') !== -1 ? u[3] + '/' : ''); 8 }()), 9 10 // Detect Mobile 11 isMobile: (function () { 12 return (' ' + document.getElementsByTagName('html')[0].className + ' ').indexOf(' Mobile ') > -1; 13 }()), 14 15 // Detect Tablet 16 isTablet: (function () { 17 return (' ' + document.getElementsByTagName('html')[0].className + ' ').indexOf(' Tablet ') > -1; 18 }()), 19 20 // Detect Desktop 21 isDesktop: (function () { 22 return (' ' + document.getElementsByTagName('html')[0].className + ' ').indexOf(' Desktop ') > -1; 23 }()) 24 25};
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.