This repository has been archived by the owner on Mar 28, 2022. It is now read-only.
/
old.html
403 lines (377 loc) · 19 KB
/
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
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
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
<html>
<head>
<meta charset="utf-8"/>
<title>交流戦即時集計 - mk8dx - マリオカート8DX</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<link href="https://fonts.googleapis.com/earlyaccess/roundedmplus1c.css" rel="stylesheet" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" />
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<style type="text/css">
body {
font-family: "Rounded Mplus 1c";
padding: 30px;
margin-top: 20px;
margin-right: auto;
margin-left : auto;
}
.oneracepoints{
width: 120px;
display: inline-block;
font-size: 12px;
}
input[type=checkbox] {
transform: scale(1.6);
}
</style>
</head>
<body>
<!--
███╗ ███╗ █████╗ ██████╗ ██╗ ██████╗
████╗ ████║██╔══██╗██╔══██╗██║██╔═══██╗
██╔████╔██║███████║██████╔╝██║██║ ██║
██║╚██╔╝██║██╔══██║██╔══██╗██║██║ ██║
██║ ╚═╝ ██║██║ ██║██║ ██║██║╚██████╔╝
╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═════╝
██╗ ██╗ █████╗ ██████╗ ████████╗ █████╗ ██████╗ ██╗ ██╗
██║ ██╔╝██╔══██╗██╔══██╗╚══██╔══╝██╔══██╗██╔══██╗╚██╗██╔╝
█████╔╝ ███████║██████╔╝ ██║ ╚█████╔╝██║ ██║ ╚███╔╝
██╔═██╗ ██╔══██║██╔══██╗ ██║ ██╔══██╗██║ ██║ ██╔██╗
██║ ██╗██║ ██║██║ ██║ ██║ ╚█████╔╝██████╔╝██╔╝ ██╗
╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚════╝ ╚═════╝ ╚═╝ ╚═╝
── ── ── ── ── ── ── ██ ██ ██ ██ ── ██ ██ ██ ──
── ── ── ── ── ██ ██ ▓▓ ▓▓ ▓▓ ██ ██ ░░ ░░ ░░ ██
── ── ── ── ██ ▓▓ ▓▓ ▓▓ ▓▓ ▓▓ ▓▓ ██ ░░ ░░ ░░ ██
── ── ── ██ ▓▓ ▓▓ ▓▓ ██ ██ ██ ██ ██ ██ ░░ ░░ ██
── ── ██ ▓▓ ▓▓ ▓▓ ██ ██ ██ ██ ██ ██ ██ ██ ░░ ██
── ── ██ ▓▓ ██ ██ ░░ ░░ ░░ ░░ ░░ ░░ ██ ██ ██ ──
── ██ ██ ██ ██ ░░ ░░ ░░ ██ ░░ ██ ░░ ██ ▓▓ ▓▓ ██
── ██ ░░ ██ ██ ░░ ░░ ░░ ██ ░░ ██ ░░ ██ ▓▓ ▓▓ ██
██ ░░ ░░ ██ ██ ██ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ██ ▓▓ ██
██ ░░ ░░ ░░ ██ ░░ ░░ ██ ░░ ░░ ░░ ░░ ░░ ██ ▓▓ ██
── ██ ░░ ░░ ░░ ░░ ██ ██ ██ ██ ░░ ░░ ██ ██ ██ ──
── ── ██ ██ ░░ ░░ ░░ ░░ ██ ██ ██ ██ ██ ▓▓ ██ ──
── ── ── ██ ██ ██ ░░ ░░ ░░ ░░ ░░ ██ ▓▓ ▓▓ ██ ──
── ░░ ██ ▓▓ ▓▓ ██ ██ ██ ██ ██ ██ ██ ▓▓ ██ ── ──
── ██ ▓▓ ▓▓ ▓▓ ▓▓ ██ ██ ░░ ░░ ░░ ██ ██ ── ── ──
██ ██ ▓▓ ▓▓ ▓▓ ▓▓ ██ ░░ ░░ ░░ ░░ ░░ ██ ── ── ──
██ ██ ▓▓ ▓▓ ▓▓ ▓▓ ██ ░░ ░░ ░░ ░░ ░░ ██ ── ── ──
██ ██ ██ ▓▓ ▓▓ ▓▓ ▓▓ ██ ░░ ░░ ░░ ██ ██ ██ ██ ──
── ██ ██ ██ ▓▓ ▓▓ ▓▓ ██ ██ ██ ██ ██ ██ ██ ██ ──
── ── ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ▓▓ ▓▓ ██
── ██ ▓▓ ▓▓ ██ ██ ██ ██ ██ ██ ██ ██ ▓▓ ▓▓ ▓▓ ██
██ ██ ▓▓ ██ ██ ██ ██ ██ ██ ██ ██ ██ ▓▓ ▓▓ ▓▓ ██
██ ▓▓ ▓▓ ██ ██ ██ ██ ██ ██ ██ ██ ██ ▓▓ ▓▓ ▓▓ ██
██ ▓▓ ▓▓ ██ ██ ██ ██ ██ ── ── ── ██ ▓▓ ▓▓ ██ ██
██ ▓▓ ▓▓ ██ ██ ── ── ── ── ── ── ── ██ ██ ██ ──
── ██ ██ ── ── ── ── ── ── ── ── ── ── ── ── ──
-->
<center>
<h3>交流戦即時集計</h3>
<hr />
<div style="padding:10px;">
<input type="text" id="teamA" cols=10 rows=1 placeholder="teamA"> vs
<input type="text" id="teamB" cols=10 rows=1 placeholder="teamB">
<br />
<br />
チームAのメンバーが取った順位にチェックを入れてください。レースの点数 / ここまでの合計点数 (diff:点数差 Rem:残りレース数)
<br />
4v4v4(フォーマンセル)即時集計は<a href="http://paper-web.sakura.ne.jp/sokuji/sokuji_four.html">こちら</a>, 3v3v3v3(トリプルス)即時集計は<a href="http://paper-web.sakura.ne.jp/sokuji/sokuji_tri.html">こちら</a>です。
<br />
<br />
<b>全レース合計:</b> <select name="example" size="1" id="total_race_num">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12" selected>12</option>
</select>
<b>レース</b>
</div>
</center>
<div class="printer-type" id="resultarray">
<table border="0" class="printer-row table table-striped table-hover table-condensed table-responsive">
<tr class="onerace">
<td class="oneracepoints"> </td>
<td>1st</td>
<td>2nd</td>
<td>3rd</td>
<td>4th</td>
<td>5th</td>
<td>6th</td>
<td>7th</td>
<td>8th</td>
<td>9th</td>
<td>10th</td>
<td>11th</td>
<td>12th</td>
<td>Result</td>
</tr>
<tr class="onerace">
<td round="1">Race 1</td>
<td><input type="checkbox" value="15" class="chb"></td>
<td><input type="checkbox" value="12" class="chb"></td>
<td><input type="checkbox" value="10" class="chb"></td>
<td><input type="checkbox" value="9" class="chb"></td>
<td><input type="checkbox" value="8" class="chb"></td>
<td><input type="checkbox" value="7" class="chb"></td>
<td><input type="checkbox" value="6" class="chb"></td>
<td><input type="checkbox" value="5" class="chb"></td>
<td><input type="checkbox" value="4" class="chb"></td>
<td><input type="checkbox" value="3" class="chb"></td>
<td><input type="checkbox" value="2" class="chb"></td>
<td><input type="checkbox" value="1" class="chb"></td>
<td class="oneracepoints"> </td>
</tr>
<tr class="onerace">
<td round="2">Race 2</td>
<td><input type="checkbox" value="15" class="chb"></td>
<td><input type="checkbox" value="12" class="chb"></td>
<td><input type="checkbox" value="10" class="chb"></td>
<td><input type="checkbox" value="9" class="chb"></td>
<td><input type="checkbox" value="8" class="chb"></td>
<td><input type="checkbox" value="7" class="chb"></td>
<td><input type="checkbox" value="6" class="chb"></td>
<td><input type="checkbox" value="5" class="chb"></td>
<td><input type="checkbox" value="4" class="chb"></td>
<td><input type="checkbox" value="3" class="chb"></td>
<td><input type="checkbox" value="2" class="chb"></td>
<td><input type="checkbox" value="1" class="chb"></td>
<td class="oneracepoints"> </td>
</tr>
<tr class="onerace">
<td round="3">Race 3</td>
<td><input type="checkbox" value="15" class="chb"></td>
<td><input type="checkbox" value="12" class="chb"></td>
<td><input type="checkbox" value="10" class="chb"></td>
<td><input type="checkbox" value="9" class="chb"></td>
<td><input type="checkbox" value="8" class="chb"></td>
<td><input type="checkbox" value="7" class="chb"></td>
<td><input type="checkbox" value="6" class="chb"></td>
<td><input type="checkbox" value="5" class="chb"></td>
<td><input type="checkbox" value="4" class="chb"></td>
<td><input type="checkbox" value="3" class="chb"></td>
<td><input type="checkbox" value="2" class="chb"></td>
<td><input type="checkbox" value="1" class="chb"></td>
<td class="oneracepoints"> </td>
</tr>
<tr class="onerace">
<td round="4">Race 4</td>
<td><input type="checkbox" value="15" class="chb"></td>
<td><input type="checkbox" value="12" class="chb"></td>
<td><input type="checkbox" value="10" class="chb"></td>
<td><input type="checkbox" value="9" class="chb"></td>
<td><input type="checkbox" value="8" class="chb"></td>
<td><input type="checkbox" value="7" class="chb"></td>
<td><input type="checkbox" value="6" class="chb"></td>
<td><input type="checkbox" value="5" class="chb"></td>
<td><input type="checkbox" value="4" class="chb"></td>
<td><input type="checkbox" value="3" class="chb"></td>
<td><input type="checkbox" value="2" class="chb"></td>
<td><input type="checkbox" value="1" class="chb"></td>
<td class="oneracepoints"> </td>
</tr>
<tr class="onerace">
<td round="5">Race 5</td>
<td><input type="checkbox" value="15" class="chb"></td>
<td><input type="checkbox" value="12" class="chb"></td>
<td><input type="checkbox" value="10" class="chb"></td>
<td><input type="checkbox" value="9" class="chb"></td>
<td><input type="checkbox" value="8" class="chb"></td>
<td><input type="checkbox" value="7" class="chb"></td>
<td><input type="checkbox" value="6" class="chb"></td>
<td><input type="checkbox" value="5" class="chb"></td>
<td><input type="checkbox" value="4" class="chb"></td>
<td><input type="checkbox" value="3" class="chb"></td>
<td><input type="checkbox" value="2" class="chb"></td>
<td><input type="checkbox" value="1" class="chb"></td>
<td class="oneracepoints"> </td>
</tr>
<tr class="onerace">
<td round="6">Race 6</td>
<td><input type="checkbox" value="15" class="chb"></td>
<td><input type="checkbox" value="12" class="chb"></td>
<td><input type="checkbox" value="10" class="chb"></td>
<td><input type="checkbox" value="9" class="chb"></td>
<td><input type="checkbox" value="8" class="chb"></td>
<td><input type="checkbox" value="7" class="chb"></td>
<td><input type="checkbox" value="6" class="chb"></td>
<td><input type="checkbox" value="5" class="chb"></td>
<td><input type="checkbox" value="4" class="chb"></td>
<td><input type="checkbox" value="3" class="chb"></td>
<td><input type="checkbox" value="2" class="chb"></td>
<td><input type="checkbox" value="1" class="chb"></td>
<td class="oneracepoints"> </td>
</tr>
<tr class="onerace">
<td round="7">Race 7</td>
<td><input type="checkbox" value="15" class="chb"></td>
<td><input type="checkbox" value="12" class="chb"></td>
<td><input type="checkbox" value="10" class="chb"></td>
<td><input type="checkbox" value="9" class="chb"></td>
<td><input type="checkbox" value="8" class="chb"></td>
<td><input type="checkbox" value="7" class="chb"></td>
<td><input type="checkbox" value="6" class="chb"></td>
<td><input type="checkbox" value="5" class="chb"></td>
<td><input type="checkbox" value="4" class="chb"></td>
<td><input type="checkbox" value="3" class="chb"></td>
<td><input type="checkbox" value="2" class="chb"></td>
<td><input type="checkbox" value="1" class="chb"></td>
<td class="oneracepoints"> </td>
</tr>
<tr class="onerace">
<td round="8">Race 8</td>
<td><input type="checkbox" value="15" class="chb"></td>
<td><input type="checkbox" value="12" class="chb"></td>
<td><input type="checkbox" value="10" class="chb"></td>
<td><input type="checkbox" value="9" class="chb"></td>
<td><input type="checkbox" value="8" class="chb"></td>
<td><input type="checkbox" value="7" class="chb"></td>
<td><input type="checkbox" value="6" class="chb"></td>
<td><input type="checkbox" value="5" class="chb"></td>
<td><input type="checkbox" value="4" class="chb"></td>
<td><input type="checkbox" value="3" class="chb"></td>
<td><input type="checkbox" value="2" class="chb"></td>
<td><input type="checkbox" value="1" class="chb"></td>
<td class="oneracepoints"> </td>
</tr>
<tr class="onerace">
<td round="9">Race 9</td>
<td><input type="checkbox" value="15" class="chb"></td>
<td><input type="checkbox" value="12" class="chb"></td>
<td><input type="checkbox" value="10" class="chb"></td>
<td><input type="checkbox" value="9" class="chb"></td>
<td><input type="checkbox" value="8" class="chb"></td>
<td><input type="checkbox" value="7" class="chb"></td>
<td><input type="checkbox" value="6" class="chb"></td>
<td><input type="checkbox" value="5" class="chb"></td>
<td><input type="checkbox" value="4" class="chb"></td>
<td><input type="checkbox" value="3" class="chb"></td>
<td><input type="checkbox" value="2" class="chb"></td>
<td><input type="checkbox" value="1" class="chb"></td>
<td class="oneracepoints"> </td>
</tr>
<tr class="onerace">
<td round="10"><span class="title">Race 10</span></td>
<td><input type="checkbox" value="15" class="chb"></td>
<td><input type="checkbox" value="12" class="chb"></td>
<td><input type="checkbox" value="10" class="chb"></td>
<td><input type="checkbox" value="9" class="chb"></td>
<td><input type="checkbox" value="8" class="chb"></td>
<td><input type="checkbox" value="7" class="chb"></td>
<td><input type="checkbox" value="6" class="chb"></td>
<td><input type="checkbox" value="5" class="chb"></td>
<td><input type="checkbox" value="4" class="chb"></td>
<td><input type="checkbox" value="3" class="chb"></td>
<td><input type="checkbox" value="2" class="chb"></td>
<td><input type="checkbox" value="1" class="chb"></td>
<td class="oneracepoints"> </td>
</tr>
<tr class="onerace">
<td round="11">Race 11</td>
<td><input type="checkbox" value="15" class="chb"></td>
<td><input type="checkbox" value="12" class="chb"></td>
<td><input type="checkbox" value="10" class="chb"></td>
<td><input type="checkbox" value="9" class="chb"></td>
<td><input type="checkbox" value="8" class="chb"></td>
<td><input type="checkbox" value="7" class="chb"></td>
<td><input type="checkbox" value="6" class="chb"></td>
<td><input type="checkbox" value="5" class="chb"></td>
<td><input type="checkbox" value="4" class="chb"></td>
<td><input type="checkbox" value="3" class="chb"></td>
<td><input type="checkbox" value="2" class="chb"></td>
<td><input type="checkbox" value="1" class="chb"></td>
<td class="oneracepoints"> </td>
</tr>
<tr class="onerace">
<td round="12">Final Race </td>
<td><input type="checkbox" value="15" class="chb"></td>
<td><input type="checkbox" value="12" class="chb"></td>
<td><input type="checkbox" value="10" class="chb"></td>
<td><input type="checkbox" value="9" class="chb"></td>
<td><input type="checkbox" value="8" class="chb"></td>
<td><input type="checkbox" value="7" class="chb"></td>
<td><input type="checkbox" value="6" class="chb"></td>
<td><input type="checkbox" value="5" class="chb"></td>
<td><input type="checkbox" value="4" class="chb"></td>
<td><input type="checkbox" value="3" class="chb"></td>
<td><input type="checkbox" value="2" class="chb"></td>
<td><input type="checkbox" value="1" class="chb"></td>
<td class="oneracepoints"> </td>
</tr>
<tr class="onerace">
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
</div>
<!-- script for plot graph -->
<!-- script for calc point -->
<script>
$('.chb').on( "click",function(){
//total calculation
$(".printer-type tr:not(:first, last) td:last-child").text(function () {
var OneRaceValA = 0;
var OneRaceValB = 0;
var diff = 0;
var round = 0;
var TotalValA = 0;
var TotalValB = 0;
var ThisRaceResult = "";
var CumlRaceResult = "";
var RemRace = 0;
var TotalRaceNum = $("#total_race_num").val();
// Score for one race
$(this).prevAll().each(function () {
OneRaceValA += parseInt($(this).children('.chb:checked').val()) || 0;
round = parseInt($(this).attr('round'));
});
OneRaceValB = 82 - OneRaceValA;
ThisRaceResult = OneRaceValA + "-" + OneRaceValB ;
// Cumulative score
var temp = "";
$("#resultarray").find('.oneracepoints:gt(0):lt('+(round-1)+')').each(function () {
temp = $(this).text().split('/')[0].split('-');
TotalValA += parseInt(temp[0]);
TotalValB += parseInt(temp[1]);
});
TotalValA += OneRaceValA;
TotalValB += OneRaceValB;
CumlRaceResult = $("#teamA").val() + " " + TotalValA + "-" + TotalValB + " " + $("#teamB").val();
diff = TotalValA - TotalValB;
// Remined Race
RemRace = " Rem:" + (TotalRaceNum - round);
return ThisRaceResult + " / " + CumlRaceResult + " (diff:" + diff + RemRace + ")";
});
$(".printer-type tr:last td:last").text("")
});
</script>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- sakura -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-3422749596492644"
data-ad-slot="1648297909"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</body>
</html>