-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
62 lines (61 loc) · 3.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
<!DOCTYPE html>
<html>
<head>
<title>Hyparkour</title>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Lexend+Deca&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="style.css">
<script src="jquery.js" defer></script>
<script src="script.js" defer></script>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="192x192" href="/android-chrome-192x192.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#dcbe34">
<meta name="msapplication-TileColor" content="#00a300">
<meta name="msapplication-TileImage" content="/mstile-144x144.png">
<meta name="theme-color" content="#ffffff">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-PY98YYMB6D"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-PY98YYMB6D');
</script>
</head>
<body style="background-image: url('./backgrounds/BedWars.png');">
<div class="videoContainer" style="display: none;" onclick="$('.videoContainer').fadeOut();">
<iframe class="video" id="video"></iframe>
</div>
<header>
<img src="logo.png" alt="Logo" class="logo"/>
<span class="title">Hyparkour</span>
<a href="info" class="rightToggle"><i class="material-icons rightToggleIcon">info</i></a>
</header>
<main>
<h1>Welcome to Hyparkour</h1>
<h2>Enter a username to see parkour records.</h2>
<input type="text" class="input" id="usernameInput" placeholder="Enter username" spellcheck="false" style="margin-right: 1rem;"/>
<input type="text" class="input" id="apiKeyInput" placeholder="API Key" spellcheck="false"/>
<a class="button" href="javascript:submit($('#usernameInput').val());">Submit</a><br><br>
<span style="color: white;">We now require a Hypixel API key. You can obtain one by running /api new in the lobby.</span><br><br>
<span style="color: white;">If you are hesitant about providing us with your API key, feel free to browse through <a href="https://github.com/sd0e/Hyparkour" target="_blank" style="color: white;">the source code</a>.</span><br><br>
<div class="records" style="display: none;">
<h2>Parkour Records</h2><br>
<div class="info">
<img alt="Player Head" class="playerImage" id="playerImage" src="loading.gif"/>
<span class="playerName">Loading...</span><br>
</div>
<span class="notFound" style="display: none;">This player has logged into the Hypixel network but hasn't completed any parkours.</span>
<span class="unknown" style="display: none;">This player has never logged into the Hypixel network.</span>
<span class="tooFrequent" style="display: none;">You have been looking up this player too frequently. Please wait a couple of minutes before trying again.</span>
<span class="problem" style="display: none;">We're sorry, there has been a problem. Check your API key.</span>
<div class="lobbies"></div>
</div>
</main>
</body>
</html>