-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
91 lines (77 loc) · 1.92 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<html lang="en">
<head>
<title>Login - Kasius Next</title>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
<script src="scripts/fontawesome.js"></script>
<script src="scripts/time.js" defer></script>
<style type="text/css">
* {
padding: 0;
margin: 0;
overflow: hidden;
font-family: Inter;
outline: none;
background-size: cover !important;
color: white;
}
div {
position: absolute;
bottom: 0;
padding: 20px;
}
h1 {
font-size: 100px;
}
button {
background: none;
border: none;
position: absolute;
bottom: 0;
right: 0;
margin: 20px;
}
</style>
</head>
<body id="body">
<section>
<div>
<h3>Press any key to start.</h3>
<h1 id="span">12:00</h1>
<h3 id="wttr">Getting weather information...</h3>
</div>
<button onclick="exitDesktop()" style="margin-right: 76px;">
<h3><i class="fa-solid fa-right-from-bracket"></i></h3>
</button>
<button onclick="shutdown()">
<h3><i class="fa-solid fa-power-off"></i></h3>
</button>
</section>
<script type="text/javascript" src="scripts/jsonloader.js"></script>
<script defer>
window.addEventListener('load', function () {
document.getElementById("body").style.background = `
linear-gradient(rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 1)), url(${desktopConfig.backgroundImage})
`;
webFrame.setZoomLevel(desktopConfig.zoomVal);
})
function openuser1() {
window.location.replace("kasiusdesktop.html")
}
function exitDesktop() {
window.close();
}
function shutdown() {
const { spawn } = require('child_process');
spawn('shutdown', ['now']);
}
fetch('https://wttr.in/?format=3')
.then((response) => response.text())
.then((text) => {
document.getElementById('wttr').innerText = text;
});
document.addEventListener('keydown',function(ev) {
openuser1()
});
</script>
</body>
</html>