-
Notifications
You must be signed in to change notification settings - Fork 35
/
index.html
289 lines (233 loc) · 7.25 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
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
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
<!doctype html>
<html lang="en-US">
<head>
<title>Gwent Classic from The Widtcher 3: Wild Hunt</title>
<meta charset="utf-8" />
<meta name="author" content="Arun Sundaram" />
<meta name="description" content="Play the original Gwent minigame from The Witcher 3 in your browser! Includes cards from Hearts of Stone and Blood & Wine!" />
<meta name="keywords" content="arun, sundaram, programmer, gwent, tw3, witcher, card, game, gamedev, play" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<div id="dimensions" style="position:fixed;width:100vw;height:calc(100vw * 1080 / 1920);"></div>
<div id="youtube"></div>
<main>
<section id="click-background" class="noclick"></section>
<section id="panel-left" class="panel">
<div id="leader-op" class="leader-box">
<div class="leader-container center">
</div>
<div class="leader-active">
<div></div>
</div>
</div>
<section id="stats-op" class="stats">
<div class="profile-img">
<div><div></div></div>
</div>
<div id="name-op" class="name">Opponent</div>
<div id="deck-name-op" class="deck-name"></div>
<div id="hand-count-op" class="hand-count">6</div>
<div id="gem1-op" class="gem gem-on bg-contain"></div>
<div id="gem2-op" class="gem gem-on bg-contain"></div>
<div id="score-total-op" class="score-total"><div class="center">0</div></div>
<div id="passed-op">Passed</div>
</section>
<div id="weather" class="card-container">
</div>
<section id="stats-me" class="stats">
<div class="profile-img">
<div><div></div></div>
</div>
<div id="passed-me">Passed</div>
<div id="hand-count-me" class="hand-count">5</div>
<div id="gem1-me" class="gem gem-on bg-contain"></div>
<div id="gem2-me" class="gem gem-on bg-contain"></div>
<div id="name-me" class="name"></div>
<div id="deck-name-me" class="deck-name"></div>
<div id="score-total-me" class="score-total"><div class="center">0</div></div>
</section>
<div id="leader-me" class="leader-box">
<div class="leader-container center"></div>
<div class="leader-active">
<div></div>
</div>
</div>
<div id="pass-button" class="center">Pass</div>
</section>
<section id="panel-mid" class="panel">
<section id="field-op" class="field">
<div class="field-row">
<div class="row-score center">12</div>
<div class="row-special card-container"></div>
<div class="row-cards card-container"></div>
<div class="row-weather"></div>
</div>
<div class="field-row">
<div class="row-score center">0</div>
<div class="row-special card-container"></div>
<div class="row-cards card-container"></div>
<div class="row-weather"></div>
</div>
<div class="field-row">
<div class="row-score center">0</div>
<div class="row-special card-container"></div>
<div class="row-cards card-container"></div>
<div class="row-weather"></div>
</div>
</section>
<section id="field-me" class="field">
<div class="field-row">
<div class="row-score center">0</div>
<div class="row-special card-container"></div>
<div class="row-cards card-container"></div>
<div class="row-weather"></div>
</div>
<div class="field-row">
<div class="row-score center">0</div>
<div class="row-special card-container"></div>
<div class="row-cards card-container"></div>
<div class="row-weather"></div>
</div>
<div class="field-row">
<div class="row-score center">0</div>
<div class="row-special card-container"></div>
<div class="row-cards card-container"></div>
<div class="row-weather"></div>
</div>
</section>
<section id="field-hand">
<div id="hand-row" class="card-container card-selectable">
</div>
</section>
</section>
<section id="panel-right" class="panel">
<div id="grave-op" class="cardpile">
</div>
<div id="deck-op" class="cardpile">
</div>
<div id="grave-me" class="cardpile">
</div>
<div id="deck-me" class="cardpile">
</div>
</section>
<div id="hand-op"></div>
<section class="card-preview hide">
<div class="card-lg"></div>
<div class="card-description">
<div></div>
<h1></h1>
<p></p>
</div>
</section>
<section id="carousel" class="hide">
<div>
<div class="card-lg" onclick="Carousel.curr.shift(event,-2)"></div>
<div class="card-lg" onclick="Carousel.curr.shift(event,-1)"></div>
<div class="card-lg" onclick="Carousel.curr.select(event)"></div>
<div class="card-lg" onclick="Carousel.curr.shift(event,1)"></div>
<div class="card-lg" onclick="Carousel.curr.shift(event,2)"></div>
</div>
<div class="card-description">
<div></div>
<h1></h1>
<p></p>
</div>
<div></div>
</section>
<section id="popup" class="center hide">
<div>
<h3></h3>
<p></p>
<div>
<button onclick="Popup.curr.selectYes()"></button>
<button onclick="Popup.curr.selectNo()"></button>
</div>
</div>
</section>
<section id="notification-bar" class="hide">
<div></div>
</section>
<section id="end-screen" class="hide">
<div></div>
<table>
<colgroup>
<col span="3" />
<col span="1" />
<col span="1" />
<col span="1" />
</colgroup>
<tbody>
<tr>
<th colspan="2"></th>
<th>Round 1</th>
<th>Round 2</th>
<th>Round 3</th>
</tr>
<tr>
<th colspan="2">Geralt</th>
<td>0</td>
<td>0</td>
<td>0</td>
</tr>
<tr>
<th colspan="2">Opponent</th>
<td>0</td>
<td>0</td>
<td>0</td>
</tr>
</tbody>
</table>
<p class="hide">The battle cannot end in a draw. You can play a rematch using the same decks or surrender.</p>
<button>Customize</button>
<button>Replay</button>
</section>
<section id="deck-selector">
</section>
</main>
<section id="deck-customization">
<div id="faction-title" class="center">
<h1></h1>
</div>
<p id="faction-description"></p>
<label id="upload-deck" class="deck-options">
<input type="file" id="add-file" value="Import" style="display:none;"/>
Upload Deck
</label>
<a id="change-faction" class="deck-options">Change Faction</a>
<a id="download-deck" class="deck-options">Download Deck</a>
<a id="download-json" style="display:none;"></a>
<h2 id="card-bank-title" class="card-contianer-title">Card Collection</h2>
<h2 id="card-deck-title" class="card-contianer-title">Cards in Deck</h2>
<div id="card-bank" class="card-array">
</div>
<div id="card-deck" class="card-array">
</div>
<div id="card-leader">
<p>Leader</p>
<div></div>
</div>
<div id="deck-stats">
<p>Total cards in deck</p>
<p>0</p>
<p>Number of Unit Cards</p>
<p>0</p>
<p>Special Cards</p>
<p>0/10</p>
<p>Total Unit Card Strength</p>
<p>0</p>
<p>Hero Cards</p>
<p>0</p>
</div>
<button id="start-game">Start game</button>
</section>
<div id="toggle-music" class="center music-customization">♫</div>
<script type="text/javascript" src="cards.js"></script>
<script type="text/javascript" src="decks.js"></script>
<script type="text/javascript" src="abilities.js"></script>
<script type="text/javascript" src="factions.js"></script>
<script src="https://www.youtube.com/iframe_api"></script>
<script type="text/javascript" src="gwent.js"></script>
</body>
</html>