-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path404.html
77 lines (68 loc) · 1.94 KB
/
404.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<style type="text/css">
html,
body {
display: flex;
height: 100%;
width: 100%;
background-color: #080717;
font-family: Lato, Helvetica Neue, Arial, Helvetica, sans-serif;
margin: 0;
line-height: 24px;
}
a,
a:active,
a:visited,
a:hover {
color: #fff;
text-decoration: none;
}
#container {
margin: auto;
display: flex;
flex-direction: column;
background-color: rgba(0, 0, 0, .8);
color: #fff;
padding: 30px;
max-width: 600px;
}
.button {
background: #e0e1e2 none;
padding: 15px;
font-weight: bold;
text-decoration: none;
border-radius: 3px;
background-color: #23195c;
color: #fff;
font-size: 18px;
margin: 0 auto;
max-width: 400px;
display: flex;
text-align: center;
flex-direction: column;
margin: 10px;
}
</style>
</head>
<body>
<div id="container">
<a target="_blank" class="button" href="https://app.kosmi.io/oaservers">
Servers </a>
<a target="_blank" class="button" id="createRoomButton" href="https://app.kosmi.io/room/9mcdje?app=openarena">
Join room
</a>
</div>
<script>
window.onload = function() {
function randomizeRoomLink() {
var roomid = location.href.substring(location.href.lastIndexOf('/') + 1);
document.getElementById("createRoomButton").href = "https://app.kosmi.io/room/" + roomid + "?app=openarena";
}
randomizeRoomLink();
}
</script>
</body>
</html>