-
Notifications
You must be signed in to change notification settings - Fork 1
/
systeminfo.html
67 lines (59 loc) · 1.86 KB
/
systeminfo.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<!DOCTYPE html>
<html lang = "en">
<head>
<meta charset = "UTF-8">
<meta name = "viewport" content = "width=device-width, initial-scale=1.0">
<title>System Information</title>
<link rel="stylesheet" href="style.css">
<script src = "/eel.js" type="text/javascript">
</script>
<script>
async function redirect()
{
document.body.innerHTML = "";
//dictionary object n
let n = await eel.generate_system_data()();
var div = document.createElement("div")
div.setAttribute("class","output");
document.body.appendChild(div);
var p = document.createElement("h1");
var t = document.createTextNode("GENERATED RESULTS:");
p.appendChild(t);
div.appendChild(p);
var i =0;
var table = document.createElement("table");
for(const[key,value] of Object.entries(n))
{
var row = table.insertRow(i)
var cell1 = row.insertCell(0)
var cell2 = row.insertCell(1)
cell1.innerHTML=key;
cell2.innerHTML=value;
div.appendChild(table);
i=i+1;
}
//back button to go to main page
var button = document.createElement("button")
button.innerHTML="GO BACK"
//function for button click
button.onclick=function(){
window.location.replace("systeminfo.html");
}
div.appendChild(button)
}
</script>
</head>
<body>
<div class="main">
<div class="inner">
<p>Welcome to Total system check</p>
</div>
<div class="inner">
<p>Click on check now button</p>
</div>
</div>
<div class="submit">
<button type="submit" onclick="redirect()">Check now</button>
</div>
</body>
</html>