-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
28 lines (27 loc) · 1.51 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
<!DOCTYPE html>
<html lang="fr" dir="ltr">
<head>
<meta charset="utf-8">
<title>Counter Server</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
</head>
<body>
<div class="container">
<h1>Bienvenue jeune padawan !</h1>
<h2>May the <img src="assets/code.png" alt="code logo" style="width: 25px"> be with you!</h2>
<div id="counter">
</div>
<iframe src="https://discord.com/widget?id=706640777450881114&theme=dark" width="350" height="500" allowtransparency="true" frameborder="0" sandbox="allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts"></iframe>
</div>
</body>
<script type="text/javascript">
const counter = document.getElementById("counter");
const params = new URLSearchParams(location.search);
if (params.get('count') == null){
window.location = "https://discord.com/api/oauth2/authorize?client_id=595524755029753857&redirect_uri=http%3A%2F%2Flocalhost%3A8000%2Fcgi-bin%2Fconnection.py&response_type=code&scope=identify%20guilds";
} else {
counter.innerText = "Vous êtes dans " + params.get('count') + " serveurs."
}
</script>
</html>