1let assetsPath = '/assets/'; 2/*! 3 * Layout Engine v0.10.2 4 * 5 * Copyright (c) 2015-2016 Matt Stow 6 * http://mattstow.com 7 * Licensed under the MIT license 8 */ 9 10; 11var layoutEngine = (function () { 12 var html = document.documentElement, 13 style = html.style, 14 vendor = ' vendor-', 15 edge = 'edge', 16 ie = 'ie', 17 khtml = 'khtml', 18 mozilla = 'mozilla', 19 opera = 'opera', 20 webkit = 'webkit', 21 browser = ' browser-', 22 android = 'android', 23 chrome = 'chrome', 24 safari = 'safari', 25 iosSafari = safari + '-ios', 26 wiiu = 'wiiu', 27 cssClass = vendor, 28 jsObject; 29 30 // Edge and IE 31 if ('msScrollLimit' in style || 'behavior' in style) { 32 if ('msTextSizeAdjust' in style && !('msFlex' in style)) { 33 cssClass += edge; 34 jsObject = { 35 vendor: edge 36 }; 37 } else { 38 cssClass += ie + vendor + ie; 39 jsObject = { 40 vendor: ie 41 }; 42 if ('msImeAlign' in style) { 43 cssClass += '-11'; 44 jsObject.version = 11; 45 } else if ('msUserSelect' in style) { 46 cssClass += '-10'; 47 jsObject.version = 10; 48 } else if ('fill' in style) { 49 cssClass += '-9'; 50 jsObject.version = 9; 51 } else if ('widows' in style) { 52 cssClass += '-8'; 53 jsObject.version = 8; 54 } else { 55 cssClass += '-7'; 56 jsObject.version = 7; 57 } 58 } 59 } 60 // WebKit 61 else if ('WebkitAppearance' in style) { 62 cssClass += webkit; 63 var ua = navigator.userAgent; 64 65 jsObject = { 66 vendor: webkit 67 }; 68 69 if (!!window.chrome || ua.indexOf('OPR') >= 0 || ua.indexOf('wv') >= 0) { 70 cssClass += browser + chrome; 71 jsObject.browser = chrome; 72 } else if ('webkitDashboardRegion' in style) { 73 cssClass += browser + safari; 74 jsObject.browser = safari; 75 } else if ('webkitOverflowScrolling' in style) { 76 cssClass += browser + iosSafari; 77 jsObject.browser = iosSafari; 78 } else if (ua.indexOf('Android') >= 0) { 79 cssClass += browser + android; 80 jsObject.browser = android; 81 } else if (!!window.wiiu) { 82 cssClass += browser + wiiu; 83 jsObject.browser = wiiu; 84 } 85 } 86 // Mozilla 87 else if ('MozAppearance' in style) { 88 cssClass += mozilla; 89 jsObject = { 90 vendor: mozilla 91 } 92 } 93 // Opera 94 else if ('OLink' in style || !!window.opera) { 95 cssClass += opera; 96 97 jsObject = { 98 vendor: opera, 99 }; 100 101 if ('OMiniFold' in style) { 102 cssClass += '-mini'; 103 jsObject.browser = 'mini'; 104 } 105 } 106 // KHTML 107 else if ('KhtmlUserInput' in style) { 108 cssClass += khtml; 109 jsObject = { 110 vendor: khtml 111 }; 112 } else { 113 return false; 114 } 115 116 html.className += cssClass; 117 118 return jsObject; 119})(); 120(function () { 121 let html = document.documentElement, 122 iOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, 123 ratio = window.devicePixelRatio || 1, 124 screen = { 125 width : window.screen.width * ratio, 126 height : window.screen.height * ratio 127 }; 128 129 if (iOS && screen.width === 1125 && screen.height === 2436) { 130 html.className += ' iphone-x'; 131 } 132})(); 133 134
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.