(info)
| 105 | } |
| 106 | }); |
| 107 | let getTemplate = function(info){ |
| 108 | let system = info.system+' '+info.systemVersion; |
| 109 | let systemMap = { |
| 110 | 'Windows XP':'Windows 7', |
| 111 | 'Windows XP 64-bit':'Windows 7', |
| 112 | 'Windows 7':'Windows 7', |
| 113 | 'Windows Vista':'Windows 7' |
| 114 | }; |
| 115 | return ` |
| 116 | <div class="table-inner"> |
| 117 | <table> |
| 118 | <tbody> |
| 119 | <tr> |
| 120 | <td class="th"> |
| 121 | <p class="title">用户代理</p> |
| 122 | <p class="subtitle">User-Agent</p> |
| 123 | </td> |
| 124 | <td>${info.userAgent}</td> |
| 125 | </tr> |
| 126 | <tr> |
| 127 | <td class="th"> |
| 128 | <p class="title">浏览器</p> |
| 129 | <p class="subtitle">Browser</p> |
| 130 | </td> |
| 131 | <td> |
| 132 | ${browserList.includes(info.browser)?`<img src="static/image/browser/${info.browser}.png" width="24" height="24"/>`:''} |
| 133 | <strong>${info.browser||'<img src="static/image/loading.gif" width="32" height="32"/>'}</strong> |
| 134 | </td> |
| 135 | </tr> |
| 136 | <tr> |
| 137 | <td class="th"> |
| 138 | <p class="title">版本</p> |
| 139 | <p class="subtitle">Version</p> |
| 140 | </td> |
| 141 | <td><span>${info.browserVersion}</span></td> |
| 142 | </tr> |
| 143 | <tr> |
| 144 | <td class="th"> |
| 145 | <p class="title">渲染引擎</p> |
| 146 | <p class="subtitle">Engine</p> |
| 147 | </td> |
| 148 | <td>${info.engine}</td> |
| 149 | </tr> |
| 150 | <tr> |
| 151 | <td class="th"> |
| 152 | <p class="title">操作系统</p> |
| 153 | <p class="subtitle">System</p> |
| 154 | </td> |
| 155 | <td> |
| 156 | ${systemList.includes(info.system)?`<img src="static/image/system/${systemMap[system]||info.system}.png" width="24" height="24"/>`:''} |
| 157 | <span>${info.system} ${info.systemVersion} (${info.bitness}位)</span> |
| 158 | </td> |
| 159 | </tr> |
| 160 | <tr> |
| 161 | <td class="th"> |
| 162 | <p class="title">系统平台</p> |
| 163 | <p class="subtitle">Platform</p> |
| 164 | </td> |
no outgoing calls
no test coverage detected
searching dependent graphs…