-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
609 lines (584 loc) · 38.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>QB Fighting</title>
<link href="https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
<link href="style.css" rel="stylesheet">
</head>
<body class="h-screen w-screen overflow-hidden bg-transparent">
<!-- Main Container -->
<div id="fightingApp" class="hidden h-full w-full flex items-center justify-center">
<!-- Fight View -->
<div id="fightView" class="hidden fight-container">
<!-- Fighter Stats and Ring -->
<div class="flex justify-between items-center p-8 w-full max-w-7xl">
<!-- Fighter 1 Stats -->
<div class="fighter-stats fighter-1-stats bg-black/80 p-4 rounded-lg w-1/4">
<h3 class="fighter-name text-2xl font-bold text-white mb-2">-</h3>
<div class="stat-bars">
<div class="stat-bar mb-2">
<label class="text-gray-300">Health</label>
<div class="bg-gray-700 h-2 rounded-full">
<div id="fighter1Health" class="health-bar h-full rounded-full" style="width: 100%"></div>
</div>
</div>
<div class="stat-bar">
<label class="text-gray-300">Stamina</label>
<div class="bg-gray-700 h-2 rounded-full">
<div id="fighter1Stamina" class="stamina-bar h-full rounded-full" style="width: 100%"></div>
</div>
</div>
</div>
<div class="score text-center mt-4">
<span id="fighter1Score" class="text-3xl font-bold text-white">0</span>
<div class="combo-counter text-sm text-yellow-400 hidden">
<span id="fighter1Combo">0</span>x Combo
</div>
</div>
</div>
<!-- Center Ring Info -->
<div class="ring-info text-center w-1/2">
<div class="timer bg-black/80 p-4 rounded-lg mb-4">
<h2 id="roundDisplay" class="text-4xl font-bold text-white">Round 1</h2>
<div id="timeDisplay" class="text-2xl text-yellow-400">3:00</div>
</div>
<div id="fightStatus" class="status bg-red-600/80 p-2 rounded-lg text-white font-bold hidden">
FIGHT!
</div>
<div id="knockoutIndicator" class="knockout-indicator text-red-500 text-4xl font-bold hidden">
KNOCKOUT!
</div>
</div>
<!-- Fighter 2 Stats -->
<div class="fighter-stats fighter-2-stats bg-black/80 p-4 rounded-lg w-1/4">
<h3 class="fighter-name text-2xl font-bold text-white mb-2">-</h3>
<div class="stat-bars">
<div class="stat-bar mb-2">
<label class="text-gray-300">Health</label>
<div class="bg-gray-700 h-2 rounded-full">
<div id="fighter2Health" class="health-bar h-full rounded-full" style="width: 100%"></div>
</div>
</div>
<div class="stat-bar">
<label class="text-gray-300">Stamina</label>
<div class="bg-gray-700 h-2 rounded-full">
<div id="fighter2Stamina" class="stamina-bar h-full rounded-full" style="width: 100%"></div>
</div>
</div>
</div>
<div class="score text-center mt-4">
<span id="fighter2Score" class="text-3xl font-bold text-white">0</span>
<div class="combo-counter text-sm text-yellow-400 hidden">
<span id="fighter2Combo">0</span>x Combo
</div>
</div>
</div>
</div>
<!-- Controls Help -->
<div class="controls-help fixed bottom-4 left-1/2 transform -translate-x-1/2 bg-black/80 p-2 rounded-lg">
<div class="text-white text-sm">
Left Click: Punch | Right Click: Block | Space: Dodge | R: Taunt
</div>
</div>
</div>
<!-- Betting View -->
<div id="bettingView" class="hidden betting-container">
<div class="p-8">
<div class="max-w-6xl mx-auto bg-black/80 rounded-lg overflow-hidden">
<!-- Betting Header -->
<div class="bg-gray-800 p-4 flex justify-between items-center">
<div>
<h2 class="text-2xl font-bold text-white">Fight Betting</h2>
<p class="text-gray-400" id="bettingTimeRemaining">Betting closes in: 02:00</p>
</div>
<div class="text-white text-right">
<p class="text-sm text-gray-400">Your Balance</p>
<p class="text-xl font-bold" id="playerBalance">$0</p>
</div>
</div>
<!-- Current Fight -->
<div class="p-6 border-b border-gray-700">
<div class="flex justify-between items-center">
<!-- Fighter 1 Betting Card -->
<div class="fighter-card w-1/3 text-center p-4 bg-gray-800 rounded-lg">
<div class="mb-4">
<h3 id="betFighter1Name" class="text-xl font-bold text-white mb-2">Fighter 1</h3>
<p class="text-yellow-400 text-lg">Odds: <span id="fighter1Odds">0.0</span>x</p>
</div>
<div class="betting-stats space-y-2">
<div class="bg-gray-700 p-2 rounded">
<p class="text-gray-400">Total Bets</p>
<p class="text-white">$<span id="fighter1TotalBets">0</span></p>
</div>
<div class="bg-gray-700 p-2 rounded">
<p class="text-gray-400">Number of Bets</p>
<p class="text-white"><span id="fighter1BetCount">0</span></p>
</div>
</div>
</div>
<!-- Center Stats -->
<div class="w-1/4 text-center">
<div class="text-red-500 text-4xl font-bold mb-4">VS</div>
<div class="bg-gray-800 p-4 rounded-lg">
<div class="text-gray-400">Total Pool</div>
<div id="totalBetPool" class="text-green-400 text-2xl font-bold">$0</div>
<div class="text-sm text-gray-400 mt-2">
House Commission: <span id="houseCommission">5%</span>
</div>
</div>
</div>
<!-- Fighter 2 Betting Card -->
<div class="fighter-card w-1/3 text-center p-4 bg-gray-800 rounded-lg">
<div class="mb-4">
<h3 id="betFighter2Name" class="text-xl font-bold text-white mb-2">Fighter 2</h3>
<p class="text-yellow-400 text-lg">Odds: <span id="fighter2Odds">0.0</span>x</p>
</div>
<div class="betting-stats space-y-2">
<div class="bg-gray-700 p-2 rounded">
<p class="text-gray-400">Total Bets</p>
<p class="text-white">$<span id="fighter2TotalBets">0</span></p>
</div>
<div class="bg-gray-700 p-2 rounded">
<p class="text-gray-400">Number of Bets</p>
<p class="text-white"><span id="fighter2BetCount">0</span></p>
</div>
</div>
</div>
</div>
<!-- Bet Placement -->
<div class="mt-8 grid grid-cols-2 gap-8">
<div class="bet-placement p-4 bg-gray-800 rounded-lg">
<h4 class="text-white mb-4">Place Bet on Fighter 1</h4>
<div class="space-y-4">
<input
type="number"
id="betAmount1"
class="w-full bg-gray-700 text-white p-2 rounded"
placeholder="Enter bet amount"
min="100"
max="10000"
>
<div class="flex justify-between text-sm text-gray-400">
<span>Min: $100</span>
<span>Max: $10,000</span>
</div>
<div class="flex space-x-2">
<button class="quick-bet w-1/4 bg-gray-700 hover:bg-gray-600 text-white p-2 rounded" data-amount="1000">
$1K
</button>
<button class="quick-bet w-1/4 bg-gray-700 hover:bg-gray-600 text-white p-2 rounded" data-amount="5000">
$5K
</button>
<button class="quick-bet w-1/4 bg-gray-700 hover:bg-gray-600 text-white p-2 rounded" data-amount="10000">
$10K
</button>
<button class="max-bet w-1/4 bg-gray-700 hover:bg-gray-600 text-white p-2 rounded">
Max
</button>
</div>
<button class="place-bet w-full bg-blue-600 hover:bg-blue-700 text-white py-2 rounded" data-fighter="1">
Place Bet
</button>
</div>
</div>
<div class="bet-placement p-4 bg-gray-800 rounded-lg">
<h4 class="text-white mb-4">Place Bet on Fighter 2</h4>
<div class="space-y-4">
<input
type="number"
id="betAmount2"
class="w-full bg-gray-700 text-white p-2 rounded"
placeholder="Enter bet amount"
min="100"
max="10000"
>
<div class="flex justify-between text-sm text-gray-400">
<span>Min: $100</span>
<span>Max: $10,000</span>
</div>
<div class="flex space-x-2">
<button class="quick-bet w-1/4 bg-gray-700 hover:bg-gray-600 text-white p-2 rounded" data-amount="1000">
$1K
</button>
<button class="quick-bet w-1/4 bg-gray-700 hover:bg-gray-600 text-white p-2 rounded" data-amount="5000">
$5K
</button>
<button class="quick-bet w-1/4 bg-gray-700 hover:bg-gray-600 text-white p-2 rounded" data-amount="10000">
$10K
</button>
<button class="max-bet w-1/4 bg-gray-700 hover:bg-gray-600 text-white p-2 rounded">
Max
</button>
</div>
<button class="place-bet w-full bg-blue-600 hover:bg-blue-700 text-white py-2 rounded" data-fighter="2">
Place Bet
</button>
</div>
</div>
</div>
</div>
<!-- Bet History -->
<div class="p-6">
<h3 class="text-xl font-bold text-white mb-4">Your Active Bets</h3>
<div id="betHistory" class="space-y-2">
<!-- Bet history items will be inserted here dynamically -->
<div class="bet-history-template hidden bg-gray-800 p-3 rounded-lg flex justify-between items-center">
<div>
<p class="text-white"><span class="fighter-name">Fighter Name</span></p>
<p class="text-sm text-gray-400">Bet Amount: $<span class="bet-amount">0</span></p>
</div>
<div class="text-right">
<p class="text-yellow-400">Potential Win: $<span class="potential-win">0</span></p>
<p class="text-sm text-gray-400">Odds: <span class="bet-odds">0.0</span>x</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Staff Management View -->
<div id="staffView" class="hidden staff-container">
<div class="flex h-full">
<!-- Staff Sidebar -->
<div class="w-64 bg-gray-900 p-4">
<div class="mb-8">
<h2 class="text-xl font-bold text-white">Staff Controls</h2>
<p class="text-gray-400 text-sm" id="staffName">Loading...</p>
</div>
<nav class="space-y-2">
<button data-tab="dashboard" class="staff-tab w-full flex items-center space-x-3 px-4 py-3 rounded text-white hover:bg-gray-800 active">
<span class="w-5 h-5 flex items-center justify-center"><i class="fas fa-chart-line"></i></span>
<span>Dashboard</span>
</button>
<button data-tab="fights" class="staff-tab w-full flex items-center space-x-3 px-4 py-3 rounded text-white hover:bg-gray-800">
<span class="w-5 h-5 flex items-center justify-center"><i class="fas fa-fist-raised"></i></span>
<span>Fight Management</span>
</button>
<button data-tab="betting" class="staff-tab w-full flex items-center space-x-3 px-4 py-3 rounded text-white hover:bg-gray-800">
<span class="w-5 h-5 flex items-center justify-center"><i class="fas fa-dollar-sign"></i></span>
<span>Betting Controls</span>
</button>
<button data-tab="settings" class="staff-tab w-full flex items-center space-x-3 px-4 py-3 rounded text-white hover:bg-gray-800">
<span class="w-5 h-5 flex items-center justify-center"><i class="fas fa-cog"></i></span>
<span>Venue Settings</span>
</button>
</nav>
<!-- Quick Actions -->
<div class="mt-8">
<h3 class="text-sm font-semibold text-gray-400 uppercase tracking-wider mb-2">Quick Actions</h3>
<div class="space-y-2">
<button id="emergencyStop" class="w-full bg-red-600 hover:bg-red-700 text-white px-4 py-2 rounded text-sm">
Emergency Stop
</button>
<button id="refundBets" class="w-full bg-yellow-600 hover:bg-yellow-700 text-white px-4 py-2 rounded text-sm">
Refund All Bets
</button>
</div>
</div>
</div>
<!-- Staff Content Area -->
<div class="flex-1 bg-gray-800 p-6 overflow-auto">
<!-- Dashboard Tab -->
<div id="staffDashboard" class="staff-content">
<div class="grid grid-cols-4 gap-4 mb-6">
<div class="bg-gray-900 p-4 rounded-lg">
<div class="flex justify-between items-start">
<div>
<p class="text-gray-400">Total Revenue</p>
<h3 class="text-2xl font-bold text-white mt-1" id="totalRevenue">$0</h3>
</div>
<span class="bg-green-500/20 text-green-500 rounded-full p-2">
<i class="fas fa-dollar-sign"></i>
</span>
</div>
<p class="text-sm text-gray-400 mt-2" id="revenueChange">+0% from last week</p>
</div>
<div class="bg-gray-900 p-4 rounded-lg">
<div class="flex justify-between items-start">
<div>
<p class="text-gray-400">Today's Fights</p>
<h3 class="text-2xl font-bold text-white mt-1" id="todayFights">0</h3>
</div>
<span class="bg-blue-500/20 text-blue-500 rounded-full p-2">
<i class="fas fa-fist-raised"></i>
</span>
</div>
<p class="text-sm text-gray-400 mt-2" id="fightsScheduled">0 scheduled</p>
</div>
<div class="bg-gray-900 p-4 rounded-lg">
<div class="flex justify-between items-start">
<div>
<p class="text-gray-400">Active Bets</p>
<h3 class="text-2xl font-bold text-white mt-1" id="activeBetsAmount">$0</h3>
</div>
<span class="bg-yellow-500/20 text-yellow-500 rounded-full p-2">
<i class="fas fa-coins"></i>
</span>
</div>
<p class="text-sm text-gray-400 mt-2" id="betCount">0 bets placed</p>
</div>
<div class="bg-gray-900 p-4 rounded-lg">
<div class="flex justify-between items-start">
<div>
<p class="text-gray-400">Commission Earned</p>
<h3 class="text-2xl font-bold text-white mt-1" id="commissionEarned">$0</h3>
</div>
<span class="bg-purple-500/20 text-purple-500 rounded-full p-2">
<i class="fas fa-percentage"></i>
</span>
</div>
<p class="text-sm text-gray-400 mt-2">Today's earnings</p>
</div>
</div>
<!-- Active Fight Status -->
<div class="bg-gray-900 rounded-lg mb-6">
<div class="p-4 border-b border-gray-800">
<h2 class="text-lg font-bold text-white">Active Fight Status</h2>
</div>
<div class="p-4" id="activeFightStatus">
<div class="text-center text-gray-400 py-8" id="noActiveFight">
No active fight
</div>
<div class="hidden" id="activeFightDetails">
<!-- Active fight details will be inserted here -->
</div>
</div>
</div>
<!-- Recent Activity -->
<div class="bg-gray-900 rounded-lg">
<div class="p-4 border-b border-gray-800">
<h2 class="text-lg font-bold text-white">Recent Activity</h2>
</div>
<div class="p-4">
<div id="recentActivity" class="space-y-4">
<!-- Activity items will be inserted here -->
</div>
</div>
</div>
</div>
<!-- Fight Management Tab -->
<div id="staffFights" class="staff-content hidden">
<div class="mb-6">
<div class="flex justify-between items-center mb-4">
<h2 class="text-2xl font-bold text-white">Schedule Fight</h2>
<button id="refreshFighters" class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded flex items-center space-x-2">
<i class="fas fa-sync-alt"></i>
<span>Refresh Fighters</span>
</button>
</div>
<div class="bg-gray-900 p-6 rounded-lg">
<div class="grid grid-cols-2 gap-4 mb-4">
<div>
<label class="block text-gray-400 mb-2">Fighter 1</label>
<select id="fighter1Select" class="w-full bg-gray-700 text-white p-2 rounded">
<!-- Fighter options will be populated dynamically -->
</select>
</div>
<div>
<label class="block text-gray-400 mb-2">Fighter 2</label>
<select id="fighter2Select" class="w-full bg-gray-700 text-white p-2 rounded">
<!-- Fighter options will be populated dynamically -->
</select>
</div>
</div>
<div class="grid grid-cols-2 gap-4 mb-4">
<div>
<label class="block text-gray-400 mb-2">Number of Rounds</label>
<select id="roundSelect" class="w-full bg-gray-700 text-white p-2 rounded">
<option value="3">3 Rounds</option>
<option value="5">5 Rounds</option>
<option value="7">7 Rounds</option>
</select>
</div>
<div>
<label class="block text-gray-400 mb-2">Round Duration (seconds)</label>
<input type="number" id="roundDuration" class="w-full bg-gray-700 text-white p-2 rounded" value="180">
</div>
</div>
<button id="scheduleFight" class="w-full bg-green-600 hover:bg-green-700 text-white py-2 rounded-lg">
Schedule Fight
</button>
</div>
</div>
<!-- Fight Controls -->
<div class="bg-gray-900 rounded-lg mb-6">
<div class="p-4 border-b border-gray-800">
<h2 class="text-lg font-bold text-white">Fight Controls</h2>
</div>
<div class="p-4">
<div class="grid grid-cols-3 gap-4">
<button id="startFight" class="bg-green-600 hover:bg-green-700 text-white p-2 rounded" disabled>
Start Fight
</button>
<button id="pauseFight" class="bg-yellow-600 hover:bg-yellow-700 text-white p-2 rounded" disabled>
Pause Fight
</button>
<button id="endFight" class="bg-red-600 hover:bg-red-700 text-white p-2 rounded" disabled>
End Fight
</button>
</div>
</div>
</div>
<!-- Scheduled Fights -->
<div class="bg-gray-900 rounded-lg">
<div class="p-4 border-b border-gray-800">
<h2 class="text-lg font-bold text-white">Scheduled Fights</h2>
</div>
<div class="p-4">
<div id="scheduledFights" class="space-y-4">
<!-- Scheduled fights will be inserted here -->
</div>
</div>
</div>
</div>
<!-- Betting Controls Tab -->
<div id="staffBetting" class="staff-content hidden">
<div class="mb-6">
<div class="flex justify-between items-center mb-4">
<h2 class="text-2xl font-bold text-white">Betting Controls</h2>
<div class="flex space-x-2">
<button id="openBetting" class="bg-green-600 hover:bg-green-700 text-white px-4 py-2 rounded" disabled>
Open Betting
</button>
<button id="closeBetting" class="bg-red-600 hover:bg-red-700 text-white px-4 py-2 rounded" disabled>
Close Betting
</button>
</div>
</div>
<!-- Current Betting Pool -->
<div class="bg-gray-900 p-6 rounded-lg mb-6">
<div class="grid grid-cols-3 gap-4">
<div class="text-center">
<h3 class="text-gray-400 mb-2">Fighter 1 Bets</h3>
<p class="text-2xl font-bold text-white" id="fighter1BetPool">$0</p>
<p class="text-sm text-gray-400" id="fighter1BetCount">0 bets</p>
</div>
<div class="text-center">
<h3 class="text-gray-400 mb-2">Total Pool</h3>
<p class="text-2xl font-bold text-green-400" id="totalBettingPool">$0</p>
<p class="text-sm text-gray-400" id="totalBetCount">0 bets</p>
</div>
<div class="text-center">
<h3 class="text-gray-400 mb-2">Fighter 2 Bets</h3>
<p class="text-2xl font-bold text-white" id="fighter2BetPool">$0</p>
<p class="text-sm text-gray-400" id="fighter2BetCount">0 bets</p>
</div>
</div>
</div>
<!-- Recent Bets -->
<div class="bg-gray-900 rounded-lg">
<div class="p-4 border-b border-gray-800">
<h2 class="text-lg font-bold text-white">Recent Bets</h2>
</div>
<div class="p-4">
<div id="recentBets" class="space-y-4">
<!-- Recent bets will be inserted here -->
</div>
</div>
</div>
</div>
</div>
<!-- Settings Tab -->
<div id="staffSettings" class="staff-content hidden">
<div class="mb-6">
<h2 class="text-2xl font-bold text-white mb-4">Venue Settings</h2>
<div class="bg-gray-900 p-6 rounded-lg">
<!-- Fight Settings -->
<div class="mb-6">
<h3 class="text-lg font-bold text-white mb-4">Fight Settings</h3>
<div class="grid grid-cols-2 gap-4">
<div>
<label class="block text-gray-400 mb-2">Default Round Time (seconds)</label>
<input type="number" id="defaultRoundTime" class="w-full bg-gray-700 text-white p-2 rounded" value="180">
</div>
<div>
<label class="block text-gray-400 mb-2">Break Time (seconds)</label>
<input type="number" id="breakTime" class="w-full bg-gray-700 text-white p-2 rounded" value="60">
</div>
<div>
<label class="block text-gray-400 mb-2">Knockout Hits Required</label>
<input type="number" id="knockoutHits" class="w-full bg-gray-700 text-white p-2 rounded" value="5">
</div>
<div>
<label class="block text-gray-400 mb-2">Fight Cooldown (minutes)</label>
<input type="number" id="fightCooldown" class="w-full bg-gray-700 text-white p-2 rounded" value="5">
</div>
</div>
</div>
<!-- Betting Settings -->
<div class="mb-6">
<h3 class="text-lg font-bold text-white mb-4">Betting Settings</h3>
<div class="grid grid-cols-2 gap-4">
<div>
<label class="block text-gray-400 mb-2">Minimum Bet</label>
<input type="number" id="minBet" class="w-full bg-gray-700 text-white p-2 rounded" value="100">
</div>
<div>
<label class="block text-gray-400 mb-2">Maximum Bet</label>
<input type="number" id="maxBet" class="w-full bg-gray-700 text-white p-2 rounded" value="10000">
</div>
<div>
<label class="block text-gray-400 mb-2">House Commission (%)</label>
<input type="number" id="houseCommission" class="w-full bg-gray-700 text-white p-2 rounded" value="5">
</div>
<div>
<label class="block text-gray-400 mb-2">Betting Time (seconds)</label>
<input type="number" id="bettingTime" class="w-full bg-gray-700 text-white p-2 rounded" value="120">
</div>
</div>
</div>
<!-- Scoring Settings -->
<div class="mb-6">
<h3 class="text-lg font-bold text-white mb-4">Scoring Settings</h3>
<div class="grid grid-cols-2 gap-4">
<div>
<label class="block text-gray-400 mb-2">Points Per Hit</label>
<input type="number" id="pointsPerHit" class="w-full bg-gray-700 text-white p-2 rounded" value="10">
</div>
<div>
<label class="block text-gray-400 mb-2">Points Per Block</label>
<input type="number" id="pointsPerBlock" class="w-full bg-gray-700 text-white p-2 rounded" value="5">
</div>
<div>
<label class="block text-gray-400 mb-2">Points Per Knockdown</label>
<input type="number" id="pointsPerKnockdown" class="w-full bg-gray-700 text-white p-2 rounded" value="50">
</div>
<div>
<label class="block text-gray-400 mb-2">Win Bonus Points</label>
<input type="number" id="winBonus" class="w-full bg-gray-700 text-white p-2 rounded" value="100">
</div>
</div>
</div>
<!-- Save Settings Button -->
<div class="flex justify-end">
<button id="saveSettings" class="bg-blue-600 hover:bg-blue-700 text-white px-6 py-2 rounded">
Save Settings
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Notification Template -->
<div id="notificationTemplate" class="hidden fixed top-4 right-4 max-w-sm bg-gray-900 text-white p-4 rounded-lg shadow-lg">
<div class="flex items-center">
<div class="notification-icon w-8 h-8 flex items-center justify-center rounded-full mr-3"></div>
<div class="notification-content flex-1">
<h4 class="notification-title font-bold"></h4>
<p class="notification-message text-sm"></p>
</div>
</div>
</div>
</div>
<!-- Scripts -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/js/all.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/3.7.0/chart.min.js"></script>
<script src="script.js"></script>
</body>
</html>