-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
290 lines (249 loc) · 10.1 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
<head>
<link rel="shortcut icon" href="assets/icon.ico"/>
<title> Subanalysis </title>
<!-- load in D3 and Chart constructor scripts -->
<script src="js/Chart.js"></script>
<script src="js/Controller.js"></script>
<script src="js/Tooltip.js"></script>
<script src="https://d3js.org/d3.v4.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<link rel="stylesheet" type="text/css" href="css/style.css" />
<!--ion Slider: css + js -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ion-rangeslider/2.3.0/css/ion.rangeSlider.min.css"/>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/ion-rangeslider/2.3.0/js/ion.rangeSlider.min.js"></script>
<link href="css/bootstrap-tour-standalone.min.css" rel="stylesheet">
<script src="js/bootstrap-tour-standalone.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<!-- Inizio series tooltip -->
<div class="dummy dummy-text">
<span id="series-tooltip" class="tooltip tooltip-effect-1">
<span class="series tooltip-content clearfix">
<img class="series-poster" src="" />
<span class="tooltip-text">
<span class="series-number"></span>
<span class="series-name"></span>
<div class="series-info"></div>
<div class="series-summary"></div>
<div class="series-avg-wh"></div>
</span>
</span>
</span>
</div>
<!-- Fine series tooltip -->
<!-- Inizio season tooltip -->
<div class="dummy dummy-text">
<div id="season-tooltip" class="tooltip tooltip-effect-1">
<div class="season tooltip-content clearfix">
<div class="logo-container">
<img class="series-logo" src="" >
</div>
<div class="tooltip-text">
<span class="series-name"> </span>
<p class="season-info"></p>
<div class="season-avg-wh"></div>
</div>
</div>
</div>
</div>
<!-- Fine season tooltip -->
<!-- Inizio episode tooltip -->
<div class="dummy dummy-text">
<div id="episode-tooltip" class="tooltip tooltip-effect-1">
<div class="episode tooltip-content clearfix">
<div class="logo-container">
<img class="series-logo" src="" >
</div>
<!-- <img class="series-logo" src="" /> -->
<div class="tooltip-text">
<span class="series-name"> </span>
<span class="episode-number"> </span>
<span class="episode-title"></span>
<div class="episode-info"></div>
<span class="episode-wh"></span>
</div>
</div>
</div>
</div>
<!-- Fine episode tooltip -->
<!-- here's the div our chart will be injected into -->
<!-- <h1 class="title-text"> Welcome to Subanalysis! </h1> -->
<div class="general-wrapper">
<div class="control-panel-container">
<div class="data-selection">
<p> Which data do yo want to see? </p>
<div class="data-selection-input-container">
<input type="radio" name="zoomLevel" value="1" id="series_data" class="form-radio" checked><label for="radio-one">Series</label>
<input type="radio" name="zoomLevel" value="2" id="seasons_data" class="form-radio"><label for="radio-one">Seasons</label>
<input type="radio" name="zoomLevel" value="3" id="episodes_data" class="form-radio"><label for="radio-one">Episodes</label>
</div>
</div>
<hr class="style14">
<div class="filtering">
<form class="filter-form">
<div class="form-filter-controls w-100">
<p class="form-filter-controls-cell text-style">Filter</p>
<div class="form-filter-controls-cell tar">
<!-- <input type="reset" value="Reset"> -->
<button class="form-button" id="reset"> Reset </button>
<button class="form-button" id="check-all"> Check All </button>
</div>
</div>
<div class="left-filter-panel">
<input type="checkbox" name="genre-filter" class="form-checkbox" id="Action" checked style='background:#B36FAF;'><label for="Action">Action</label>
<br>
<input type="checkbox" name="genre-filter" class="form-checkbox" id="Animation" checked style='background:#ACEBFF;'><label for="Animation">Animation</label>
<br>
<input type="checkbox" name="genre-filter" class="form-checkbox" id="Comedy" checked style='background:#0075F2;'><label for="Comedy">Comedy</label>
<br>
<input type="checkbox" name="genre-filter" class="form-checkbox" id="Documentary" checked style='background:#7fbf7b;'><label for="Documentary">Documentary</label>
<br>
<input type="checkbox" name="genre-filter" class="form-checkbox" id="Fantasy" checked style='background:#BCB6FF;'><label for="Fantasy">Fantasy</label>
<br>
<input type="checkbox" name="genre-filter" class="form-checkbox" id="Crime" checked style='background:#F6B540;'><label for="Crime">Crime</label>
</div>
<div class="right-filter-panel">
<input type="checkbox" name="genre-filter" class="form-checkbox" id="Romance" checked style='background:#D8ACB9;'><label for="Romance">Romance</label>
<br>
<input type="checkbox" name="genre-filter" class="form-checkbox" id="Sci-Fi" checked style='background:#5762D5;'><label for="Sci-Fi">Sci-Fi</label>
<br>
<input type="checkbox" name="genre-filter" class="form-checkbox" id="War" checked style='background:#576757;'><label for="War">War</label>
<br>
<input type="checkbox" name="genre-filter" class="form-checkbox" id="Biography" checked style='background:#F1D38D;'><label for="Biography">Biography</label>
<br>
<input type="checkbox" name="genre-filter" class="form-checkbox" id="Drama" checked style='background:#EF7161;'><label for="Drama">Drama</label>
<br>
<input type="checkbox" name="genre-filter" class="form-checkbox" id="History" checked style='background:#DD0426;'><label for="History">History</label>
</div>
</form>
<div id="year-range-container-div">
<p class="filter-opt"> Year range </p>
<div class="year-range-container">
<input type="text" class="year-multi-range" name="year-multi-range" value="" />
</div>
</div>
<hr class="style14">
<div id="wh-range-container-div">
<p class="filter-opt"> W/h range</p>
<div class="wh-range-container">
<input type="text" class="wh-multi-range" name="wh-multi-range" value="" />
</div>
</div>
</div>
<hr class="style14" id="filter-sort-separator">
<div class="sorting">
<p class="order-opt"> Sort Parameter </p>
<div class="left-order-panel">
<input type="radio" name="sorting-parameter" value="id_" id="id_" class="form-radio" checked><label for="standard">Standard</label>
<br>
<input type="radio" name="sorting-parameter" value="wh" id="wh" class="form-radio"><label for="wh">W/h</label>
<br>
<input type="radio" name="sorting-parameter" value="start_year" id="start_year" class="form-radio"><label for="start_year">Year</label>
</div>
<div class="right-order-panel">
<input type="radio" name="sorting-parameter" value="name" id="name" class="form-radio"><label for="name">Name</label>
<br>
<input type="radio" name="sorting-parameter" value="genre" id="genre" class="form-radio"><label for="genre">Genre</label>
<br>
<input type="radio" name="sorting-parameter" value="episode_length" id="episode_length" class="form-radio"><label for="duration">Duration</label>
</div>
<hr class="style14" id="ordering-separator">
<div class="bottom-order-panel">
<p class="order-opt"> Sorting type </p>
<div id="container-switch">
<div class="inner-container">
<div class="toggle">
<p>Descending</p>
</div>
<div class="toggle">
<p>Ascending</p>
</div>
</div>
<div class="inner-container" id='toggle-container'>
<div class="toggle">
<p>Descending</p>
</div>
<div class="toggle">
<p>Ascending</p>
</div>
</div>
</div>
</div>
</div>
<button title="Delete half of the series... Randomly" class="snap-button"
id="snap_button"></button>
</div>
<div class="toggle-control-panel"> </div>
<div class="pulsating-dot">
<div class="pulsating-dot__ripple">
<span></span>
<div></div>
<div></div>
<div></div>
</div>
<p class="toggle-tour"> How it works ? </p>
</div>
<div class="title-container">
<h1 class="title-text"> Welcome to Subanalysis! </h1>
</div>
<div class="chart-wrapper">
<div class="chart-container">
<svg id = "svgChart"></svg>
</div>
</div>
</div>
<script src="js/main.js"></script>
</body>
<script>
// Instance the tour
var tour = new Tour({
backdrop: true,
steps: [
// {
// element: ".title-text",
// content: "Follow me in a fantastic journey...",
// placement: 'left'
// },
{
element: ".chart-container",
content: "This is the main chart. The quantity \"Words per Hour\" tells \
you how many words the characters say in 60 minutes.",
placement: "left"
},
{
element: ".data-selection",
content: "You can select if you want to see the data visualized by \
series or by each seaoson/episode of the series.",
placement: "right"
},
{
element: ".filter-form",
content: "You can filter the series by their genre...",
placement: "right"
},
{
element: "#year-range-container-div",
content: "...by the year they were aired...",
placement: "right"
},
{
element: "#wh-range-container-div",
content: "...or by how much they speak.",
placement: "right"
},
{
element: ".sorting",
content: "You can order the data by different attributes, in a descending \
or ascending fashion.",
placement: "right"
}
],
onEnd: function() {
$('html, body').animate({ scrollTop: 0 }, 'fast');
}
});
// Initialize the tour
tour.init();
window.localStorage.clear();
</script>