-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
107 lines (105 loc) · 3.39 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Arena</title>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-TJFMG29186"></script><script>window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments);}gtag('js', new Date());gtag('config', 'G-TJFMG29186');</script>
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<meta content="yes" name="mobile-web-app-capable">
<link rel="stylesheet" href="https://ai-tournaments.io/defaults.css">
<style>
:root {
--advance-options-width: 286px;
}
legend.clickable {
cursor: pointer;
user-select: none;
}
html {
width: -webkit-fill-available;
height: -webkit-fill-available;
}
body {
margin: 0;
}
#padding-wrapper {
padding: 8px 8px 4px 8px;
}
iframe {
width: 100%;
border: 0;
}
#settings {
margin-left: -2px;
margin-right: -2px;
margin-bottom: 2px;
}
#participant-groups>div>input, #participant-groups>div>label {
vertical-align: top;
}
input[type="button" i]:disabled{
visibility: hidden;
}
#arena-description>*:first-child{
margin-top: 0;
}
.replay-container {
display: inherit;
width: -webkit-fill-available;
height: -webkit-fill-available;
}
#wrapper {
border-width: 0;
border-top: 2px;
border-style: solid;
border-color: var(--main-color);
padding-top: 4px;
}
#fieldset-arena-readme {
display: block !important;
border-color: var(--main-color);
margin-bottom: 8px;
}
#fieldset-arena-readme>legend::after {
content: ' ' var(--arrow-down);
}
#fieldset-arena-readme.hidden>legend::after {
content: ' ' var(--arrow-up);
}
#fieldset-arena-readme.hidden>:not(legend) {
display: none;
}
</style>
<script src="/workQueue.js"></script>
<script src="ArenaHelper.js"></script>
<script src="index.js"></script>
<script src="https://ai-tournaments.io/GitHubApi.js"></script>
</head>
<body onload="a()">
<div id="padding-wrapper">
<iframe id="selectArena" src="iframe.selectArena.html"></iframe>
<div id="wrapper" class="hidden">
<fieldset id="fieldset-arena-readme" class="hidden">
<legend class="clickable">Readme</legend>
<iframe id="arena-readme" sandbox="allow-same-origin"></iframe>
</fieldset>
<input type="button" id="add-team" value="Add team" disabled>
<input type="button" id="remove-team" value="Remove team" disabled>
<img src="" onerror="console.log('// TODO: Remove `style="display: none;"`. Prepared for `filter-following` and `filter-followers`, place them right side of the `Available participants` select.')"></img>
<img src="" onerror="console.log('// TODO: Add input for addParticipant()? Maybe as a radio select? [Local participant, Interface]')"></img>
<div style="display: none;">
<input type="checkbox" id="filter-following">
<label for="filter-following">filter-following</label>
</div>
<div style="display: none;">
<input type="checkbox" id="filter-followers">
<label for="filter-followers">filter-followers</label>
</div>
<div id="participant-groups"></div>
<iframe id="settings" style="height: 0;" src="iframe.sandbox.settings.html" sandbox="allow-scripts"></iframe>
<input type="button" id="btnStart" value="Start" disabled>
<div id="iframeWrapper"></div>
</div>
</div>
</body>
</html>