-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
98 lines (86 loc) · 3.19 KB
/
index.html
File metadata and controls
98 lines (86 loc) · 3.19 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Roulette Betting</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #121212; /* Dark background */
color: #b3b3b3; /* Light grey text */
margin: 0;
padding: 20px;
}
@keyframes gradient {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
h1, h2 {
background: linear-gradient(90deg, #80E8DD, #7CC2F6, #AF81E4, #E784BA, #F9C1A0, #B7F6AF);
background-size: 600% 100%;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
animation: gradient 10s ease infinite;
margin: 10px 0;
}
.container {
max-width: 600px;
margin: 0 auto;
padding: 20px;
background-color: #212121; /* Medium-dark background */
border-radius: 10px;
}
input, button {
padding: 10px;
margin: 5px;
border: 1px solid #535353; /* Lighter grey border */
background-color: #121212; /* Dark background */
color: #b3b3b3; /* Light grey text */
border-radius: 5px;
width: calc(100% - 22px);
}
button {
background-color: #535353; /* Lighter grey background */
color: white;
cursor: pointer;
}
button:hover {
background-color: #7CC2F6; /* Maya Blue on hover */
}
.display-area {
background-color: #212121; /* Medium-dark background */
padding: 10px;
margin-top: 10px;
border-radius: 5px;
color: #b3b3b3; /* Light grey text */
}
</style>
</head>
<body>
<div class="container">
<h1>Roulette Betting Game</h1>
<input type="text" id="betInput" placeholder="Enter bet e.g., Bob red 500">
<button id="placeBetBtn">Place Bet</button>
<button id="clearBetsBtn">Clear Bets</button>
<input type="text" id="winInput" placeholder="Enter winning number e.g., 10">
<button id="calculateWinningsBtn">Declare Winner</button>
<h2>Current Bets</h2>
<div id="currentBets" class="display-area"></div>
<h2>Winning Bets</h2>
<div id="winningBets" class="display-area"></div>
<h2>House Profit</h2>
<div id="houseProfit" class="display-area">0</div>
</div>
<script src="roulette.js"></script> <!-- Link to the provided JavaScript file -->
<script>
const placeBetBtn = document.getElementById('placeBetBtn');
const clearBetsBtn = document.getElementById('clearBetsBtn');
const calculateWinningsBtn = document.getElementById('calculateWinningsBtn');
placeBetBtn.addEventListener('click', placeBet);
clearBetsBtn.addEventListener('click', clearBets);
calculateWinningsBtn.addEventListener('click', calculateWinnings);
</script>
</body>
</html>