This repository has been archived by the owner on Mar 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgangwar.html
44 lines (39 loc) · 1.6 KB
/
gangwar.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
<!doctype html>
<html lang="de">
<head>
<title>Gangwar | UCA</title>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=chrome">
<link rel="shortcut icon" href="common/img/UCLogo_new.png" type="image/x-icon">
<link rel="stylesheet" href="common/css/master.css">
<link rel="stylesheet" href="common/css/font.css">
<meta http-equiv="refresh" content="10">
</head>
<body style="background-color: var(--darkgray)">
<div class="gangwar">
<div class="gangwar-grid">
<div class="grid-a grid-center text-40-400">Angreifer</div>
<div class="grid-b grid-center"></div>
<div class="grid-c grid-center text-40-400">Verteidiger</div>
<div class="grid-d grid-center text-120-700" id="attacker"></div>
<div class="grid-e grid-center text-120-700"><p>:</p></div>
<div class="grid-f grid-center text-120-700" id="defender"></div>
</div>
</div>
</body>
</html>
<script>
window.onload = async function() {
try {
const response = await fetch('https://rettichlp.de:8443/unicacityaddon/v1/dhgpsklnag2354668ec1d905xcv34d9bdee4b877/event');
const json = await response.json();
const gangwar = json.gangwar;
document.getElementById("attacker").innerHTML = gangwar.attacker;
document.getElementById("defender").innerHTML = gangwar.defender;
} catch (error) {
console.error('Cannot fetch data:', error);
}
}
</script>