forked from GDColon/GDBrowser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgauntlets.html
50 lines (40 loc) · 2.01 KB
/
gauntlets.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
<head>
<title>Gauntlets</title>
<meta charset="utf-8">
<link href="../assets/css/browser.css?v=1" type="text/css" rel="stylesheet">
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-135255146-3"></script><script>window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);}gtag('js', new Date());gtag('config', 'UA-135255146-3');</script>
<link rel="icon" href="../assets/gauntlet.png">
<meta id="meta-title" property="og:title" content="Gauntlets">
<meta id="meta-desc" property="og:description" content="Because RobTop wanted to leave behind the monstrosity that is Map Packs.">
<meta id="meta-image" name="og:image" itemprop="image" content="https://gdbrowser.com/assets/gauntlet.png">
<meta name="twitter:card" content="summary">
</head>
<body class="levelBG darkBG" style="overflow-y:auto;" onbeforeunload="saveUrl()">
<div id="everything" class="center" style="width: 100%; height: 100%;">
<div style="position:absolute; top: 2%; left: -1.95%; width: 10%; height: 25%; pointer-events: none">
<img class="gdButton yesClick" id="backButton" src="../assets/back.png" height="30%" onclick="backButton()">
</div>
<div class="center" width="100%" style="margin-top: 2.5%; margin-bottom: 1%;">
<img src="../assets/gauntlets.png" width="50%">
</div>
<img id="loading" style="margin-top: 1%" class="spin noSelect" src="../assets/loading.png" height="12%">
<div id="gauntletList">
<br>
</div>
<br>
</div>
</body>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script type="text/javascript" src="../global.js?v=1"></script>
<script>
fetch('../api/gauntlets').then(res => res.json()).then(gauntlets => {
$('#loading').hide()
gauntlets.forEach((x, y) => {
$('#gauntletList').append(`
<div class="gauntlet">
<a href="../search/*?gauntlet=${x.id}">
<img src="../assets/gauntlets/${x.name.toLowerCase()}.png" height="300%"><br>
<h3 class="gauntletText"">${x.name}<br>Gauntlet</h3></div></a>`)
})
});
</script>