-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathindex.html
80 lines (70 loc) · 3.34 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ElevenVR Scoreboard</title>
<!-- Styles -->
<link rel="preconnect" href="https://fonts.gstatic.com">
<link
href="https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Roboto+Mono:ital,wght@0,300;0,400;0,500;0,600;1,700&display=swap"
rel="stylesheet">
<link rel="stylesheet" href="styles.css" />
<!-- Scripts -->
<script src="https://unpkg.com/[email protected]/dist/vue.global.prod.js"
integrity="sha384-lxNKA8ytxVUPUUbd/unq0UJKQTCth0AEJMOvyFV0Y5EjScceSsAXF/aJjASsx82/"
crossorigin="anonymous"></script>
<script src="./countries.js"></script>
<script src="app.js" defer></script>
</head>
<body>
<div id="app">
<div id="settings">
<label for="userID"><a href="https://www.elevenvr.net/search" target="_blank">User ID</a></label>
<input name="userID" id="userID" type="text" v-model="userID" />
<label for="rowsReversed">Flip players</label>
<input name="rowsReversed" id="rowsReversed" type="checkbox" v-model="rowsReversed" />
<select id="bestOf" v-model="bestOf">
<option value="" selected>--hide bestof--</option>
<option value="bo3">BO3</option>
<option value="bo5">BO5</option>
<option value="bo7">BO7</option>
</select>
<select id="flag_1" v-model="flag_1">
<option value="" selected>--hide flag HOME--</option>
<option v-for="(country, countryCode) in countries" :key="countryCode">{{countryCode}}</option>
</select>
<select id="flag_2" v-model="flag_2">
<option value="" selected>--hide flag AWAY--</option>
<option v-for="(country, countryCode) in countries" :key="countryCode">{{countryCode}}</option>
</select>
<label for="autoFlags">Auto Flags </label>
<input name="autoFlags" id="autoFlags" type="checkbox" v-model="autoFlags" />
<label for="apiKey" title="If set, uses the new API">API KEY</label>
<input name="apiKey" id="apiKey" type="text" v-model="apiKey" />
</div>
<div id='matches'>
<div v-for="match in matches" :key="match.id" class="match"
:class="match.attributes.state == 1 ? 'match--ended' : 'match--running'">
<div class="players">
<player-row v-for="teamName in (rowsReversed? teamsReversed: teams)" :match="match"
:team-name="teamName" :matches-won="this[teamName + 'MatchesWon']" :flag="getFlag(teamName)" />
</div>
<span class="bestOf">{{bestOf}}</span>
</div>
</div>
<br />
<br />
<div style="font-size: 12px;margin-left: 20px">
<span v-if="apiFetchError">
Can not connect to API. Please check your
<a href="https://discord.com/invite/forfunlabs" target="_blank">API key</a>.
</span>
<span v-else>API V3 key ok.</span>
</div>
<div id="credits">
Scoreboard created by <a href="https://twitter.com/XCSme" target="_blank">XCS</a> 🏓
</div>
</div>
</body>
</html>