generated from skills/github-pages
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscorecard.html
1438 lines (1231 loc) · 55.9 KB
/
scorecard.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
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
---
layout: default
title: "Scorecard"
---
<html lang="en">
<head>
<!-- Meta and Title -->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Weighted Scoring</title>
<!-- Favicon -->
<link rel="icon" href="/assets/favicon.png" type="image/x-icon">
<!-- Google Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" rel="stylesheet">
<!-- Font Awesome -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<!-- Styles -->
<style>
/* CSS Reset and Box Sizing */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Body Styles */
body {
font-family: 'Roboto', sans-serif;
background: linear-gradient(135deg, #1a1a1a, #0d0d0d); /* Subtle background gradient */
color: #f0f0f0;
display: flex;
flex-direction: column;
align-items: center;
min-height: 100vh;
padding: 20px;
}
/* Container Styles */
.section {
background-color: rgba(20, 20, 20, 0.95); /* Slight transparency for depth */
padding: 30px;
border-radius: 15px;
max-width: 900px;
width: 100%;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
margin-top: 20px;
border: 1px solid #333;
color: #f0f0f0;
}
/* Scorecard Container */
.scorecard {
position: relative; /* For menu positioning */
background-color: rgba(20, 20, 20, 0.95); /* Slight transparency for depth */
padding: 30px;
border-radius: 15px;
max-width: 900px;
width: 100%;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
margin-top: 20px;
border: 1px solid #333;
color: #f0f0f0;
}
/* Heading Styles */
h2 {
font-size: 38px;
color: #e64823;
margin-bottom: 10px;
letter-spacing: 1.5px;
text-align: center;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
h2 a {
text-decoration: none;
color: inherit;
}
/* Subheading */
h3.subheading {
font-size: 20px;
color: #888;
margin-bottom: 30px;
text-align: center;
}
/* Social Icons */
.social-icons {
margin: 10px 0 20px;
text-align: center;
}
.social-icons a {
color: #f0f0f0;
font-size: 24px;
margin: 0 10px;
transition: color 0.3s ease;
}
.social-icons a:hover {
color: #e64823;
}
/* Input, Button, and Select Styles */
input, button {
width: 100%;
padding: 12px 15px;
font-size: 16px;
color: #f0f0f0;
background-color: #1a1a1a;
border: 1px solid #444;
border-radius: 5px;
outline: none;
transition: all 0.3s ease;
}
input:not(:last-child) {
margin-bottom: 15px;
}
/* Placeholder Styles */
input::placeholder {
color: #888;
}
/* Focus Styles */
input:focus {
border-color: #e64823;
box-shadow: 0 0 5px rgba(230, 72, 35, 0.5);
}
/* Button Styles */
button {
background-color: #e64823;
cursor: pointer;
font-weight: bold;
transition: background-color 0.3s ease, transform 0.2s ease;
border-radius: 5px;
margin: 5px 0;
border: none;
}
/* Submit Button Styles */
.submit-button {
width: 100%;
padding: 15px;
font-size: 18px;
margin-top: 20px;
}
.submit-button:hover {
background-color: #d35400;
}
/* Share Button Styles */
.share-button {
background-color: #e64823;
margin-top: 30px;
width: 100%;
padding: 15px;
font-size: 18px;
}
.share-button:hover {
background-color: #d35400;
}
/* Reset Button Styles */
.reset-button {
background-color: #f1c40f; /* Yellow color */
margin-top: 20px;
width: 100%;
padding: 15px;
font-size: 18px;
cursor: pointer;
font-weight: bold;
transition: background-color 0.3s ease, transform 0.2s ease;
border-radius: 5px;
border: none;
}
.reset-button:hover {
background-color: #d4ac0d; /* Slightly darker yellow */
}
/* Small Button Styles */
.small-button {
width: 48%;
padding: 12px;
font-size: 16px;
display: flex;
justify-content: center;
align-items: center;
}
.small-button i {
font-size: 20px;
}
/* Button Hover Styles */
button:hover {
transform: translateY(-2px);
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}
/* Disabled Button Styles */
button:disabled {
background-color: #333;
color: #888;
cursor: not-allowed;
transform: none;
box-shadow: none;
}
/* Locked In Button Styles */
.locked {
background-color: #2c3e50;
color: white;
}
/* Locked Field Styles */
.locked-field {
background-color: #2c3e50;
color: white;
border-color: #2c3e50;
}
/* Hashtag Container */
.hashtag-container {
width: 100%;
margin-bottom: 25px;
display: flex;
justify-content: center;
}
.hashtag-container input {
max-width: 70%;
text-align: center;
}
/* Error Message Styles */
.error-message {
color: #e74c3c;
font-size: 12px;
margin-top: 5px;
text-align: center;
}
/* Corners Section */
.corners {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
margin-bottom: 20px;
}
.corners input {
width: 40%;
text-align: center;
margin: 0 5px;
}
.corners .toggle-container {
width: 15%;
margin: 0 5px;
display: flex;
flex-direction: column;
align-items: center;
}
.corners .toggle-container label {
margin-bottom: 10px;
color: #f0f0f0;
font-variant: small-caps;
font-size: 16px;
text-align: center;
}
/* Switch Styles */
.switch {
position: relative;
display: inline-block;
width: 50px;
height: 25px;
}
.switch input {
opacity: 0;
width: 0;
height: 0;
}
/* Slider Styles */
.slider {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #444;
transition: .4s;
border-radius: 34px;
}
/* Slider Before Styles */
.slider:before {
position: absolute;
content: "";
height: 17px;
width: 17px;
left: 4px;
bottom: 4px;
background-color: white;
transition: .4s;
border-radius: 50%;
}
/* Checked Styles */
input:checked + .slider {
background-color: #e64823;
}
input:checked + .slider:before {
transform: translateX(25px);
}
/* Round Container */
.round {
background-color: #0d0d0d; /* Same as body background */
padding: 20px;
border-radius: 10px;
margin-bottom: 20px;
width: 100%;
border: 1px solid #333;
}
/* Round Header */
.round-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
width: 100%;
text-align: center;
}
.round-header h3 {
flex: 1;
margin: 0;
font-size: 24px;
color: #e64823;
text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}
.fighter-name {
width: 25%;
font-size: 18px;
font-weight: bold;
color: #f0f0f0;
}
.fighter-name.red {
color: #c0392b;
}
.fighter-name.blue {
color: #2980b9;
}
/* Criterion Group */
.criterion-group {
margin-bottom: 20px;
width: 100%;
text-align: center;
}
.criterion-title {
text-align: center;
font-size: 18px;
margin-bottom: 15px;
color: #f0f0f0; /* Neutral white color */
position: relative;
font-variant: small-caps;
cursor: pointer;
display: inline-block;
}
.criterion-title a {
text-decoration: none;
color: inherit;
}
.criterion-title:hover {
cursor: pointer;
}
.criterion-title i {
margin-left: 5px;
font-size: 14px;
color: #bdc3c7;
}
/* Tooltip Styles */
.criterion-title .tooltip {
visibility: hidden;
background-color: #333;
color: #fff;
text-align: left;
padding: 10px;
border-radius: 5px;
position: absolute;
z-index: 1000;
width: 250px;
top: 30px;
left: 50%;
transform: translateX(-50%);
font-size: 14px;
line-height: 1.4;
opacity: 0;
transition: opacity 0.3s;
}
.criterion-title:hover .tooltip {
visibility: visible;
opacity: 1;
}
/* Criterion Dropdowns */
.criterion-dropdowns {
display: flex;
justify-content: space-between;
align-items: center;
}
.criterion-dropdowns .select-red,
.criterion-dropdowns .select-blue {
width: 45%;
position: relative;
cursor: pointer;
user-select: none;
}
.select-red .selected-option,
.select-blue .selected-option {
background-color: #1a1a1a;
padding: 12px 15px;
border: 1px solid #444;
border-radius: 5px;
color: #f0f0f0;
font-size: 16px;
transition: all 0.3s ease;
position: relative;
}
.select-red .selected-option::after,
.select-blue .selected-option::after {
content: '\f078';
font-family: 'Font Awesome 5 Free';
font-weight: 900;
position: absolute;
right: 15px;
top: 50%;
transform: translateY(-50%);
pointer-events: none;
}
.select-red .options,
.select-blue .options {
display: none;
position: absolute;
background-color: #1a1a1a;
border: 1px solid #444;
border-radius: 5px;
margin-top: 5px;
width: 100%;
z-index: 10;
max-height: 200px;
overflow-y: auto;
}
.select-red.open .options,
.select-blue.open .options {
display: block;
}
.select-red .option,
.select-blue .option {
padding: 12px 15px;
color: #f0f0f0;
font-size: 16px;
position: relative;
}
.select-red .option:hover,
.select-blue .option:hover {
background-color: #333;
}
/* Buttons Container */
.buttons-container {
width: 100%;
margin-top: 20px;
}
.small-buttons-container {
display: flex;
justify-content: space-between;
width: 100%;
}
/* Total Score Section */
.total-score {
text-align: center;
margin-top: 30px;
font-size: 22px;
font-weight: bold;
color: #f0f0f0;
}
.total-score span {
display: block;
margin-bottom: 10px;
}
.total-score .red {
color: #c0392b;
}
.total-score .blue {
color: #2980b9;
}
/* Results Section */
.results-section {
background-color: rgba(20, 20, 20, 0.95); /* Similar to scorecard */
padding: 30px;
border-radius: 15px;
max-width: 900px;
width: 100%;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
margin-top: 20px;
border: 1px solid #333;
color: #f0f0f0;
}
.results {
text-align: center;
padding: 25px;
border-radius: 10px;
width: 100%;
}
.results h3 {
color: #e64823;
margin-bottom: 20px;
}
.round-result {
margin-bottom: 20px;
font-size: 18px;
line-height: 1.5;
text-align: left;
}
.version-info {
margin-top: 30px;
font-size: 12px;
color: #888;
text-align: center;
}
/* Tooltip Element */
.option-tooltip {
position: absolute;
background-color: #333;
color: #fff;
padding: 10px;
border-radius: 5px;
font-size: 14px;
line-height: 1.4;
z-index: 1000;
display: none;
width: 250px;
pointer-events: none;
}
/* Explanation Section */
.explanation {
max-width: 900px;
margin: 40px auto;
padding: 30px;
background-color: rgba(15, 15, 15, 0.95);
border-radius: 15px;
border: 1px solid #333;
color: #f0f0f0;
font-size: 16px;
line-height: 1.6;
}
.explanation h2 {
color: #e64823;
text-align: center;
margin-bottom: 20px;
text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
font-size: 28px;
}
.explanation h3 {
font-size: 24px;
color: #e64823;
margin-bottom: 20px;
text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}
.explanation p {
margin-bottom: 20px;
}
.explanation ul {
margin-left: 20px;
margin-bottom: 20px;
}
.explanation li {
margin-bottom: 10px;
}
.explanation strong {
color: #e64823;
}
/* Mobile Specific Styles */
body.mobile .corners {
flex-direction: column;
align-items: stretch;
}
body.mobile .corners input,
body.mobile .corners .toggle-container {
width: 100%;
margin: 5px 0;
}
body.mobile .hashtag-container input {
max-width: 100%;
}
body.mobile .criterion-dropdowns {
flex-direction: column;
align-items: stretch;
}
body.mobile .criterion-dropdowns .select-red,
body.mobile .criterion-dropdowns .select-blue {
width: 100%;
margin-bottom: 10px;
}
body.mobile .buttons-container {
flex-wrap: wrap;
}
body.mobile .buttons-container button,
body.mobile .small-buttons-container .small-button {
width: 100%;
margin: 10px 0;
}
body.mobile .round-header {
flex-direction: column;
}
body.mobile .fighter-name {
width: 100%;
margin-bottom: 10px;
}
body.mobile .round-header h3 {
margin-bottom: 10px;
}
</style>
</head>
<body>
<!-- Top Section -->
<div class="section">
<!-- Social Icons -->
<div class="social-icons">
<a href="https://www.youtube.com/@FightTalkMMA" target="_blank"><i class="fab fa-youtube"></i></a>
<a href="https://x.com/FightTalkYT" target="_blank"><i class="fab fa-twitter"></i></a>
<a href="https://www.instagram.com/matlockfighttalk/" target="_blank"><i class="fab fa-instagram"></i></a>
</div>
<h2><a href="#revised-scoring-system">Weighted Scoring</a></h2>
<h3 class="subheading">by Matlock Fight Talk</h3>
<!-- Hashtag Section -->
<div class="hashtag-container">
<input type="text" id="hashtag" placeholder="e.g., #UFC300, #DWCS">
</div>
<span class="error-message" id="hashtagError"></span>
<!-- Corners Section -->
<div class="corners">
<input type="text" id="redCornerName" placeholder="e.g., Lawler">
<!-- Five Rounds toggle -->
<div class="toggle-container">
<label for="championshipFightToggle">Five Rounds?</label>
<label class="switch">
<input type="checkbox" id="championshipFightToggle">
<span class="slider"></span>
</label>
</div>
<input type="text" id="blueCornerName" placeholder="e.g., MacDonald">
</div>
<span class="error-message" id="redCornerError"></span>
<span class="error-message" id="blueCornerError"></span>
<!-- Lock In Button -->
<button id="lockInButton" disabled>LOCK IN</button>
</div>
<!-- Round Scoring Section -->
<div class="scorecard">
<!-- Round Header -->
<div class="round-header">
<div class="fighter-name red" id="redCornerRoundName">Red Corner</div>
<h3 id="roundHeading">Round 1</h3>
<div class="fighter-name blue" id="blueCornerRoundName">Blue Corner</div>
</div>
<!-- Damage Criterion -->
<div class="criterion-group">
<h4 class="criterion-title">
<a href="#damage-section">Damage <i class="fas fa-info-circle"></i></a>
<span class="tooltip">Assesses harm inflicted through strikes, submissions, and fight-altering actions.</span>
</h4>
<div class="criterion-dropdowns">
<div class="select-red custom-select" id="damageRedSelect">
<div class="selected-option">Select Damage</div>
<div class="options">
<div class="option" data-value="0" data-tooltip="No effective damage inflicted.">0 - No effective damage</div>
<div class="option" data-value="1" data-tooltip="Minor damage that doesn’t significantly impact the opponent’s ability to fight (e.g., light strikes, unsuccessful submission attempts with minimal threat).">1 - Minor damage</div>
<div class="option" data-value="2" data-tooltip="Clear visible damage, but not fight-altering (e.g., cumulative damage like swelling, noticeable reactions to strikes, or significant but unsuccessful submission attempts).">2 - Visible damage</div>
<div class="option" data-value="3" data-tooltip="Significant, fight-altering damage that visibly affects the opponent (e.g., knockdowns, cuts, or deep submission attempts that almost end the fight).">3 - Significant damage</div>
</div>
</div>
<div class="select-blue custom-select" id="damageBlueSelect">
<div class="selected-option">Select Damage</div>
<div class="options">
<div class="option" data-value="0" data-tooltip="No effective damage inflicted.">0 - No effective damage</div>
<div class="option" data-value="1" data-tooltip="Minor damage that doesn’t significantly impact the opponent’s ability to fight (e.g., light strikes, unsuccessful submission attempts with minimal threat).">1 - Minor damage</div>
<div class="option" data-value="2" data-tooltip="Clear visible damage, but not fight-altering (e.g., cumulative damage like swelling, noticeable reactions to strikes, or significant but unsuccessful submission attempts).">2 - Visible damage</div>
<div class="option" data-value="3" data-tooltip="Significant, fight-altering damage that visibly affects the opponent (e.g., knockdowns, cuts, or deep submission attempts that almost end the fight).">3 - Significant damage</div>
</div>
</div>
</div>
</div>
<!-- Control Criterion -->
<div class="criterion-group">
<h4 class="criterion-title">
<a href="#control-section">Control <i class="fas fa-info-circle"></i></a>
<span class="tooltip">Evaluates the ability to dictate the fight's pace, position, and overall flow.</span>
</h4>
<div class="criterion-dropdowns">
<div class="select-red custom-select" id="controlRedSelect">
<div class="selected-option">Select Control</div>
<div class="options">
<div class="option" data-value="0" data-tooltip="No control exhibited, unable to dictate the position or pace of the fight.">0 - No control</div>
<div class="option" data-value="1" data-tooltip="Brief control, gaining advantageous positions or effective aggression but not sustaining it long enough to impact the round significantly.">1 - Brief control</div>
<div class="option" data-value="2" data-tooltip="Majority control, maintaining effective pressure or positional dominance with some resistance from the opponent.">2 - Majority control</div>
<div class="option" data-value="3" data-tooltip="Complete control, maintaining dominant positions or pressuring effectively without any significant opposition or ability from the opponent to escape or counter.">3 - Complete control</div>
</div>
</div>
<div class="select-blue custom-select" id="controlBlueSelect">
<div class="selected-option">Select Control</div>
<div class="options">
<div class="option" data-value="0" data-tooltip="No control exhibited, unable to dictate the position or pace of the fight.">0 - No control</div>
<div class="option" data-value="1" data-tooltip="Brief control, gaining advantageous positions or effective aggression but not sustaining it long enough to impact the round significantly.">1 - Brief control</div>
<div class="option" data-value="2" data-tooltip="Majority control, maintaining effective pressure or positional dominance with some resistance from the opponent.">2 - Majority control</div>
<div class="option" data-value="3" data-tooltip="Complete control, maintaining dominant positions or pressuring effectively without any significant opposition or ability from the opponent to escape or counter.">3 - Complete control</div>
</div>
</div>
</div>
</div>
<!-- Defense Criterion -->
<div class="criterion-group">
<h4 class="criterion-title">
<a href="#defense-section">Defense <i class="fas fa-info-circle"></i></a>
<span class="tooltip">Measures the ability to avoid damage and neutralize the opponent's offense.</span>
</h4>
<div class="criterion-dropdowns">
<div class="select-red custom-select" id="defenseRedSelect">
<div class="selected-option">Select Defense</div>
<div class="options">
<div class="option" data-value="0" data-tooltip="Ineffective defense, unable to avoid damage, getting caught in submissions or dangerous positions frequently.">0 - Ineffective defense</div>
<div class="option" data-value="1" data-tooltip="Defends but takes some damage or loses control positions; able to avoid significant threat but still on the defensive.">1 - Minimal defense</div>
<div class="option" data-value="2" data-tooltip="Defends effectively, minimizing damage and avoiding dangerous positions but not completely neutralizing the opponent’s offense.">2 - Effective defense</div>
<div class="option" data-value="3" data-tooltip="Completely nullifies the opponent’s offense with effective counters or escapes, avoiding significant damage or danger entirely.">3 - Excellent defense</div>
</div>
</div>
<div class="select-blue custom-select" id="defenseBlueSelect">
<div class="selected-option">Select Defense</div>
<div class="options">
<div class="option" data-value="0" data-tooltip="Ineffective defense, unable to avoid damage, getting caught in submissions or dangerous positions frequently.">0 - Ineffective defense</div>
<div class="option" data-value="1" data-tooltip="Defends but takes some damage or loses control positions; able to avoid significant threat but still on the defensive.">1 - Minimal defense</div>
<div class="option" data-value="2" data-tooltip="Defends effectively, minimizing damage and avoiding dangerous positions but not completely neutralizing the opponent’s offense.">2 - Effective defense</div>
<div class="option" data-value="3" data-tooltip="Completely nullifies the opponent’s offense with effective counters or escapes, avoiding significant damage or danger entirely.">3 - Excellent defense</div>
</div>
</div>
</div>
</div>
<!-- Point Deduction Criterion -->
<div class="criterion-group">
<h4 class="criterion-title">Point Deduction</h4>
<div class="criterion-dropdowns">
<div class="select-red custom-select" id="deductionRedSelect">
<div class="selected-option">0</div>
<div class="options">
<div class="option" data-value="0">0</div>
<div class="option" data-value="-1">-1</div>
<div class="option" data-value="-2">-2</div>
</div>
</div>
<div class="select-blue custom-select" id="deductionBlueSelect">
<div class="selected-option">0</div>
<div class="options">
<div class="option" data-value="0">0</div>
<div class="option" data-value="-1">-1</div>
<div class="option" data-value="-2">-2</div>
</div>
</div>
</div>
</div>
<!-- Buttons Container -->
<div class="buttons-container">
<button id="submitAndShareButton" class="submit-button" disabled>Submit Round Score <i class="fab fa-twitter"></i></button>
</div>
<!-- Reset Button -->
<button id="resetButton" class="reset-button"><i class="fas fa-redo-alt"></i> Reset Scorecard</button>
</div>
<!-- Tooltip Element -->
<div class="option-tooltip" id="optionTooltip"></div>
<!-- Results Section -->
<div class="results-section">
<div class="results" id="results">
<h3>Results</h3>
</div>
<div class="total-score">
<span id="redCornerTotal" class="red">Red Corner Total Score: 0</span>
<span id="blueCornerTotal" class="blue">Blue Corner Total Score: 0</span>
<span id="winnerAnnouncement"></span>
</div>
<button class="share-button" id="shareButton">Share Full Score To X (Formerly Known As Twitter)</button>
<div class="version-info">Version 2.01</div>
</div>
<!-- Explanation Section -->
<div class="explanation" id="revised-scoring-system">
<h2>A Revised Scoring System</h2>
<h3>by Matlock Fight Talk</h3>
<p>The scoring system is based on three key criteria: <a href="#damage-section">Damage</a>, <a href="#control-section">Control</a>, and <a href="#defense-section">Defense</a>. Each criterion is scored from 0 to 3 points per round, with each criterion weighted differently to reflect its importance in determining the overall winner of a fight. The maximum score per round is 9 points, and the minimum is 0 points. Here’s a detailed breakdown of how to score an MMA fight using these criteria:</p>
<h3 id="damage-section">1. Damage (0-3 Points) — Weight: 50%</h3>
<p><strong>Damage</strong> is the most critical criterion, reflecting the effectiveness and impact of strikes, submissions, and other fight-altering actions. It evaluates the degree to which a fighter causes harm or threatens their opponent with fight-ending potential.</p>
<strong>Sub-Criteria for Damage:</strong>
<ul>
<li><strong>Striking Impact:</strong>
<ul>
<li>The severity of strikes landed, such as punches, kicks, elbows, or knees.</li>
<li>Visible effects like cuts, swelling, or visibly stunning the opponent.</li>
<li>Knockdowns or strikes that significantly alter the course of the fight.</li>
</ul>
</li>
<li><strong>Submission Threat:</strong>
<ul>
<li>Submission attempts that are deep and require significant defense.</li>
<li>Near-finishes or submission attempts that visibly threaten to end the fight.</li>
</ul>
</li>
</ul>
<strong>Scoring Damage:</strong>
<ul>
<li><strong>3 Points:</strong> Significant, fight-altering damage that visibly affects the opponent (e.g., knockdowns, cuts, or deep submission attempts that almost end the fight).</li>
<li><strong>2 Points:</strong> Clear visible damage, but not fight-altering (e.g., cumulative damage like swelling, noticeable reactions to strikes, or significant but unsuccessful submission attempts).</li>
<li><strong>1 Point:</strong> Minor damage that doesn’t significantly impact the opponent’s ability to fight (e.g., light strikes, unsuccessful submission attempts with minimal threat).</li>
<li><strong>0 Points:</strong> No effective damage inflicted.</li>
</ul>
<h3 id="control-section">2. Control (0-3 Points) — Weight: 30%</h3>
<p><strong>Control</strong> reflects a fighter’s ability to dictate the pace, position, and overall flow of the fight. It includes both positional dominance and effective aggression in dictating the terms of engagement.</p>
<strong>Sub-Criteria for Control:</strong>
<ul>
<li><strong>Positional Dominance:</strong>
<ul>
<li>Securing and maintaining dominant positions such as top control, mount, back control, or side control.</li>
<li>Preventing the opponent from effectively countering or escaping.</li>
</ul>
</li>
<li><strong>Effective Aggression and Octagon Control:</strong>
<ul>
<li>Walking down the opponent and cutting off the cage effectively.</li>
<li>Pressing the pace and controlling the distance, forcing the opponent into defensive or reactive positions.</li>
</ul>
</li>
</ul>
<strong>Scoring Control:</strong>
<ul>
<li><strong>3 Points:</strong> Complete control, maintaining dominant positions or pressuring effectively without any significant opposition or ability from the opponent to escape or counter.</li>
<li><strong>2 Points:</strong> Majority control, maintaining effective pressure or positional dominance with some resistance from the opponent.</li>
<li><strong>1 Point:</strong> Brief control, gaining advantageous positions or effective aggression but not sustaining it long enough to impact the round significantly.</li>
<li><strong>0 Points:</strong> No control exhibited, unable to dictate the position or pace of the fight.</li>
</ul>
<h3 id="defense-section">3. Defense (0-3 Points) — Weight: 20%</h3>
<p><strong>Defense</strong> evaluates a fighter’s ability to avoid damage and nullify their opponent’s offense, including striking defense, submission defense, and positional escapes.</p>
<strong>Sub-Criteria for Defense:</strong>
<ul>
<li><strong>Striking Defense:</strong>
<ul>
<li>Effectively blocking, parrying, or evading strikes with minimal damage taken.</li>
<li>Countering effectively to nullify the opponent’s offensive attempts.</li>
</ul>
</li>
<li><strong>Grappling Defense:</strong>
<ul>
<li>Defending takedown attempts, reversing positions, or escaping from dangerous situations like back control or submissions.</li>
<li>Successfully avoiding submission attempts and turning defense into offense (e.g., countering a submission with your own or escaping to a neutral/dominant position).</li>
</ul>
</li>
</ul>
<strong>Scoring Defense:</strong>
<ul>
<li><strong>3 Points:</strong> Completely nullifies the opponent’s offense with effective counters or escapes, avoiding significant damage or danger entirely.</li>
<li><strong>2 Points:</strong> Defends effectively, minimizing damage and avoiding dangerous positions but not completely neutralizing the opponent’s offense.</li>
<li><strong>1 Point:</strong> Defends but takes some damage or loses control positions; able to avoid significant threat but still on the defensive.</li>
<li><strong>0 Points:</strong> Ineffective defense, unable to avoid damage, getting caught in submissions or dangerous positions frequently.</li>
</ul>
<h3>4. Total Round Score Calculation</h3>
<p>The round score is the sum of the points from each criterion, with the weighted formula applied to emphasize the importance of each criterion:</p>
<p><strong>Total Round Score = (Damage × 0.5) + (Control × 0.3) + (Defense × 0.2)</strong></p>
<p>Maximum Score per Round: 9 points (3 for each category).</p>
<p>Minimum Score per Round: 0 points.</p>
</div>
<!-- Scripts -->
<script>
(function() {
// Device detection
function isMobileDevice() {
return /Mobi|Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
}
if (isMobileDevice()) {
document.body.classList.add('mobile');
}
// Variables
let currentRound = 1;
let championshipFight = false;
let redTotalScore = 0;
let blueTotalScore = 0;
const maxRounds = 5;
const normalRounds = 3;
let totalRounds = normalRounds; // Default to 3 rounds
const redScores = [];
const blueScores = [];
let redCornerName = '';
let blueCornerName = '';
const eventNameInput = document.getElementById('hashtag');
const redCornerInput = document.getElementById('redCornerName');
const blueCornerInput = document.getElementById('blueCornerName');
const lockInButton = document.getElementById('lockInButton');
const championshipToggle = document.getElementById('championshipFightToggle');
const submitAndShareButton = document.getElementById('submitAndShareButton');
const resetButton = document.getElementById('resetButton');
const shareButton = document.getElementById('shareButton');
const hashtagError = document.getElementById('hashtagError');
const redCornerError = document.getElementById('redCornerError');
const blueCornerError = document.getElementById('blueCornerError');