-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
51 lines (47 loc) · 1.15 KB
/
index.html
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
<head>
<title>System Information</title>
<style>
.highlight {
background-color: yellow;
}
</style>
</head>
<body>
<script src='util.js'></script>
<script src='browser.js'></script>
<script src='gpu.js'></script>
<script src='misc.js'></script>
<script src='os.js'></script>
<script>
// get system info
let si = {};
si.vendorIds = {
'AMD': 0x1002,
'ARM': 0x13B5,
'ImgTec': 0x1010,
'Intel': 0x8086,
'Nvidia': 0x10DE,
'Qualcomm': 0x5143,
'Google': 0x1AE0,
'Microsoft': 0x1414,
};
browser(si);
gpu(si);
misc(si);
os(si);
// print system info
let table = document.createElement('table');
table.align = 'center';
table.style.width = '80%';
table.setAttribute('border', '1');
document.body.appendChild(table);
for (key in si) {
let tr = table.insertRow(table.rows.length);
tr.onclick = function () { toggleClass(this, 'highlight'); };
let td = tr.insertCell(0);
td.innerHTML = key;
td = tr.insertCell(1);
td.innerHTML = si[key];
}
</script>
</body>