-
Notifications
You must be signed in to change notification settings - Fork 0
/
realtime.html
49 lines (46 loc) · 2.16 KB
/
realtime.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
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Real Time Downloads</title>
<script>window.onload = () => {
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
async function reloadScrip() {
var s = document.createElement('script');
s.type = 'text/javascript';
s.src = './assets/realtime.php'
document.getElementById('body').append(s);
var target = document.getElementsByTagName('script');
target[1].parentElement.removeChild(target[1]);
}
let timerId = setInterval(function() {
reloadScrip();
}, 5000);
setTimeout(function() {
clearInterval(timerId);
}, 1800000);
}</script>
</head>
<body class="body" id="body">
<div class="text">
<div class="main" style="text-align: center;">
<br>
<h1>Poggit Real Time Downloads</h1>
<hr />
<h2>All Plugins:</h2>
<h1 id="poggit" style="font-size: 68px; margin-top: 25px; margin-bottom: 25px;">Loading...</h1>
<hr />
<h2>Plugins by KygekTeam (Now maintained by thebigcrafter):</h2>
<h1 id="kygekraqmak" style="font-size: 68px; margin-top: 25px; margin-bottom: 25px;">Loading...</h1>
<h3>Download our plugins <a href="https://poggit.pmmp.io/plugins/by/KygekTeam">here</a> and see the counter goes up!</h3>
<hr />
<h3>This page automatically refreshes every 5 seconds for 30 minutes since this page loads.</h3>
<h3>See the source code on <a href="https://github.com/KygekTeam/Poggit-Real-Time">GitHub</a>.</h3>
<hr style="border: 3px solid #3A3A3A" />
<h3>If you have any feedbacks or you want to contribute to make this site better, join our <a href="https://discord.gg/CXtqUZv">Discord server</a>.</h3>
<br>
</div>
</div>
</body>
</html>