-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.old.html
211 lines (199 loc) · 14.3 KB
/
index.old.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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Follow the matches of the Valorant Champions Tour live">
<link rel="preconnect" href="https://www.google.com">
<link rel="preconnect" href="https://gstatic.com">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link rel="preconnect" href="https://firestore.googleapis.com">
<link rel="preconnect" href="https://fcmregistrations.googleapis.com">
<link rel="preconnect" href="https://cdnjs.cloudflare.com">
<link rel="preload" as="style" href="/css/bootstrap_slim.min.css">
<link rel="preload" as="style" href="/css/custom.css">
<link rel="preload" as="image" href="/apple-touch-icon.png">
<link rel="preload" as="image" href="/favicon-32x32.png">
<link rel="preload" as="image" href="/favicon-16x16.png">
<link rel="preload" as="script" href="/scripts/bootstrap.bundle.min.js">
<link rel="preload" as="script" href="/scripts/firebase.js">
<link rel="preload" as="script" href="/scripts/notifications.js">
<link rel="preload" as="script" href="/scripts/ui.js">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#47b3ff">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="theme-color" content="#47b3ff">
<title>VCT Ticker</title>
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js" integrity="sha512-894YE6QWD5I59HgZOGReFYm4dnWc1Qt5NtvYSaNcOP+u1T9qYdvdihz0PPSiiqn/+/3e7Jo4EaG7TubfWGUrMQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script async src="/scripts/bootstrap.bundle.min.js"></script>
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/firebase/9.6.8/firebase-app-compat.min.js" integrity="sha512-OUr2v45dj0h7Ek7snkshtQ0O9z/fY1xtPKXsaDklnX3hf5h2pP3IV4sRw2CGeo2zuaAD5l3IpE89u6Hmap9ArQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/firebase/9.6.8/firebase-app-check-compat.min.js" integrity="sha512-SnpFIe5sHvi62EYSZeh52u9JjnjCwKDiJyTKb2Z8oyorKfOgN0h3nOOT6oHbGO9aqySggWOwuVVGOZKKqf6ZLA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/firebase/9.6.8/firebase-messaging-compat.min.js" integrity="sha512-53gwOM+qRiJ+yEAOEyRqJck5SgOHXNyYslQkWkdbgct4VMe0qdsCmrMvrd7lFkjKnYew7w7pz0LR0GV+1AOtXA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/firebase/9.6.8/firebase-firestore-compat.min.js" integrity="sha512-32qKuWSzDG/c5z045i8AudHn39esgNu7t+M5PFepCwVK8H4Vq0czO617OUKYWYEYKTV0lvmD7pIwR2VqRmVgIA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script defer src="/scripts/firebase.js" ></script>
<script defer src="/scripts/notifications.js"></script>
<script defer src="/scripts/ui.js"></script>
<script defer type="module">
import 'https://cdn.jsdelivr.net/npm/@pwabuilder/pwaupdate'
const el = document.createElement('pwa-update')
document.body.appendChild(el)
</script>
<link rel="stylesheet" href="/css/bootstrap_slim.min.css">
<link rel="stylesheet" href="/css/custom.css">
</head>
<body>
<div class="navbar navbar-expand-lg fixed-top navbar-dark bg-primary">
<div class="container">
<a href="/" class="navbar-brand">
<img src="/logo-white_30.png" width="30" height="30" alt="VCT Ticker">
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="/events">Events</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" data-bs-toggle="dropdown" href="#" id="nav-about">About <span class="caret"></span></a>
<div class="dropdown-menu" aria-labelledby="nav-about">
<a class="dropdown-item" href="https://www.reddit.com/r/ValorantCompetitive/" target="_blank" rel="noopener noreferrer">Community</a>
<a class="dropdown-item" href="https://github.com/JamesCullum/vct-liveticker" target="_blank" rel="noopener noreferrer">Development</a>
<a class="dropdown-item" href="https://github.com/sponsors/JamesCullum" target="_blank" rel="noopener noreferrer">Donation</a>
</div>
</li>
</ul>
<ul class="navbar-nav ms-md-auto">
<li class="nav-item push-enabled" id="menu-profile">
<a href="#" class="nav-link sign-in"><svg class="icon icon-user"><use xlink:href="#icon-user"></use></svg> Sign In</a>
</li>
<li class="nav-item" id="menu-lightswitch">
<a href="#" class="nav-link lightswitch"></a>
</li>
</ul>
</div>
</div>
</div>
<div class="container body-container">
<div id="event-list">
<div class="lds-ellipsis" id="loader"><div></div><div></div><div></div><div></div></div>
</div>
</div>
<div id="template-elements">
<div class="row mb-4 match-list-item expand-container">
<div>
<h2 class="match-list-title"></h2>
</div>
<div>
<div class="row match-list-container"></div>
</div>
<div class="pagination-bar d-none">
<div class="d-grid gap-2">
<button class="btn btn-lg btn-primary pagination-forward" type="button" aria-label="Load more">Load more</button>
</div>
</div>
</div>
<div class="row mb-4 event-item">
<div class="event-container">
<div class="event-title-bar">
<div class="row">
<h2 class="col-lg-8"><span class="event-name"></span></h2>
<div class="col-lg-4 text-right d-none d-lg-block sub-right push-enabled">
<button type="button" class="btn btn-primary btn-lg notification-subscribe" aria-label="Subscribe to event updates"><svg class="icon icon-bell"><use xlink:href="#icon-bell"></use></svg> Subscribe to event updates</button>
<button type="button" class="btn btn-secondary btn-lg notification-unsubscribe d-none" aria-label="Unsubscribe from event updates"><svg class="icon icon-bell-slash"><use xlink:href="#icon-bell-slash"></use></svg> Unsubscribe from event updates</button>
</div>
</div>
</div>
<div class="row match-list-container expand-container"></div>
<div class="sub-bottom push-enabled mt-2 d-lg-none">
<div class="d-grid gap-2">
<button type="button" class="btn btn-primary btn-lg notification-subscribe" aria-label="Subscribe to event updates"><svg class="icon icon-bell"><use xlink:href="#icon-bell"></use></svg> Subscribe to event updates</button>
<button type="button" class="btn btn-secondary btn-lg notification-unsubscribe d-none" aria-label="Unsubscribe from event updates"><svg class="icon icon-bell-slash"><use xlink:href="#icon-bell-slash"></use></svg> Unsubscribe from event updates</button>
</div>
</div>
</div>
</div>
<div class="col-sm-6 col-lg-4 mb-2 match-item">
<div class="card">
<div class="card-header">
<div class="row">
<div class="col-8 left-info">
<p class="stage-name"></p>
<p class="event-date"></p>
</div>
<div class="col-4 text-right right-info">
<p class="status-label"></p>
<p class="event-date-diff"></p>
</div>
</div>
</div>
<div class="card-body">
<div class="row">
<div class="col-6 team-side" data-team="0">
<div class="team-name"></div>
<div class="team-score">-</div>
</div>
<div class="col-6 team-side" data-team="1">
<div class="team-name"></div>
<div class="team-score">-</div>
</div>
</div>
</div>
<div class="card-footer">
<div class="row push-enabled">
<div class="col-8">
<div class="notification-subscribe">
<button type="button" class="btn btn-sm" aria-label="Subscribe to match updates"><svg class="icon icon-bell"><use xlink:href="#icon-bell"></use></svg> Subscribe to match updates</button>
</div>
<div class="notification-unsubscribe d-none">
<button type="button" class="btn btn-sm" aria-label="Unsubscribe from match updates"><svg class="icon icon-bell-slash"><use xlink:href="#icon-bell-slash"></use></svg> Unsubscribe from match updates</button>
</div>
</div>
<div class="col-4 text-right">
<a href="#" class="detail-link" target="_blank" rel="noopener noreferrer" aria-label="See match details">Details</a>
</div>
</div>
<div class="row push-disabled">
<div class="col-12">
<a href="#" class="detail-link" target="_blank" rel="noopener noreferrer" aria-label="See match details">Details</a>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Icons -->
<svg aria-hidden="true" style="position: absolute; width: 0; height: 0; overflow: hidden;" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<symbol id="icon-user" viewBox="0 0 20 28">
<path d="M20 21.859c0 2.281-1.5 4.141-3.328 4.141h-13.344c-1.828 0-3.328-1.859-3.328-4.141 0-4.109 1.016-8.859 5.109-8.859 1.266 1.234 2.984 2 4.891 2s3.625-0.766 4.891-2c4.094 0 5.109 4.75 5.109 8.859zM16 8c0 3.313-2.688 6-6 6s-6-2.688-6-6 2.688-6 6-6 6 2.688 6 6z"></path>
</symbol>
<symbol id="icon-bell" viewBox="0 0 28 28">
<path d="M14.25 26.5c0-0.141-0.109-0.25-0.25-0.25-1.234 0-2.25-1.016-2.25-2.25 0-0.141-0.109-0.25-0.25-0.25s-0.25 0.109-0.25 0.25c0 1.516 1.234 2.75 2.75 2.75 0.141 0 0.25-0.109 0.25-0.25zM27 22c0 1.094-0.906 2-2 2h-7c0 2.203-1.797 4-4 4s-4-1.797-4-4h-7c-1.094 0-2-0.906-2-2 2.312-1.953 5-5.453 5-13 0-3 2.484-6.281 6.625-6.891-0.078-0.187-0.125-0.391-0.125-0.609 0-0.828 0.672-1.5 1.5-1.5s1.5 0.672 1.5 1.5c0 0.219-0.047 0.422-0.125 0.609 4.141 0.609 6.625 3.891 6.625 6.891 0 7.547 2.688 11.047 5 13z"></path>
</symbol>
<symbol id="icon-circle" viewBox="0 0 24 28">
<path d="M24 14c0 6.625-5.375 12-12 12s-12-5.375-12-12 5.375-12 12-12 12 5.375 12 12z"></path>
</symbol>
<symbol id="icon-bell-slash" viewBox="0 0 32 28">
<path d="M24.344 13.312c0.797 4.656 2.844 7.156 4.656 8.687 0 1.094-0.906 2-2 2h-7c0 2.203-1.797 4-4 4s-3.984-1.781-4-3.984zM16 26.75c0.141 0 0.25-0.109 0.25-0.25s-0.109-0.25-0.25-0.25c-1.234 0-2.25-1.016-2.25-2.25 0-0.141-0.109-0.25-0.25-0.25s-0.25 0.109-0.25 0.25c0 1.516 1.234 2.75 2.75 2.75zM31.656 1.75c0.172 0.219 0.156 0.531-0.047 0.719l-29.25 25.344c-0.203 0.172-0.531 0.156-0.703-0.063l-1.313-1.5c-0.172-0.219-0.156-0.531 0.047-0.703l2.906-2.516c-0.187-0.313-0.297-0.656-0.297-1.031 2.312-1.953 5-5.453 5-13 0-3 2.484-6.281 6.625-6.891-0.078-0.187-0.125-0.391-0.125-0.609 0-0.828 0.672-1.5 1.5-1.5s1.5 0.672 1.5 1.5c0 0.219-0.047 0.422-0.125 0.609 2.688 0.391 4.672 1.906 5.734 3.75l6.531-5.672c0.203-0.172 0.531-0.156 0.703 0.063z"></path>
</symbol>
<symbol id="icon-moon-o" viewBox="0 0 23 28">
<path d="M19.719 20.359c-0.562 0.094-1.141 0.141-1.719 0.141-5.797 0-10.5-4.703-10.5-10.5 0-1.984 0.578-3.922 1.625-5.578-4.156 1.234-7.125 5.047-7.125 9.578 0 5.516 4.484 10 10 10 3.016 0 5.844-1.375 7.719-3.641zM22.891 19.031c-1.953 4.234-6.234 6.969-10.891 6.969-6.609 0-12-5.391-12-12 0-6.484 5.078-11.75 11.547-11.984 0.438-0.016 0.797 0.234 0.953 0.609 0.172 0.391 0.063 0.844-0.234 1.125-1.781 1.625-2.766 3.844-2.766 6.25 0 4.688 3.813 8.5 8.5 8.5 1.234 0 2.422-0.266 3.563-0.797 0.391-0.172 0.828-0.094 1.125 0.203s0.375 0.75 0.203 1.125z"></path>
</symbol>
<symbol id="icon-sun-o" viewBox="0 0 28 28">
<path d="M23 14c0-4.969-4.031-9-9-9s-9 4.031-9 9 4.031 9 9 9 9-4.031 9-9zM27.312 18.328c-0.047 0.156-0.172 0.266-0.313 0.313l-4.562 1.5v4.781c0 0.156-0.078 0.313-0.203 0.406-0.141 0.094-0.297 0.125-0.453 0.063l-4.562-1.469-2.812 3.875c-0.094 0.125-0.25 0.203-0.406 0.203s-0.313-0.078-0.406-0.203l-2.812-3.875-4.562 1.469c-0.156 0.063-0.313 0.031-0.453-0.063-0.125-0.094-0.203-0.25-0.203-0.406v-4.781l-4.562-1.5c-0.141-0.047-0.266-0.156-0.313-0.313s-0.031-0.328 0.063-0.453l2.812-3.875-2.812-3.875c-0.094-0.141-0.109-0.297-0.063-0.453s0.172-0.266 0.313-0.313l4.562-1.5v-4.781c0-0.156 0.078-0.313 0.203-0.406 0.141-0.094 0.297-0.125 0.453-0.063l4.562 1.469 2.812-3.875c0.187-0.25 0.625-0.25 0.812 0l2.812 3.875 4.562-1.469c0.156-0.063 0.313-0.031 0.453 0.063 0.125 0.094 0.203 0.25 0.203 0.406v4.781l4.562 1.5c0.141 0.047 0.266 0.156 0.313 0.313s0.031 0.313-0.063 0.453l-2.812 3.875 2.812 3.875c0.094 0.125 0.109 0.297 0.063 0.453z"></path>
</symbol>
<symbol id="icon-brightness-contrast" viewBox="0 0 32 32">
<path d="M16 8c-4.418 0-8 3.582-8 8s3.582 8 8 8 8-3.582 8-8-3.582-8-8-8zM16 21v-10c2.757 0 5 2.243 5 5s-2.243 5-5 5zM16 26c1.105 0 2 0.895 2 2v2c0 1.105-0.895 2-2 2s-2-0.895-2-2v-2c0-1.105 0.895-2 2-2zM16 6c-1.105 0-2-0.895-2-2v-2c0-1.105 0.895-2 2-2s2 0.895 2 2v2c0 1.105-0.895 2-2 2zM30 14c1.105 0 2 0.895 2 2s-0.895 2-2 2h-2c-1.105 0-2-0.895-2-2s0.895-2 2-2h2zM6 16c0 1.105-0.895 2-2 2h-2c-1.105 0-2-0.895-2-2s0.895-2 2-2h2c1.105 0 2 0.895 2 2zM25.899 23.071l1.414 1.414c0.781 0.781 0.781 2.047 0 2.828s-2.047 0.781-2.828 0l-1.414-1.414c-0.781-0.781-0.781-2.047 0-2.828s2.047-0.781 2.828 0zM6.101 8.929l-1.414-1.414c-0.781-0.781-0.781-2.047 0-2.828s2.047-0.781 2.828 0l1.414 1.414c0.781 0.781 0.781 2.047 0 2.828s-2.047 0.781-2.828 0zM25.899 8.929c-0.781 0.781-2.047 0.781-2.828 0s-0.781-2.047 0-2.828l1.414-1.414c0.781-0.781 2.047-0.781 2.828 0s0.781 2.047 0 2.828l-1.414 1.414zM6.101 23.071c0.781-0.781 2.047-0.781 2.828 0s0.781 2.047 0 2.828l-1.414 1.414c-0.781 0.781-2.047 0.781-2.828 0s-0.781-2.047 0-2.828l1.414-1.414z"></path>
</symbol>
<symbol id="icon-video-camera" viewBox="0 0 28 28">
<path d="M28 5.5v17c0 0.406-0.25 0.766-0.609 0.922-0.125 0.047-0.266 0.078-0.391 0.078-0.266 0-0.516-0.094-0.703-0.297l-6.297-6.297v2.594c0 2.484-2.016 4.5-4.5 4.5h-11c-2.484 0-4.5-2.016-4.5-4.5v-11c0-2.484 2.016-4.5 4.5-4.5h11c2.484 0 4.5 2.016 4.5 4.5v2.578l6.297-6.281c0.187-0.203 0.438-0.297 0.703-0.297 0.125 0 0.266 0.031 0.391 0.078 0.359 0.156 0.609 0.516 0.609 0.922z"></path>
</symbol>
</defs>
</svg>
</body>
</html>