-
Notifications
You must be signed in to change notification settings - Fork 1
/
macos.html
56 lines (50 loc) · 1.97 KB
/
macos.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/devicons/devicon@v2.15.1/devicon.min.css">
<title>Real Fake OS updates!</title>
<script src="https://cdn.tailwindcss.com"></script>
<style>
progress::-webkit-progress-bar {
background: #292828;
border-radius: 10px;
}
progress::-webkit-progress-value {
background: white;
border-radius: 10px;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
</style>
</head>
<body class="flex relative items-center h-screen flex-col justify-center cursor-none bg-black text-white">
<i class="devicon-apple-original text-9xl"></i>
<progress class="w-1/5 h-1 mt-20 bg-black rounded-full" id="percentage" value="32" max="100"></progress>
<script>
function requestFullScreen(element) {
// Supports most browsers and their versions.
var requestMethod = element.requestFullScreen || element.webkitRequestFullScreen || element.mozRequestFullScreen || element.msRequestFullScreen;
if (requestMethod) { // Native full screen.
requestMethod.call(element);
} else if (typeof window.ActiveXObject !== "undefined") { // Older IE.
var wscript = new ActiveXObject("WScript.Shell");
if (wscript !== null) {
wscript.SendKeys("{F11}");
}
}
}
window.onload = () => {
requestFullScreen(document.body);
let x = Math.floor(Math.random() * 100);
document.getElementById('percentage').value = x;
setInterval(() => {
x += 1;
document.getElementById('percentage').value = x;
if (x == 100) x = Math.floor(Math.random() * 100);
}, 3000);
}
</script>
</body>
</html>