-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
363 lines (315 loc) · 14.5 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
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>Data Driven Dota</title>
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="http://cdn.jsdelivr.net/intro.js/0.6.0/introjs.min.css"></link>
<link rel="stylesheet" type="text/css" href="css/introjs.css"></link>
<link rel="stylesheet" type="text/css" href="css/main.css"></link>
<link rel="stylesheet" type="text/css" href="css/selectors.css"></link>
<link rel="stylesheet" type="text/css" href="css/timeline.css"></link>
<link rel="stylesheet" type="text/css" href="css/end_screen.css"></link>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
<script src="http://d3js.org/d3.v3.min.js"></script>
<script src="http://labratrevenge.com/d3-tip/javascripts/d3.tip.v0.6.3.js"></script>
<script src="js/d2.js"></script>
<script src="js/intro.js"></script>
</head>
<body>
<div id="splash">
<div class="logoimage"><img src="img/possible.png" width="700px" height="560px" align="middle"></div>
<div class="splash-nav">
<div class="left-nav">
<span class="visit_video"><a class="btn btn-link" href="https://www.youtube.com/watch?v=dqEPDAj5nlc" target="_blank">View our Video</a></span>
<span class="to_github"><a class="btn btn-link" href="https://github.com/rkgibson2/data-driven-dota" target="_blank">View Project on Github</a></span>
<span class="process_book"><button class="btn btn-link" href="#" onclick="window.open('process_book/Process_Book_Final.pdf', '_blank', 'fullscreen=yes', 'channelmode=yes'); return false;">View Process Book</button></span>
</div>
<div class="right-nav">
<span class="more_info_button"><button class="btn btn-info" data-loading-text="Loading...">Walkthrough</button></span>
<span class="move_on_button"><button class="btn btn-success" data-loading-text="Loading...">To Visualization</button></span>
</div>
</div>
</div>
<div id="not-splash" style="display:none;">
<div id="page-header">
<div id="corner">
<img id="corner-logo" src="img/LogoSmall.png" alt="Data Driven Dota Logo" title="Data Driven Dota" onclick="return_to_splash()">
<button class="btn btn-default btn-sm" onclick="return_to_splash()">Return to Title</button>
</div>
<div id="nav">
<!-- FILTERS -->
<div id="filters">
<!--USER DROPDOWN -->
<span id="selectuser"></span>
<!--FILTER HERO MODAL BUTTON -->
<span id="filterbutton"><button class="btn btn-default" data-toggle="modal" data-target="#selector" onclick="reselectHeroes()">Filter by Heroes</button></span>
<!--FILTER GAME MODE MODAL BUTTON -->
<span id="filterbutton_game_mode"><button class="btn btn-default" data-toggle="modal" data-target="#select_game_type" onclick="reselectLobby()">Filter by Game Type</button></span>
</div>
<div id="colorblindtoggle">
<!-- COLOR BLIND TOGGLE -->
<span id="colorblind" class="checkbox"><label>Color Blind Mode<input type="checkbox" id="color-blind" name="color-blind-box" onclick="changeCSS()" ></input></label></span>
</div>
</div>
<div id="questionmark">
<!-- HELP QUESTION MARK -->
<span class="question"><strong>?</strong></span>
</div>
<!-- TIMELINE OVERVIEW -->
<div id ="timeline"></div>
</div>
<div id="page-content">
<!-- END SCREEN -->
<div id="end_screen" style="display:none">
<div id="match_data">
<div id="left_col">
<div id="match_id">
<div class="header">Match ID</div>
<div class="text">8</div>
</div>
<div id="game_mode">
<div class="header">Game Mode</div>
<div class="text">H Pick</div>
</div>
</div>
<div id="right_col">
<div id="date">
<div class="header">Date</div>
<div class="text">0:16:56 Mon Mar 24 2014</div>
</div>
<div id="duration">
<div class="header">Duration</div>
<div class="text">46:46</div>
</div>
</div>
<div id="winner">Dire Victory</div>
<div id="closebutton">
<span class="buttonholder">
<button class="btn btn-default btn-sm" onclick="exit_end_screen()">Close</button>
</span>
</div>
</div>
<div id="players">
<table id="radiant">
<thead>
<tr class="team radiant">
<th colspan="17">The Radiant</th>
</tr>
<tr class="headers">
<th class="player_name">Player</th>
<th class="level">Level</th>
<th class="hero">Hero</th>
<th class="kills">K</th>
<th class="deaths">D</th>
<th class="assists">A</th>
<th class="items">Items</th>
<th class="gold">Gold</th>
<th class="last_hits">Last Hits</th>
<th class="denies">Denies</th>
<th class="gold_per_min">Gold/Min</th>
<th class="xp_per_min">XP/Min</th>
</tr>
</thead>
<tbody>
<tr class="slot0">
<td class="player_name">MindBlown</td>
<td class="level">18</td>
<td class="hero">Vengeful Spirit</td>
<td class="kills">4</td>
<td class="deaths">9</td>
<td class="assists">10</td>
<td class="items"></td>
<td class="gold">528</td>
<td class="last_hits">58</td>
<td class="denies">14</td>
<td class="gold_per_min">258</td>
<td class="xp_per_min">394</td>
</tr>
</tbody>
</table>
<table id="dire">
<thead>
<tr class="team dire">
<th colspan="17">The Dire</th>
</tr>
<tr class="headers">
<th class="player_name">Player</th>
<th class="level">Level</th>
<th class="hero">Hero</th>
<th class="kills">K</th>
<th class="deaths">D</th>
<th class="assists">A</th>
<th class="items">Items</th>
<th class="gold">Gold</th>
<th class="last_hits">Last Hits</th>
<th class="denies">Denies</th>
<th class="gold_per_min">Gold/Min</th>
<th class="xp_per_min">XP/Min</th>
</tr>
</thead>
<tbody>
<tr class="slot0">
<td class="player_name">MindBlown</td>
<td class="level">18</td>
<td class="hero">Vengeful Spirit</td>
<td class="kills">4</td>
<td class="deaths">9</td>
<td class="assists">10</td>
<td class="items"></td>
<td class="gold">528</td>
<td class="last_hits">58</td>
<td class="denies">14</td>
<td class="gold_per_min">258</td>
<td class="xp_per_min">394</td>
</tr>
</tbody>
</table>
<div class="ability_build" style="visibility:hidden"></div>
</div>
</div>
<!-- STAT GRAPHS -->
<div id="stat_graphs">
<div id="win_loss_container"></div>
<div id="record_content">
<div id="longest_match" data-value="Longest Match"></div>
<div id="most_kills" data-value="Most Kills"></div>
<div id="most_deaths" data-value = "Most Deaths"></div>
<div id="most_last_hits" data-value ="Most Last Hits"></div>
<div id="most_hero_damage" data-value = "Most Hero Damage" ></div>
<div id="most_tower_damage" data-value = "Most Tower Damage"></div>
</div>
<hr>
<div class="graphs_row">
<div id="hero_pie_container"></div>
<div id="item_percent_container">
<div id="item_percent_filters">
<label id="value_sort_label"><input type="radio" id="value" name="itemgraph"> Sort bars by frequency</label>
<label id="item_sort_label"><input type="radio" id="item" name="itemgraph"> Sort bars by item</label>
<label id="cost_sort_label"><input type="radio" id="cost" name="itemgraph"> Sort bars by cost</label>
</div>
</div>
</div>
<hr>
<div class="graphs_row" id = "xpmgpm_container">
<div id="gpm_container"></div>
<div id="xpm_container"></div>
</div>
<hr>
<div class="graphs_row">
<div id="hero_chord_container">
<label id="hero_filter"><input class="this1" type="range" name="hero_filter" min="5" max="11" step="1" value="8"> <span class="filterInput">8 </span> Games Played Together</label>
</div>
<div id="user_interact_container">
<label id="toggle_color_pretty"><input type="radio" id="rainbow" name="bubblegraph" checked>Color by Games Played</label>
<label id="toggle_color_ugly"><input type="radio" id="winrate" name="bubblegraph">Color by Winrate</label>
</div>
</div>
<hr class = "hr-end" style="visibility:hidden;">
<!-- <label id="item_filter"><input class="this1" type="range" name="points" min="0" max="51" step="1" value="50" disabled> <span class="filterInput">51 </span> Items</label> -->
</div>
<div class="footer">
<span class="creators">
Created for <a href="http://www.cs171.org/">Harvard CS171</a> | 2014 |
<a href="https://github.com/huihuifan" target="_blank">Angela Fan</a>, <a href="https://github.com/rkgibson2" target="_blank">Robbie Gibson</a>, <a href="https://github.com/benjylevin" target="_blank">Benjy Levin</a>
</span>
<br>
<span class="credits">
Artwork from: <a href="http://store.steampowered.com/app/570/" target="_blank">Valve</a>,
<a href="http://www.freetoplaythemovie.com/" target="_blank">Free to Play</a>,
<a href="http://99hunters.tumblr.com/" target="_blank">99hunters</a> |
Data from: <a href="http://dev.dota2.com/showthread.php?t=47115" target="_blank">Valve Web API</a>
</div>
</div>
<!-- MODAL POPUP DIV HEROES -->
<div id="selector" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="hero_filter_label" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h4 id="hero_filter_label">Select Heroes to Filter</h4>
</div>
<div class="modal-body">
<table>
<tr>
<td><text id="strlabel"><img src="img/icons/overviewicon_str.png" alt="Strength Icon" height="33px" width="33px"> Strength</text></td>
<td><text id="agilabel"><img src="img/icons/overviewicon_agi.png" alt="Ability Icon" height="33px" width="33px"> Agility</text></td>
<td><text id="intlabel"><img src="img/icons/overviewicon_int.png" alt="Intelligence Icon" height="33px" width="33px"> Intelligence</text></td>
</tr>
<tr class="images">
<td><div id="strimages"></div></td>
<td><div id="agiimages"></div></td>
<td><div id="intimages"></div></td>
</table>
</div>
<div class="modal-footer">
<button href="#" onclick="selected()" class="btn btn-success" data-dismiss="modal">Filter</button>
<button href="#" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</div>
<!-- MODAL POPUP DIV GAME TYPE -->
<div id = "select_game_type" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="mode_filter_label" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h4 id="mode_filter_label">Select Modes to Filter</h4>
</div>
<div class="modal-body">
<!-- GAME MODE SELECTOR TABLE -->
<div id ="game_mode_content">
<table id ="game_mode_table">
<!--th colspan="3"><text id = "modeheading"> Game Mode</text></th-->
<th colspan ="3">Game Mode</th>
<tr>
<td id="AP" onclick="changeColor(this.id);">All Pick</td>
<td id="CM" onclick="changeColor(this.id);">Captains Mode</td>
<td id="CD" onclick="changeColor(this.id);">Captains Draft</td>
</tr>
<tr>
<td id="SD" onclick="changeColor(this.id);">Single Draft</td>
<td id="RD" onclick="changeColor(this.id);">Random Draft</td>
<td id="AR" onclick="changeColor(this.id);">All Random</td>
</tr>
<tr>
<td id="LP" onclick="changeColor(this.id);">Least Played</td>
<td id="LH" onclick="changeColor(this.id);">Limited Heroes</td>
<td id="AD" onclick="changeColor(this.id);">Ability Draft</td>
</tr>
</table>
<table id ="lobby_table">
<th colspan ="4"> Lobby Type</th>
<tr>
<td id="public" onclick="changeLobbyColor(this.id);">Public Matchmaking</td>
<td id="practice" onclick="changeLobbyColor(this.id);">Practice</td>
<td id="tournament" onclick="changeLobbyColor(this.id);">Tournament</td>
<td id="tutorial" onclick="changeLobbyColor(this.id);">Tutorial</td>
</tr>
<tr>
<td id="co_op_bot" onclick="changeLobbyColor(this.id);">Co-op with bots</td>
<td id="team_match" onclick="changeLobbyColor(this.id);">Team Match</td>
<td id="solo_queue" onclick="changeLobbyColor(this.id);">Solo Queue</td>
<td id="ranked" onclick="changeLobbyColor(this.id);">Ranked</td>
</tr>
</table>
</div>
</div>
<div class="modal-footer">
<button href="#" onclick="filterLobby()" class="btn btn-success" data-dismiss="modal">Filter</button>
<button href="#" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<script src="js/graph_functions.js"></script>
<script src="js/user.js"></script>
<script src="js/end_screen.js"></script>
<script src="js/selectors.js"></script>
<script src="js/timeline.js"></script>
<script src="js/game_mode.js"></script>
<script src="js/lobbies.js"></script>
<script src="js/records.js"></script>
<script src="js/colorblind.js"></script>
<script src="js/introscript.js"></script>
</body>