forked from roanuz/cricket-html-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.html
658 lines (644 loc) · 26.1 KB
/
main.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
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>ScoreBoard</title>
<link href='http://fonts.googleapis.com/css?family=Lato&subset=latin,latin-ext' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<link rel="stylesheet" href="css/index.css"/>
</head>
<body>
<!--Whole Container -->
<div class="rca-container rca-margin">
<!--Live ScoreBoard -->
<div class="rca-row">
<!--Widget Inner -->
<div class="rca-column-6">
<!--Match Series-->
<div class="rca-medium-widget rca-padding rca-live-season rca-top-border">
<div class="rca-live-label rca-right">IND vs NZL</div>
<div class="rca-clear"></div>
<div class="rca-padding">
<h3 class="rca-match-title">
<a href="/main.html">
IND: 173/2 in 18.5
</a>
</h3>
<p class="rca-match-info">
<span>IND: 16/1 in 1.0</span>
<span>CRR:4.1</span>
<span>Req RR:10.1</span>
</p>
<p class="rca-match-info">
<span>IND: 220/7 in 1.0</span>
<span>& 101/4 in 20.0</span>
</p>
<div class="rca-top-padding">
<div class="rca-batsman striker">
<span class="player">V Kohli</span>
<span>48(27)</span>
</div>
<div class="rca-batsman">
<span class="player">MS Dhoni</span>
<span>14(8)</span>
</div>
</div>
<div class="rca-ball-detail">
<div class="rca-match-schedule">
Over: 24
</div>
<ul class="rca-ball-by">
<li class="b6">6</li>
<li class="">1wd</li>
<li class="w">w</li>
<li class="">1</li>
<li class="">2</li>
<li class="b6">4</li>
</ul>
<div class="rca-bowler-info">
<span>Agarkar: </span><span class="rca-bolwing">5/0 in 0.2</span>
</div>
</div>
</div>
<div class="rca-top-padding rca-score-status">
<div class="rca-status-scroll">
FOUR!!! from Dhoni
</div>
<ul class="rca-bullet-list">
<li class="active" data-tab="#status1"></li>
<li data-tab="#status2"></li>
<li data-tab="#status3"></li>
</ul>
</div>
</div>
<!--Match Schedule Info-->
<div class="rca-mini-widget rca-history-info">
<div class="rca-row">
<span class="rca-col rca-history-title">Match:</span>
<span class="rca-col"> Team X vs Team Y - 6th Qualifying Match</span>
</div>
<div class="rca-row">
<span class="rca-col rca-history-title">Series:</span>
<span class="rca-col"> Developer season 2014</span>
</div>
<div class="rca-row">
<span class="rca-col rca-history-title">Date (GMT):</span>
<span class="rca-col"> 24th Sep 2014 00:00 GMT</span>
</div>
<div class="rca-row">
<span class="rca-col rca-history-title">Venue:</span>
<span class="rca-col"> India</span>
</div>
<div class="rca-row">
<span class="rca-col rca-history-title">Match Type:</span>
<span class="rca-col"> Twenty20 Cricket Match</span>
</div>
<div class="rca-row">
<span class="rca-col rca-history-title">Toss:</span>
<span class="rca-col"> Team X won the toss and chose to bat first</span>
</div>
</div>
<!--Completed Match Series-->
<div class="rca-medium-widget rca-padding rca-completed-match rca-top-border">
<div class="rca-right rca-basic-text">12th Feb 2016</div>
<div class="rca-clear"></div>
<div class="rca-padding">
<h3 class="rca-match-title rca-theme-text">
India won by 69 runs
</h3>
<p class="rca-match-info">
<span>2nd T20 Match</span>
</p>
<div class="rca-top-padding">
<div class="rca-team-score">
<span class="team">India</span>
<span>196/6 in 20.0</span>
</div>
<div class="rca-team-score">
<span class="team">Sri Lanka</span>
<span>127/9 in 20.0</span>
</div>
</div>
<div class="rca-man-match">
<h3>Man of the Match <span>S Dawan</span></h3>
<div class="rca-padding">
<p class="rca-man-match-record"><span class="title">Runs</span><span>51(25)</span></p>
<p class="rca-man-match-record"><span class="title">Boundries</span><span>7X4, 2X6</span></p>
<p class="rca-man-match-record"><span class="title">Wickets</span><span>Nil</span></p>
</div>
</div>
</div>
</div>
<!--Upcoming Match Schedule-->
<div class="rca-medium-widget rca-padding rca-completed-match rca-top-border">
<div class="rca-right rca-basic-text">12th Feb 2016</div>
<div class="rca-clear"></div>
<div class="rca-padding">
<h3 class="rca-match-title rca-theme-text">
BAN VS IND
</h3>
<p class="rca-match-info">
<span>2nd T20 Match</span>
</p>
<div class="rca-top-padding">
<div class="rca-teams rca-table">
<div class="team rca-cell">South Africa</div>
<div class="rca-vs rca-cell"></div>
<div class="team rca-cell">Bakistan</div>
</div>
</div>
<div class="rca-match-start">
<h3>Starts in</h3>
<div class="rca-padding">
<h2>1 day</h2>
<p class="rca-center">
Wed 24th Feb 2016, 7:00 pm (local time)
</p>
</div>
</div>
</div>
</div>
</div>
<div class="rca-column-6">
<!--Match Series-->
<div class="rca-medium-widget rca-top-border ">
<ul class="rca-tab-list">
<li class="rca-tab-link active" data-tab="tab-41" onclick="showTab(this);">SCORECARD</li>
<li class="rca-tab-link" data-tab="tab-42" onclick="showTab(this);">SQUAD</li>
</ul>
<div id="tab-41" class="rca-tab-content rca-padding active">
<div class="rca-batting-score rca-padding">
<h3>Team X Batting: <strong> 92/2 in 8.5</strong></h3>
<div class="rca-row">
<div class="rca-header rca-table">
<div class="rca-col rca-player">
Batsmen
</div>
<div class="rca-col">
R
</div>
<div class="rca-col">
4s
</div>
<div class="rca-col">
6s
</div>
<div class="rca-col">
SR
</div>
</div>
</div>
<div class="rca-row">
<div class="rca-table">
<div class="rca-col rca-player">
Player x1*
</div>
<div class="rca-col">
8 (7)
</div>
<div class="rca-col">
0
</div>
<div class="rca-col">
1
</div>
<div class="rca-col">
114.29
</div>
</div>
</div>
<div class="rca-row">
<div class="rca-table">
<div class="rca-col rca-player">
Player x2
</div>
<div class="rca-col">
8 (7)
</div>
<div class="rca-col">
0
</div>
<div class="rca-col">
1
</div>
<div class="rca-col">
114.29
</div>
</div>
</div>
<div class="rca-clear"></div>
<div class="rca-padding">
<span>Fours: <strong>2</strong></span>, <span>Sixes: <strong>1</strong></span>, <span>Extras: <strong>9</strong></span>
</div>
</div>
<div class="rca-bowling-score rca-padding">
<h3>Team X Bowling:</h3>
<div class="rca-row">
<div class="rca-header rca-table">
<div class="rca-col rca-player">
Bowler
</div>
<div class="rca-col small">
O
</div>
<div class="rca-col small">
M
</div>
<div class="rca-col small">
R
</div>
<div class="rca-col small">
W
</div>
<div class="rca-col small">
Econ
</div>
<div class="rca-col small">
Extras
</div>
</div>
</div>
<div class="rca-row">
<div class="rca-table">
<div class="rca-col rca-player">
Player Y
</div>
<div class="rca-col small">
6
</div>
<div class="rca-col small">
2
</div>
<div class="rca-col small">
38
</div>
<div class="rca-col small">
2
</div>
<div class="rca-col small">
7.00
</div>
<div class="rca-col small">
3
</div>
</div>
</div>
<div class="rca-row">
<div class="rca-table">
<div class="rca-col rca-player">
Player Y
</div>
<div class="rca-col small">
6
</div>
<div class="rca-col small">
2
</div>
<div class="rca-col small">
38
</div>
<div class="rca-col small">
2
</div>
<div class="rca-col small">
7.00
</div>
<div class="rca-col small">
3
</div>
</div>
</div>
<div class="rca-clear"></div>
</div>
</div>
<div id="tab-42" class="rca-tab-content rca-padding">
<ul class="rca-tab-list small">
<li class="rca-tab-link active" data-tab="tab-411" onclick="showTab(this);">Team X</li>
<li class="rca-tab-link" data-tab="tab-412" onclick="showTab(this);">Team Y</li>
</ul>
<div id="tab-411" class="rca-tab-content rca-padding active">
<!-- <div class="rca-padding">
<div class="rca-switch filled">
<span class="active">Team X</span><span>Team Y</span>
</div>
</div> -->
<div class="rca-batting-score">
<h3>Team X (11)</h3>
<div class="rca-player-detail">
<span class="rca-player">MS Dhoni</span>
<span class="rca-highlight-text">(C) & (WK)</span>
<span class="rca-right rca-basic-text">Batsman</span>
</div>
<div class="rca-player-detail">
<span class="rca-player">Shikhar Dhawan</span>
<span class="rca-right rca-basic-text">Batsman</span>
</div>
<div class="rca-player-detail">
<span class="rca-player">Ajinkya Rahane</span>
<span class="rca-right rca-basic-text">Bowler</span>
</div>
<div class="rca-player-detail">
<span class="rca-player">Suresh Raina</span>
<span class="rca-right rca-basic-text">All rounder</span>
</div>
</div>
<div class="rca-batting-score">
<h3>Bench (9)</h3>
<div class="rca-player-detail">
<span class="rca-player">Rohit Sharma</span>
<span class="rca-highlight-text">(WK)</span>
<span class="rca-right rca-basic-text">Batsman</span>
</div>
<div class="rca-player-detail">
<span class="rca-player">Rohit Sharma</span>
<span class="rca-right rca-basic-text">Batsman</span>
</div>
<div class="rca-player-detail">
<span class="rca-player">Rohit Sharma</span>
<span class="rca-right rca-basic-text">Batsman</span>
</div>
<div class="rca-player-detail">
<span class="rca-player">Rohit Sharma</span>
<span class="rca-right rca-basic-text">Batsman</span>
</div>
</div>
</div>
<div id="tab-412" class="rca-tab-content rca-padding active">
<!-- <div class="rca-padding">
<div class="rca-switch filled">
<span class="active">Team X</span><span>Team Y</span>
</div>
</div> -->
<div class="rca-batting-score">
<h3>Team Y (11)</h3>
<div class="rca-player-detail">
<span class="rca-player">MS Dhoni</span>
<span class="rca-highlight-text">(C) & (WK)</span>
<span class="rca-right rca-basic-text">Batsman</span>
</div>
<div class="rca-player-detail">
<span class="rca-player">Shikhar Dhawan</span>
<span class="rca-right rca-basic-text">Batsman</span>
</div>
<div class="rca-player-detail">
<span class="rca-player">Ajinkya Rahane</span>
<span class="rca-right rca-basic-text">Bowler</span>
</div>
<div class="rca-player-detail">
<span class="rca-player">Suresh Raina</span>
<span class="rca-right rca-basic-text">All rounder</span>
</div>
</div>
<div class="rca-batting-score">
<h3>Bench (9)</h3>
<div class="rca-player-detail">
<span class="rca-player">Rohit Sharma</span>
<span class="rca-highlight-text">(WK)</span>
<span class="rca-right rca-basic-text">Batsman</span>
</div>
<div class="rca-player-detail">
<span class="rca-player">Rohit Sharma</span>
<span class="rca-right rca-basic-text">Batsman</span>
</div>
<div class="rca-player-detail">
<span class="rca-player">Rohit Sharma</span>
<span class="rca-right rca-basic-text">Batsman</span>
</div>
<div class="rca-player-detail">
<span class="rca-player">Rohit Sharma</span>
<span class="rca-right rca-basic-text">Batsman</span>
</div>
</div>
</div>
</div>
</div>
<!--Test Innings Score Card-->
<div class="rca-medium-widget rca-top-border">
<ul class="rca-tab-list">
<li class="rca-tab-link active" data-tab="tab-31" onclick="showTab(this);">SCORECARD</li>
<li class="rca-tab-link" data-tab="tab-32" onclick="showTab(this);">SQUAD</li>
</ul>
<div id="tab-31" class="rca-tab-content rca-padding active">
<div class="rca-border-bottom rca-padding">
<div class="rca-switch rca-top-padding">
<span class="active">Team X 1st Innings</span><span>Team X 2nd Innings</span>
</div>
<div class="rca-switch rca-top-padding">
<span>Team Y 1st Innings</span><span>Team Y 2nd Innings</span>
</div>
</div>
<div class="rca-batting-score rca-padding">
<h3>Team X Batting: <strong> 92/2 in 8.5</strong></h3>
<div class="rca-row">
<div class="rca-header rca-table">
<div class="rca-col rca-player">
Batsmen
</div>
<div class="rca-col">
R
</div>
<div class="rca-col">
4s
</div>
<div class="rca-col">
6s
</div>
<div class="rca-col">
SR
</div>
</div>
</div>
<div class="rca-row">
<div class="rca-table">
<div class="rca-col rca-player">
Player x1*
<p>bowled b JR Hazlewood</p>
</div>
<div class="rca-col">
8 (7)
</div>
<div class="rca-col">
0
</div>
<div class="rca-col">
1
</div>
<div class="rca-col">
114.29
</div>
</div>
</div>
<div class="rca-row rca-padding">
<span>Fours: <strong>18</strong></span>, <span>Sixes: <strong>8</strong></span>, <span>Extras: <strong>29</strong></span>
</div>
</div>
<div class="rca-bowling-score rca-padding">
<h3>Team X Bowling:</h3>
<div class="rca-row">
<div class="rca-header">
<div class="rca-col rca-player">
Bowler
</div>
<div class="rca-col small">
O
</div>
<div class="rca-col small">
M
</div>
<div class="rca-col small">
R
</div>
<div class="rca-col small">
W
</div>
<div class="rca-col small">
Econ
</div>
<div class="rca-col small">
Extras
</div>
</div>
</div>
<div class="rca-row">
<div class="rca-table">
<div class="rca-col rca-player">
Player Y
</div>
<div class="rca-col small">
9
</div>
<div class="rca-col small">
2
</div>
<div class="rca-col small">
38
</div>
<div class="rca-col small">
2
</div>
<div class="rca-col small">
5.00
</div>
<div class="rca-col small">
3
</div>
</div>
</div>
<div class="rca-row">
<div class="rca-table">
<div class="rca-col rca-player">
Player Y
</div>
<div class="rca-col small">
6
</div>
<div class="rca-col small">
2
</div>
<div class="rca-col small">
38
</div>
<div class="rca-col small">
2
</div>
<div class="rca-col small">
7.00
</div>
<div class="rca-col small">
3
</div>
</div>
</div>
<div class="rca-row rca-padding">
<h3>Fall of Wicket:</h3>
<ol class="rca-wicket-falls">
<li>R Chandrika at 2 runs, in 1.3 over</li>
<li>R Chandrika at 20 runs, in 2.0 over</li>
<li>R Chandrika at 0 runs, in 3.5 over</li>
<li>R Chandrika at 99 runs, in 10.3 over</li>
<li>R Chandrika at 14 runs, in 13.1 over</li>
</ol>
</div>
</div>
</div>
<div id="tab-32" class="rca-tab-content rca-padding">
<div class="rca-padding">
<div class="rca-switch filled">
<span class="active">Team X</span><span>Team Y</span>
</div>
</div>
<div class="rca-batting-score rca-padding">
<h3>Team X (11)</h3>
<div class="rca-player-detail">
<span class="rca-player">MS Dhoni</span>
<span class="rca-highlight-text">(C) & (WK)</span>
<span class="rca-right rca-basic-text">Batsman</span>
</div>
<div class="rca-player-detail">
<span class="rca-player">Shikhar Dhawan</span>
<span class="rca-right rca-basic-text">Batsman</span>
</div>
<div class="rca-player-detail">
<span class="rca-player">Ajinkya Rahane</span>
<span class="rca-right rca-basic-text">Bowler</span>
</div>
<div class="rca-player-detail">
<span class="rca-player">Suresh Raina</span>
<span class="rca-right rca-basic-text">All rounder</span>
</div>
</div>
<div class="rca-batting-score rca-padding">
<h3>Bench (9)</h3>
<div class="rca-player-detail">
<span class="rca-player">Rohit Sharma</span>
<span class="rca-highlight-text">(WK)</span>
<span class="rca-right rca-basic-text">Batsman</span>
</div>
<div class="rca-player-detail">
<span class="rca-player">Rohit Sharma</span>
<span class="rca-right rca-basic-text">Batsman</span>
</div>
<div class="rca-player-detail">
<span class="rca-player">Rohit Sharma</span>
<span class="rca-right rca-basic-text">Batsman</span>
</div>
<div class="rca-player-detail">
<span class="rca-player">Rohit Sharma</span>
<span class="rca-right rca-basic-text">Batsman</span>
</div>
</div>
</div>
<div class="rca-logo rca-powered">
<h2>
<a href="https://www.cricketapi.com/" target="_blank">
<span>
<img src="https://d2muumq9nnirye.cloudfront.net/cricketapi/images/api_logo.svg" style="width: 50px;">
</span>
<span><small>Powered By</small><br/><strong>CRICKET API</strong></span>
</a>
</h2>
</div>
</div>
</div>
</div>
</div>
<script>
function showTab(event) {
var sourceParent = event.parentElement.parentElement;
var sourceChilds = sourceParent.getElementsByClassName("rca-tab-content");
var sourceLinkParent = sourceParent.getElementsByClassName("rca-tab-link");
for (var i=0; i < sourceChilds.length; i++) {
sourceChilds.item(i).classList.remove("active");
}
for (var i=0; i < sourceLinkParent.length; i++) {
sourceLinkParent.item(i).classList.remove("active");
}
var dataTab= event.getAttribute("data-tab");
event.classList.add("active");
document.getElementById(dataTab).className += ' active';
}
</script>
</body>
</html>