1$(function () { 2 3 let deviceType = null; 4 5 const setWindowSize = function (force) { 6 7 let deviceTypeBefore = deviceType; 8 let w = $(window).innerWidth(); 9 10 $('html').attr('data-device-width', w); 11 12 if (w >= 1300) { 13 deviceType = 'desktop'; 14 } 15 if (w < 1300 && w >= 961) { 16 deviceType = 'mobile tablet landscape'; 17 } 18 if (w <= 960) { 19 deviceType = 'mobile tablet portrait'; 20 } 21 if (w <= 767) { 22 deviceType = 'mobile'; 23 } 24 if (w < 500) { 25 deviceType += ' phone'; 26 } 27 28 if (deviceType !== deviceTypeBefore) $('html').attr('data-device-type', deviceType); 29 30 }; 31 32 setWindowSize(); 33 $(window).on('resize', setWindowSize); 34 35});
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.