File size: 1,557 Bytes
271613e 2148902 271613e 2148902 271613e 2148902 271613e 86b602b 271613e 2148902 271613e 21828ac 271613e 2148902 271613e 2148902 271613e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
import detectBrowser from 'licia/detectBrowser'
import detectOs from 'licia/detectOs'
import escape from 'licia/escape'
const browser = detectBrowser()
export default [
{
name: 'ロケーション',
val() {
return escape(location.href)
},
},
{
name: 'ユーザーエージェント',
val: navigator.userAgent,
},
{
name: 'デバイス',
val: [
'<table><tbody>',
`<tr><td class="eruda-device-key">スクリーン</td><td>${screen.width} * ${screen.height}</td></tr>`,
`<tr><td>ビューポート</td><td>${window.innerWidth} * ${window.innerHeight}</td></tr>`,
`<tr><td>画素比</td><td>${window.devicePixelRatio}</td></tr>`,
'</tbody></table>',
].join(''),
},
{
name: 'システム',
val: [
'<table><tbody>',
`<tr><td class="eruda-system-key">os</td><td>${detectOs()}</td></tr>`,
`<tr><td>ブラウザー</td><td>${
browser.name + ' ' + browser.version
}</td></tr>`,
'</tbody></table>',
].join(''),
},
{
name: 'Erudaについて',
val:
'<a href="https://eruda.liriliri.io" target="_blank">Eruda v' +
VERSION +
'</a>',
},
{
name: '後援者',
val() {
return `
<a rel="noreferrer noopener" href="https://opencollective.com/eruda" target="_blank">
<img data-exclude="true" style="width: 100%;" loading="lazy" src="https://opencollective.com/eruda/backers.svg?width=${
window.innerWidth * 1.5
}&exclude=true">
</a>`
},
},
]
|