forked from hiatus-hiatus/hiatus-hiatus.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
277 lines (231 loc) · 11 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
<!--suppress XmlUnboundNsPrefix -->
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=0">
<meta name="description" content="Togashi's Hunter x Hunter Hiatus Chart"/>
<meta name="keywords" content="hunter x hunter,hiatus,hiatuses,hiato,hiatos,gráfico,chart,togashi"/>
<meta property="og:url" content="https://hiatus-hiatus.github.io/"/>
<meta property="og:title" content="Hiatus Chart"/>
<meta property="og:description" content="Hiatus Chart"/>
<meta property="og:image" content="https://hiatus-hiatus.github.io/icon.png"/>
<meta name="google-site-verification" content="G1lTOd25kSvhh8p4eWnVvr52YbP1HJIYjLGZIORCUCU"/>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
<link rel="stylesheet" href="/style.css">
<link id="custom_style" rel="stylesheet" href="style.css">
<link rel="stylesheet"
href="//cdnjs.cloudflare.com/ajax/libs/bootstrap-material-design/0.3.0/css/material.min.css"/>
<title>Hiatus Chart</title>
<body>
<div id="app">
<div class="well container _container">
<button v-on:click="show_arcs = !show_arcs" class="fab">Arcs</button>
<h1 class="text-center">{{info.series_name}} Hiatus Chart</h1>
<div id="main-chart" class="row chart notransition">
<div>
<div v-for="group in issues_by_year" class="h-row">
<div class="chart-year">{{group.year}}</div>
<div class="h-col" v-for="issue in group.issues"
v-bind:class="[{'false': !issue.released},show_arcs? issue.arc?issue.arc:'hiatus-arc':'']"
v-bind:title="'Issue: ' + issue.number">
</div>
</div>
</div>
</div>
<div class="text-center caption">
<div v-if="!show_arcs">
<div class="h-col"></div>
Appears in jump
<div class="h-col false"></div>
Hiatus
</div>
</div>
<div v-if="show_arcs" style="width: 500px;margin: 0 auto">
<div class="caption" v-for="arc in info.arcs" style="float: left;min-width: 230px">
<div v-bind:class="['h-col',arc.key]"></div>
{{arc.name}}
</div>
</div>
</div>
<div class="well container _container">
<div>
<h1 class="text-center">Hiatus Status</h1>
<div id="status" class="row center-block">
<div v-if="status.current.hiatusCount>0 && info.ongoing">
<p>Current hiatus:
<span v-if="status.current.hiatusCount>0">
<strong>{{status.current.hiatusCount}}</strong> issue<span
v-if="status.current.hiatusCount>1">s</span>
(since issue {{status.current.begin.issue}}/{{status.current.begin.year}})
</span>
<strong v-if="status.current.hiatusCount==0">No hiatus</strong>
</p>
<div class="bar false" v-bind:style="{width: status.currentWidth}"></div>
</div>
<div v-if="status.currentPubStreak.count>0 && info.ongoing">
<p>
Current publication streak:
<strong>{{status.currentPubStreak.count}}</strong> issue<span
v-if="status.currentPubStreak.count>1">s</span>
(since issue
{{status.currentPubStreak.begin.issue}}/{{status.currentPubStreak.begin.year}})
</p>
<div class="bar blue" v-bind:style="{width: status.currentPubStreakWidth}"></div>
</div>
<p>Longest hiatus: <strong>{{status.longest.hiatusCount}} </strong>issue<span
v-if="status.longest.hiatusCount>1">s</span>
(from issue {{status.longest.begin.issue}}/{{status.longest.begin.year}} to issue
{{status.longest.end.issue}}/{{status.longest.end.year}})
</p>
<div class="bar" :style="{width:status.longestWidth}"></div>
<p>
Longest publication streak: <strong>{{status.pubStreak.count}}</strong> issues
(from issue {{status.pubStreak.begin.issue}}/{{status.pubStreak.begin.year}} to issue
{{status.pubStreak.end.issue}}/{{status.pubStreak.end.year}})
</p>
<div class="bar dark-blue" :style="{width:status.pubStreakWidth}"></div>
</div>
</div>
</div>
<div class="well container _container">
<div>
<h1 class="text-center">Overall Stats</h1>
<div id="stats" class="row center-block">
<p><strong>{{status.overall.totalIssues}}</strong> Weekly Shonen Jump issues were released since
{{info.series_name}}'s debut</p>
<div class="caption">
<p class="bar-info"><span class="text-info"><strong>{{status.overall.totalPresent}}</strong> ({{(status.overall.totalPresent / status.overall.totalIssues / 0.01).toFixed(1)}}%) </span>total
issues {{info.series_name}} was present</p>
<p class="bar-info" style="float: right;"><span class="text-danger"><strong>{{status.overall.totalHiatus}}</strong> ({{(status.overall.totalHiatus/status.overall.totalIssues/0.01).toFixed(1)}}%) </span>total
issues missed</p>
</div>
<div :style="{width:status.pTotalPresent}" style="float:left">
<div class="bar left blue" style="display: inline-block; width:100%"></div>
</div>
<div :style="{width:status.pTotalHiatus}" style="float:left">
<div class="bar false right" style="display: inline-block;width:100%"></div>
</div>
</div>
</div>
</div>
<div class="well container _container" v-if="major_hiatuses.length >0">
<div>
<h1 class="text-center">Major Hiatuses</h1>
<div id="breaks" class="row center-block">
<div class="col-xs-10 col-xs-offset-1">
<table class="table table-condensed table-hover">
<thead>
<tr>
<th>Start</th>
<th>End</th>
<th class="col-xs-8">Number of issues</th>
</tr>
</thead>
<tbody>
<tr v-for="hiatus in major_hiatuses">
<td>{{hiatus.start}}</td>
<td>{{hiatus.end}}</td>
<td>
<div class="table-bar"
:style="{width:hiatus.viewProportion}">
{{hiatus.total}}
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div class="well container _container">
<div class="row">
<h3 class="text-center">Chapters released by year</h3>
</div>
<div class="row">
<div class="col-xs-10 col-xs-offset-1">
<div class="col-md-12">
<div class="chart-responsive">
<canvas height="250" ref="yearlyCanvas"></canvas>
</div>
</div>
</div>
</div>
</div>
<div class="well container _container">
<div class="row">
<h3 class="text-center">Hiatus / year</h3>
</div>
<div class="row">
<div class="col-xs-10 col-xs-offset-1">
<table class="table table-condensed table-hover">
<thead>
<tr>
<th>Year</th>
<th>Issues Missed</th>
<th>% Hiatus</th>
</tr>
</thead>
<tbody>
<tr v-for="info in hiatuses_by_year">
<td>{{info.year}}</td>
<td>{{info.total_hiatus}}/{{info.total_issues}}</td>
<td v-bind:class="info.percent >50? 'text-danger':''">
{{info.percent}}%
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="well container _container">
<div class="row">
<h3 class="text-center">All charts</h3>
</div>
<div class="row">
<div class="col-xs-10 col-xs-offset-1 buttons">
<a href="/HunterXHunter" class="chart-button">Hunter x Hunter</a>
<a href="/KimetsuNoYaiba" class="chart-button">Kimetsu no Yaiba</a>
<a href="/YuYuHakusho" class="chart-button">Yu Yu Hakusho</a>
</div>
</div>
<div class="h-row" style="margin-top: 16px">
<div class="col-xs-10">
<p>You can find charts for other series <a href="https://www.reddit.com/r/HiatusCharts/"
target="_blank">here.</a></p>
</div>
</div>
</div>
<div class="well container _container" id="disqus_thread"></div>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments
powered by Disqus.</a></noscript>
<div class="footer">
<p>Sources: <a target="_blank" href="http://hunter.noihjp.com/rest/">http://hunter.noihjp.com/</a>
and <a href="https://comicvine.gamespot.com" target="_blank">Comic Vine</a>
</p>
</div>
</div>
<script src="https://unpkg.com/[email protected]/dist/vue.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lodash.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/axios/0.16.2/axios.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.6.0/Chart.min.js"></script>
<script src="/app.js"></script>
<script>
(function (i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r;
i[r] = i[r] || function () {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date();
a = s.createElement(o),
m = s.getElementsByTagName(o)[0];
a.async = 1;
a.src = g;
m.parentNode.insertBefore(a, m)
})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
ga('create', 'UA-63786226-1', 'auto');
ga('send', 'pageview');
</script>
</body>
<!--made by http://www.reddit.com/user/rentzhx3-->
</html>