1(function () { 2 var ua = navigator.userAgent.toLowerCase(); 3 4 function parse(re) { 5 var m = ua.match(re); 6 return m ? parseFloat(m[1]) : null; 7 } 8 9 var isEdge = ua.indexOf('edg/') > -1; 10 var isOpera = ua.indexOf('opr/') > -1 || ua.indexOf('opera') > -1; 11 var isChrome = ua.indexOf('chrome/') > -1 && !isEdge && !isOpera && ua.indexOf('crios') === -1 && ua.indexOf('chromium') === -1; 12 var isFirefox = ua.indexOf('firefox/') > -1; 13 var isSafari = ua.indexOf('safari') > -1 && 14 ua.indexOf('chrome') === -1 && 15 ua.indexOf('crios') === -1 && 16 ua.indexOf('chromium') === -1 && 17 ua.indexOf('edg/') === -1 && 18 ua.indexOf('opr/') === -1; 19 20 var version = null; 21 var browserName = "Your browser"; 22 if (isEdge) { version = parse(/edg\/(\d+)/); browserName = "Edge"; } 23 else if (isOpera) { version = parse(/opr\/(\d+)/); browserName = "Opera"; } 24 else if (isChrome) { version = parse(/chrome\/(\d+)/); browserName = "Chrome"; } 25 else if (isFirefox) { version = parse(/firefox\/(\d+)/); browserName = "Firefox"; } 26 else if (isSafari) { version = parse(/version\/(\d+)/); browserName = "Safari"; } 27 28 var MIN = { Chrome: 94, Edge: 94, Firefox: 93, Safari: 16, Opera: 80 }; 29 30 var unsupported = 31 (isChrome && version && version < MIN.Chrome) || 32 (isEdge && version && version < MIN.Edge) || 33 (isFirefox && version && version < MIN.Firefox) || 34 (isSafari && version && version < MIN.Safari) || 35 (isOpera && version && version < MIN.Opera); 36 37 if (unsupported) { 38 document.write( 39 '<style>body{margin:0}</style>' + 40 '<div style="position:fixed;top:0;left:0;right:0;bottom:0;background:#0b1020;color:#fff;display:flex;align-items:center;justify-content:center;padding:24px;text-align:center;font-family:Arial,sans-serif;z-index:99999;">' + 41 '<div style="max-width:500px;background:#121835;border-radius:12px;padding:24px;">' + 42 '<h2>Trucklots app does not support this ' + browserName + ' version</h2>' + 43 '<p>Trucklots is not compatible with ' + browserName + ' ' + (version || "") + '. ' + 44 'Please update to ' + browserName + ' ' + MIN[browserName] + ' or later to continue using the app smoothly.</p>' + 45 '</div>' + 46 '</div>' 47 ); 48 } 49})();
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.