-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
53 lines (51 loc) · 1.86 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
52
53
<!DOCTYPE html>
<html>
<head>
<!-- From: https://www.electronjs.org/docs/tutorial/first-app -->
<meta charset="UTF-8">
<title>ClamAV Desktop – WIP</title>
<!-- https://electronjs.org/docs/tutorial/security#csp-meta-tag -->
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline';" />
<!-- Custom Style -->
<style>
body { color: white; }
</style>
</head>
<body>
<div style="width: 60%; margin: 2em auto;">
<div style="float: left;">
<h1>Hello World!</h1>
You are running <span id="platform" style="text-transform: capitalize;"></span> with Node <span id="node"></span>,
Chrome <span id="chrome"></span>,
and Electron <span id="electron"></span>.
</div>
<div style="float: left; margin-left: 1em;">
<h1 style="text-align: center;">System Info</h1>
<ul>
<li>Electron CPU Usage: <span id="cpu"></span> %</li>
<li>
Memory (free / total): <span id="mem"></span> bytes
<ul>
<li>Process (private / resident / shared): <span id="proc"></span> bytes</li>
<li>Heap (used / total / max): <span id="heap"></span> bytes</li>
<li>Blink (used / total): <span id="blink"></span> bytes</li>
</ul>
</li>
<li>Kernel: <span id="kernel"></span></li>
<li>Uptime: <span id="uptime"></span> seconds</li>
</ul>
</div>
<hr style="clear: both; margin: 1em 0;">
<div style="float: left;">
<h1>User Info</h1>
<ul>
<li>Username: <span id="username"></span></li>
<li>Lang: <span id="lang"></span></li>
<li>Home: <span id="home"></span></li>
<li>Path: <span id="path"></span></li>
</ul>
</div>
</div>
<script src="window.js"></script>
</body>
</html>