muranja commited on
Commit
159bf5f
·
verified ·
1 Parent(s): 839e0ae

add the casino games from known casino games formats

Browse files
README.md CHANGED
@@ -1,10 +1,13 @@
1
  ---
2
- title: Jackpot Jamboree
3
- emoji: 🌖
4
- colorFrom: indigo
5
  colorTo: gray
 
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
1
  ---
2
+ title: Jackpot Jamboree 🎰
3
+ colorFrom: purple
 
4
  colorTo: gray
5
+ emoji: 🐳
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite-v3
10
  ---
11
 
12
+ # Welcome to your new DeepSite project!
13
+ This project was created with [DeepSite](https://huggingface.co/deepsite).
components/footer.js ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class CustomFooter extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ :host {
7
+ display: block;
8
+ margin-top: 4rem;
9
+ }
10
+ footer {
11
+ background: rgba(17, 24, 39, 0.9);
12
+ border-top: 1px solid rgba(239, 68, 68, 0.3);
13
+ padding: 2rem 0;
14
+ text-align: center;
15
+ }
16
+ .container {
17
+ max-width: 1200px;
18
+ margin: 0 auto;
19
+ padding: 0 1rem;
20
+ }
21
+ .footer-content {
22
+ display: flex;
23
+ justify-content: space-between;
24
+ align-items: center;
25
+ flex-wrap: wrap;
26
+ gap: 1rem;
27
+ }
28
+ .footer-links {
29
+ display: flex;
30
+ gap: 1.5rem;
31
+ }
32
+ .footer-links a {
33
+ color: #9ca3af;
34
+ text-decoration: none;
35
+ transition: color 0.3s;
36
+ }
37
+ .footer-links a:hover {
38
+ color: #ef4444;
39
+ }
40
+ .copyright {
41
+ color: #6b7280;
42
+ font-size: 0.875rem;
43
+ }
44
+ @media (max-width: 768px) {
45
+ .footer-content {
46
+ flex-direction: column;
47
+ }
48
+ }
49
+ </style>
50
+ <footer>
51
+ <div class="container">
52
+ <div class="footer-content">
53
+ <div class="copyright">
54
+ © 2024 CodeVault Casino. All rights reserved.
55
+ </div>
56
+ <div class="footer-links">
57
+ <a href="#">Terms</a>
58
+ <a href="#">Privacy</a>
59
+ <a href="#">Support</a>
60
+ </div>
61
+ </div>
62
+ </div>
63
+ </footer>
64
+ `;
65
+ }
66
+ }
67
+
68
+ customElements.define('custom-footer', CustomFooter);
components/navbar.js ADDED
@@ -0,0 +1,118 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class CasinoNavbar extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ :host {
7
+ display: block;
8
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
9
+ }
10
+ nav {
11
+ background: rgba(17, 24, 39, 0.9);
12
+ backdrop-filter: blur(10px);
13
+ border-bottom: 1px solid rgba(239, 68, 68, 0.3);
14
+ padding: 1rem 0;
15
+ position: sticky;
16
+ top: 0;
17
+ z-index: 50;
18
+ }
19
+ .container {
20
+ max-width: 1200px;
21
+ margin: 0 auto;
22
+ padding: 0 1rem;
23
+ display: flex;
24
+ justify-content: space-between;
25
+ align-items: center;
26
+ }
27
+ .logo {
28
+ display: flex;
29
+ align-items: center;
30
+ gap: 0.5rem;
31
+ font-size: 1.5rem;
32
+ font-weight: bold;
33
+ color: white;
34
+ text-decoration: none;
35
+ }
36
+ .logo-icon {
37
+ width: 32px;
38
+ height: 32px;
39
+ color: #ef4444;
40
+ }
41
+ .nav-links {
42
+ display: flex;
43
+ gap: 2rem;
44
+ align-items: center;
45
+ }
46
+ .nav-links a {
47
+ color: white;
48
+ text-decoration: none;
49
+ transition: color 0.3s;
50
+ display: flex;
51
+ align-items: center;
52
+ gap: 0.5rem;
53
+ }
54
+ .nav-links a:hover {
55
+ color: #ef4444;
56
+ }
57
+ .nav-links a.active {
58
+ color: #ef4444;
59
+ font-weight: 600;
60
+ }
61
+ .games-badge {
62
+ background: linear-gradient(45deg, #ef4444, #dc2626);
63
+ padding: 0.25rem 0.75rem;
64
+ border-radius: 9999px;
65
+ font-size: 0.75rem;
66
+ font-weight: 600;
67
+ margin-left: 0.5rem;
68
+ }
69
+ @media (max-width: 768px) {
70
+ .nav-links {
71
+ gap: 1rem;
72
+ }
73
+ .nav-links span {
74
+ display: none;
75
+ }
76
+ }
77
+ </style>
78
+ <nav>
79
+ <div class="container">
80
+ <a href="/" class="logo">
81
+ <svg class="logo-icon" fill="none" stroke="currentColor" viewBox="0 0 24 24">
82
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 2L2 7v10c0 5.55 3.84 9.74 9 12 5.16-2.26 9-6.45 9-12V7l-10-5z"></path>
83
+ </svg>
84
+ CodeVault Casino
85
+ </a>
86
+ <div class="nav-links">
87
+ <a href="/" class="active">
88
+ <i data-feather="home" class="w-5 h-5"></i>
89
+ <span>Home</span>
90
+ </a>
91
+ <a href="/games.html">
92
+ <i data-feather="dice" class="w-5 h-5"></i>
93
+ <span>Games</span>
94
+ <span class="games-badge">NEW</span>
95
+ </a>
96
+ <a href="#" onclick="alert('Admin panel coming soon!')">
97
+ <i data-feather="user" class="w-5 h-5"></i>
98
+ <span>Admin</span>
99
+ </a>
100
+ </div>
101
+ </div>
102
+ </nav>
103
+ `;
104
+
105
+ // Re-apply feather icons in shadow DOM
106
+ if (window.feather) {
107
+ setTimeout(() => {
108
+ feather.replace({
109
+ 'stroke-width': 2,
110
+ 'stroke-linecap': 'round',
111
+ 'stroke-linejoin': 'round'
112
+ });
113
+ }, 10);
114
+ }
115
+ }
116
+ }
117
+
118
+ customElements.define('casino-navbar', CasinoNavbar);
components/redeem-form.js ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class RedeemForm extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ :host {
7
+ display: block;
8
+ font-family: inherit;
9
+ }
10
+ form {
11
+ display: flex;
12
+ flex-direction: column;
13
+ gap: 1rem;
14
+ }
15
+ .form-group {
16
+ display: flex;
17
+ flex-direction: column;
18
+ gap: 0.5rem;
19
+ }
20
+ label {
21
+ font-size: 0.875rem;
22
+ font-weight: 500;
23
+ color: #d1d5db;
24
+ }
25
+ input, select {
26
+ padding: 0.75rem;
27
+ background: rgba(55, 65, 81, 0.5);
28
+ border: 1px solid rgba(75, 85, 99, 0.5);
29
+ border-radius: 0.5rem;
30
+ color: white;
31
+ font-size: 1rem;
32
+ transition: all 0.3s;
33
+ }
34
+ input:focus, select:focus {
35
+ outline: none;
36
+ border-color: #ef4444;
37
+ box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
38
+ }
39
+ button {
40
+ background: linear-gradient(45deg, #ef4444, #dc2626);
41
+ color: white;
42
+ padding: 0.75rem 2rem;
43
+ border: none;
44
+ border-radius: 0.5rem;
45
+ font-size: 1rem;
46
+ font-weight: 600;
47
+ cursor: pointer;
48
+ transition: all 0.3s;
49
+ margin-top: 1rem;
50
+ }
51
+ button:hover {
52
+ transform: translateY(-2px);
53
+ box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
54
+ }
55
+ button:active {
56
+ transform: translateY(0);
57
+ }
58
+ .message {
59
+ margin-top: 1rem;
60
+ padding: 0.75rem;
61
+ border-radius: 0.5rem;
62
+ font-size: 0.875rem;
63
+ display: none;
64
+ }
65
+ .message.success {
66
+ background: rgba(34, 197, 94, 0.1);
67
+ border: 1px solid rgba(34, 197, 94, 0.3);
68
+ color: #22c55e;
69
+ }
70
+ .message.error {
71
+ background: rgba(239, 68, 68, 0.1);
72
+ border: 1px solid rgba(239, 68, 68, 0.3);
73
+ color: #ef4444;
74
+ }
75
+ </style>
76
+ <form id="redeemForm">
77
+ <div class="form-group">
78
+ <label for="code">Redemption Code</label>
79
+ <input type="text" id="code" name="code" placeholder="XXXX-XXXX-XXXX" required>
80
+ </div>
81
+ <div class="form-group">
82
+ <label for="paymentMethod">Payment Method</label>
83
+ <select id="paymentMethod" name="paymentMethod" required>
84
+ <option value="">Select method...</option>
85
+ <option value="crypto">Cryptocurrency</option>
86
+ <option value="cashapp">Cash App</option>
87
+ <option value="paypal">PayPal</option>
88
+ <option value="venmo">Venmo</option>
89
+ </select>
90
+ </div>
91
+ <div class="form-group">
92
+ <label for="walletAddress">Wallet Address / Phone Number</label>
93
+ <input type="text" id="walletAddress" name="walletAddress" placeholder="Enter receiving address" required>
94
+ </div>
95
+ <button type="submit">Redeem Now</button>
96
+ <div id="message" class="message"></div>
97
+ </form>
98
+ `;
99
+
100
+ this.shadowRoot.getElementById('redeemForm').addEventListener('submit', (e) => {
101
+ e.preventDefault();
102
+ this.handleSubmit();
103
+ });
104
+ }
105
+
106
+ handleSubmit() {
107
+ const form = this.shadowRoot.getElementById('redeemForm');
108
+ const formData = new FormData(form);
109
+ const code = formData.get('code');
110
+ const paymentMethod = formData.get('paymentMethod');
111
+ const walletAddress = formData.get('walletAddress');
112
+ const messageEl = this.shadowRoot.getElementById('message');
113
+
114
+ // Simulate redemption process
115
+ messageEl.style.display = 'block';
116
+ messageEl.className = 'message success';
117
+ messageEl.textContent = `✅ Processing ${paymentMethod} redemption for code ${code}...`;
118
+
119
+ setTimeout(() => {
120
+ if (code.length > 8 && walletAddress.length > 5) {
121
+ messageEl.className = 'message success';
122
+ messageEl.textContent = `🎉 Success! ${paymentMethod} payment sent to ${walletAddress}`;
123
+ form.reset();
124
+ } else {
125
+ messageEl.className = 'message error';
126
+ messageEl.textContent = '❌ Invalid code or address. Please try again.';
127
+ }
128
+ }, 1500);
129
+ }
130
+ }
131
+
132
+ customElements.define('redeem-form', RedeemForm);
components/slot-machine.js ADDED
@@ -0,0 +1,305 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ```javascript
2
+ class SlotMachine extends HTMLElement {
3
+ constructor() {
4
+ super();
5
+ this.balance = 1000;
6
+ this.bet = 10;
7
+ this.isSpinning = false;
8
+ this.symbols = ['🍒', '🍋', '🍊', '🍉', '⭐', '💎', '7️⃣'];
9
+ this.symbolValues = {
10
+ '🍒': 2,
11
+ '🍋': 3,
12
+ '🍊': 4,
13
+ '🍉': 5,
14
+ '⭐': 10,
15
+ '💎': 20,
16
+ '7️⃣': 50
17
+ };
18
+ }
19
+
20
+ connectedCallback() {
21
+ this.attachShadow({ mode: 'open' });
22
+ this.render();
23
+ this.setupEventListeners();
24
+ this.updateDisplay();
25
+ }
26
+
27
+ render() {
28
+ this.shadowRoot.innerHTML = `
29
+ <style>
30
+ :host {
31
+ display: block;
32
+ max-width: 500px;
33
+ margin: 0 auto;
34
+ }
35
+ .slot-container {
36
+ background: linear-gradient(135deg, #1e293b, #334155);
37
+ border: 2px solid #ef4444;
38
+ border-radius: 1rem;
39
+ padding: 2rem;
40
+ box-shadow: 0 10px 30px rgba(239, 68, 68, 0.2);
41
+ }
42
+ .balance-display {
43
+ text-align: center;
44
+ margin-bottom: 1rem;
45
+ font-size: 1.25rem;
46
+ font-weight: bold;
47
+ }
48
+ .reels {
49
+ display: flex;
50
+ gap: 0.5rem;
51
+ justify-content: center;
52
+ margin: 2rem 0;
53
+ background: #000;
54
+ padding: 1.5rem;
55
+ border-radius: 0.5rem;
56
+ border: 3px solid #374151;
57
+ }
58
+ .reel {
59
+ width: 80px;
60
+ height: 80px;
61
+ background: linear-gradient(to bottom, #fbbf24, #f59e0b);
62
+ border: 2px solid #92400e;
63
+ border-radius: 0.5rem;
64
+ display: flex;
65
+ align-items: center;
66
+ justify-content: center;
67
+ font-size: 2.5rem;
68
+ font-weight: bold;
69
+ transition: transform 0.1s;
70
+ }
71
+ .reel.spinning {
72
+ animation: spin 0.3s linear infinite;
73
+ }
74
+ @keyframes spin {
75
+ 0% { transform: translateY(-20px); opacity: 0.5; }
76
+ 100% { transform: translateY(20px); opacity: 1; }
77
+ }
78
+ .controls {
79
+ display: flex;
80
+ flex-direction: column;
81
+ gap: 1rem;
82
+ }
83
+ .bet-controls {
84
+ display: flex;
85
+ justify-content: center;
86
+ align-items: center;
87
+ gap: 1rem;
88
+ }
89
+ .bet-btn {
90
+ width: 40px;
91
+ height: 40px;
92
+ border: none;
93
+ border-radius: 50%;
94
+ background: #ef4444;
95
+ color: white;
96
+ font-weight: bold;
97
+ cursor: pointer;
98
+ transition: all 0.3s;
99
+ }
100
+ .bet-btn:hover {
101
+ background: #dc2626;
102
+ transform: scale(1.1);
103
+ }
104
+ .bet-btn:disabled {
105
+ opacity: 0.5;
106
+ cursor: not-allowed;
107
+ }
108
+ .spin-btn {
109
+ background: linear-gradient(45deg, #ef4444, #dc2626);
110
+ color: white;
111
+ border: none;
112
+ padding: 1rem 3rem;
113
+ border-radius: 0.5rem;
114
+ font-size: 1.25rem;
115
+ font-weight: bold;
116
+ cursor: pointer;
117
+ transition: all 0.3s;
118
+ text-transform: uppercase;
119
+ letter-spacing: 1px;
120
+ }
121
+ .spin-btn:hover:not(:disabled) {
122
+ transform: translateY(-2px);
123
+ box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
124
+ }
125
+ .spin-btn:disabled {
126
+ opacity: 0.5;
127
+ cursor: not-allowed;
128
+ }
129
+ .message {
130
+ text-align: center;
131
+ margin-top: 1rem;
132
+ font-size: 1.125rem;
133
+ font-weight: 600;
134
+ min-height: 1.5rem;
135
+ }
136
+ .win {
137
+ color: #22c55e;
138
+ animation: pulse 0.5s;
139
+ }
140
+ .lose {
141
+ color: #ef4444;
142
+ }
143
+ @keyframes pulse {
144
+ 0%, 100% { transform: scale(1); }
145
+ 50% { transform: scale(1.1); }
146
+ }
147
+ .payout-table {
148
+ margin-top: 1.5rem;
149
+ background: rgba(55, 65, 81, 0.5);
150
+ border-radius: 0.5rem;
151
+ padding: 1rem;
152
+ }
153
+ .payout-table h4 {
154
+ margin: 0 0 0.5rem 0;
155
+ text-align: center;
156
+ color: #ef4444;
157
+ }
158
+ .payout-row {
159
+ display: flex;
160
+ justify-content: space-between;
161
+ font-size: 0.875rem;
162
+ padding: 0.25rem 0;
163
+ }
164
+ </style>
165
+ <div class="slot-container">
166
+ <div class="balance-display">💰 Balance: $<span id="balance">1000</span></div>
167
+ <div class="reels">
168
+ <div class="reel" id="reel1">🍒</div>
169
+ <div class="reel" id="reel2">🍋</div>
170
+ <div class="reel" id="reel3">🍊</div>
171
+ </div>
172
+ <div class="controls">
173
+ <div class="bet-controls">
174
+ <button class="bet-btn" id="decreaseBet">-</button>
175
+ <span>Bet: $<span id="betAmount">10</span></span>
176
+ <button class="bet-btn" id="increaseBet">+</button>
177
+ </div>
178
+ <button class="spin-btn" id="spinBtn">SPIN</button>
179
+ </div>
180
+ <div class="message" id="message"></div>
181
+ <div class="payout-table">
182
+ <h4>Payouts (x bet)</h4>
183
+ <div class="payout-row"><span>🍒 3x</span><span>2x</span></div>
184
+ <div class="payout-row"><span>🍋 3x</span><span>3x</span></div>
185
+ <div class="payout-row"><span>🍊 3x</span><span>4x</span></div>
186
+ <div class="payout-row"><span>🍉 3x</span><span>5x</span></div>
187
+ <div class="payout-row"><span>⭐ 3x</span><span>10x</span></div>
188
+ <div class="payout-row"><span>💎 3x</span><span>20x</span></div>
189
+ <div class="payout-row"><span>7️⃣ 3x</span><span>50x JACKPOT!</span></div>
190
+ </div>
191
+ </div>
192
+ `;
193
+ }
194
+
195
+ setupEventListeners() {
196
+ this.shadowRoot.getElementById('spinBtn').addEventListener('click', () => this.spin());
197
+ this.shadowRoot.getElementById('increaseBet').addEventListener('click', () => this.changeBet(5));
198
+ this.shadowRoot.getElementById('decreaseBet').addEventListener('click', () => this.changeBet(-5));
199
+ }
200
+
201
+ changeBet(amount) {
202
+ if (this.isSpinning) return;
203
+ this.bet = Math.max(5, Math.min(100, this.bet + amount));
204
+ this.updateDisplay();
205
+ }
206
+
207
+ async spin() {
208
+ if (this.isSpinning || this.balance < this.bet) {
209
+ if (this.balance < this.bet) {
210
+ this.showMessage('❌ Insufficient balance!', 'lose');
211
+ }
212
+ return;
213
+ }
214
+
215
+ this.isSpinning = true;
216
+ this.balance -= this.bet;
217
+ this.updateDisplay();
218
+
219
+ const reel1 = this.shadowRoot.getElementById('reel1');
220
+ const reel2 = this.shadowRoot.getElementById('reel2');
221
+ const reel3 = this.shadowRoot.getElementById('reel3');
222
+ const spinBtn = this.shadowRoot.getElementById('spinBtn');
223
+
224
+ spinBtn.textContent = 'SPINNING...';
225
+ spinBtn.disabled = true;
226
+ reel1.classList.add('spinning');
227
+ reel2.classList.add('spinning');
228
+ reel3.classList.add('spinning');
229
+
230
+ // Simulate spinning
231
+ const spinDuration = 2000;
232
+ const spinInterval = 100;
233
+ const startTime = Date.now();
234
+
235
+ const spinReels = setInterval(() => {
236
+ reel1.textContent = this.symbols[Math.floor(Math.random() * this.symbols.length)];
237
+ reel2.textContent = this.symbols[Math.floor(Math.random() * this.symbols.length)];
238
+ reel3.textContent = this.symbols[Math.floor(Math.random() * this.symbols.length)];
239
+
240
+ if (Date.now() - startTime > spinDuration) {
241
+ clearInterval(spinReels);
242
+ this.stopSpin();
243
+ }
244
+ }, spinInterval);
245
+ }
246
+
247
+ stopSpin() {
248
+ const reel1 = this.shadowRoot.getElementById('reel1');
249
+ const reel2 = this.shadowRoot.getElementById('reel2');
250
+ const reel3 = this.shadowRoot.getElementById('reel3');
251
+ const spinBtn = this.shadowRoot.getElementById('spinBtn');
252
+
253
+ reel1.classList.remove('spinning');
254
+ reel2.classList.remove('spinning');
255
+ reel3.classList.remove('spinning');
256
+
257
+ // Final results
258
+ const result1 = this.symbols[Math.floor(Math.random() * this.symbols.length)];
259
+ const result2 = this.symbols[Math.floor(Math.random() * this.symbols.length)];
260
+ const result3 = this.symbols[Math.floor(Math.random() * this.symbols.length)];
261
+
262
+ reel1.textContent = result1;
263
+ reel2.textContent = result2;
264
+ reel3.textContent = result3;
265
+
266
+ this.calculateWinnings(result1, result2, result3);
267
+
268
+ spinBtn.textContent = 'SPIN';
269
+ spinBtn.disabled = false;
270
+ this.isSpinning = false;
271
+ }
272
+
273
+ calculateWinnings(r1, r2, r3) {
274
+ if (r1 === r2 && r2 === r3) {
275
+ const multiplier = this.symbolValues[r1];
276
+ const winnings = this.bet * multiplier;
277
+ this.balance += winnings;
278
+ this.showMessage(`🎉 JACKPOT! You won $${winnings}!`, 'win');
279
+
280
+ // Generate redemption code for big wins
281
+ if (winnings >= 100) {
282
+ setTimeout(() => {
283
+ alert(`🏆 CONGRATULATIONS! You've earned a redemption code: WIN-${Math.random().toString(36).substr(2, 9).toUpperCase()}`);
284
+ }, 1000);
285
+ }
286
+ } else if (r1 === r2 || r2 === r3 || r1 === r3) {
287
+ const smallWin = this.bet * 0.5;
288
+ this.balance += smallWin;
289
+ this.showMessage(`💰 Small win! $${smallWin}`, 'win');
290
+ } else {
291
+ this.showMessage('😔 Try again!', 'lose');
292
+ }
293
+
294
+ this.updateDisplay();
295
+ }
296
+
297
+ showMessage(text, type) {
298
+ const messageEl = this.shadowRoot.getElementById('message');
299
+ messageEl.textContent = text;
300
+ messageEl.className = `message ${type}`;
301
+ }
302
+
303
+ updateDisplay() {
304
+ this.shadowRoot.getElementById('balance').textContent = this.balance;
305
+ this.shadowRoot.getElementById('betAmount').textContent = this.bet;
games.html ADDED
@@ -0,0 +1,160 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en" class="dark">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Casino Games - CodeVault Casino</title>
7
+ <link rel="icon" type="image/x-icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ef4444'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E">
8
+ <link rel="stylesheet" href="style.css">
9
+ <script src="https://cdn.tailwindcss.com"></script>
10
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
11
+ <script>
12
+ tailwind.config = {
13
+ darkMode: 'class',
14
+ theme: {
15
+ extend: {
16
+ colors: {
17
+ primary: '#ffffff',
18
+ secondary: '#ef4444'
19
+ }
20
+ }
21
+ }
22
+ }
23
+ </script>
24
+ </head>
25
+ <body class="bg-gray-900 text-white min-h-screen">
26
+ <casino-navbar></casino-navbar>
27
+
28
+ <main class="container mx-auto px-4 py-8 max-w-7xl">
29
+ <!-- Header -->
30
+ <section class="text-center mb-12">
31
+ <h1 class="text-5xl md:text-6xl font-bold mb-4 bg-gradient-to-r from-primary to-secondary bg-clip-text text-transparent">
32
+ Casino Games
33
+ </h1>
34
+ <p class="text-xl text-gray-300 max-w-2xl mx-auto mb-6">
35
+ Play classic casino games and win exclusive redemption codes!
36
+ </p>
37
+ <div class="flex justify-center gap-4">
38
+ <div class="px-4 py-2 bg-red-500/20 border border-red-500/30 rounded-full text-sm flex items-center gap-2">
39
+ <i data-feather="trending-up" class="w-4 h-4"></i>
40
+ Win Codes
41
+ </div>
42
+ <div class="px-4 py-2 bg-red-500/20 border border-red-500/30 rounded-full text-sm flex items-center gap-2">
43
+ <i data-feather="award" class="w-4 h-4"></i>
44
+ Daily Bonuses
45
+ </div>
46
+ </div>
47
+ </section>
48
+
49
+ <!-- Game Selection -->
50
+ <section class="grid md:grid-cols-2 lg:grid-cols-3 gap-8 mb-12">
51
+ <div class="bg-gray-800/50 backdrop-blur-sm border border-gray-700 rounded-2xl p-6 hover:border-red-500/50 transition-all hover:shadow-2xl hover:shadow-red-500/20 game-card" data-game="slots">
52
+ <div class="w-16 h-16 bg-red-500 rounded-xl flex items-center justify-center mx-auto mb-4">
53
+ <i data-feather="box" class="w-8 h-8"></i>
54
+ </div>
55
+ <h3 class="text-2xl font-bold text-center mb-2">Slot Machine</h3>
56
+ <p class="text-gray-400 text-center mb-4">Spin the reels and match symbols to win big!</p>
57
+ <button class="w-full bg-red-500 hover:bg-red-600 text-white py-3 rounded-lg font-semibold transition-all">
58
+ Play Now
59
+ </button>
60
+ </div>
61
+
62
+ <div class="bg-gray-800/50 backdrop-blur-sm border border-gray-700 rounded-2xl p-6 hover:border-red-500/50 transition-all hover:shadow-2xl hover:shadow-red-500/20 game-card" data-game="roulette">
63
+ <div class="w-16 h-16 bg-red-500 rounded-xl flex items-center justify-center mx-auto mb-4">
64
+ <i data-feather="target" class="w-8 h-8"></i>
65
+ </div>
66
+ <h3 class="text-2xl font-bold text-center mb-2">Roulette</h3>
67
+ <p class="text-gray-400 text-center mb-4">Place your bets and watch the wheel spin!</p>
68
+ <button class="w-full bg-red-500 hover:bg-red-600 text-white py-3 rounded-lg font-semibold transition-all">
69
+ Play Now
70
+ </button>
71
+ </div>
72
+
73
+ <div class="bg-gray-800/50 backdrop-blur-sm border border-gray-700 rounded-2xl p-6 hover:border-red-500/50 transition-all hover:shadow-2xl hover:shadow-red-500/20 game-card" data-game="blackjack">
74
+ <div class="w-16 h-16 bg-red-500 rounded-xl flex items-center justify-center mx-auto mb-4">
75
+ <i data-feather="layers" class="w-8 h-8"></i>
76
+ </div>
77
+ <h3 class="text-2xl font-bold text-center mb-2">Blackjack</h3>
78
+ <p class="text-gray-400 text-center mb-4">Beat the dealer in this classic card game!</p>
79
+ <button class="w-full bg-red-500 hover:bg-red-600 text-white py-3 rounded-lg font-semibold transition-all">
80
+ Play Now
81
+ </button>
82
+ </div>
83
+ </section>
84
+
85
+ <!-- Game Area (Hidden by default) -->
86
+ <section id="gameArea" class="hidden">
87
+ <div class="bg-gray-800/50 backdrop-blur-sm border border-gray-700 rounded-2xl p-8 shadow-2xl">
88
+ <div class="flex justify-between items-center mb-6">
89
+ <h2 id="gameTitle" class="text-3xl font-bold"></h2>
90
+ <button id="closeGame" class="text-gray-400 hover:text-white transition-colors">
91
+ <i data-feather="x" class="w-6 h-6"></i>
92
+ </button>
93
+ </div>
94
+ <div id="gameContainer">
95
+ <!-- Games will be loaded here -->
96
+ </div>
97
+ </div>
98
+ </section>
99
+
100
+ <!-- Leaderboard -->
101
+ <section class="bg-gray-800/50 backdrop-blur-sm border border-gray-700 rounded-2xl p-8">
102
+ <h2 class="text-2xl font-bold mb-6 flex items-center gap-3">
103
+ <i data-feather="trophy" class="w-6 h-6 text-yellow-500"></i>
104
+ Daily Leaderboard
105
+ </h2>
106
+ <div class="grid md:grid-cols-2 gap-6">
107
+ <div>
108
+ <h3 class="text-lg font-semibold mb-3 text-red-400">Top Winners</h3>
109
+ <div class="space-y-2">
110
+ <div class="flex justify-between items-center p-3 bg-gray-700/30 rounded-lg">
111
+ <span class="flex items-center gap-2">
112
+ <span class="text-yellow-500">🥇</span> Player_7X2
113
+ </span>
114
+ <span class="text-green-400 font-semibold">+2,450</span>
115
+ </div>
116
+ <div class="flex justify-between items-center p-3 bg-gray-700/30 rounded-lg">
117
+ <span class="flex items-center gap-2">
118
+ <span class="text-gray-400">🥈</span> LuckyStar
119
+ </span>
120
+ <span class="text-green-400 font-semibold">+1,890</span>
121
+ </div>
122
+ <div class="flex justify-between items-center p-3 bg-gray-700/30 rounded-lg">
123
+ <span class="flex items-center gap-2">
124
+ <span class="text-orange-600">🥉</span> HighRoller
125
+ </span>
126
+ <span class="text-green-400 font-semibold">+1,620</span>
127
+ </div>
128
+ </div>
129
+ </div>
130
+ <div>
131
+ <h3 class="text-lg font-semibold mb-3 text-red-400">Recent Wins</h3>
132
+ <div class="space-y-2">
133
+ <div class="flex justify-between items-center p-3 bg-gray-700/30 rounded-lg text-sm">
134
+ <span>Slots - JACKPOT!</span>
135
+ <span class="text-green-400">+$500</span>
136
+ </div>
137
+ <div class="flex justify-between items-center p-3 bg-gray-700/30 rounded-lg text-sm">
138
+ <span>Roulette - Red 21</span>
139
+ <span class="text-green-400">+$250</span>
140
+ </div>
141
+ <div class="flex justify-between items-center p-3 bg-gray-700/30 rounded-lg text-sm">
142
+ <span>Blackjack - Natural</span>
143
+ <span class="text-green-400">+$150</span>
144
+ </div>
145
+ </div>
146
+ </div>
147
+ </div>
148
+ </section>
149
+ </main>
150
+
151
+ <custom-footer></custom-footer>
152
+
153
+ <script src="components/navbar.js"></script>
154
+ <script src="components/footer.js"></script>
155
+ <script src="components/slot-machine.js"></script>
156
+ <script src="components/roulette.js"></script>
157
+ <script src="components/blackjack.js"></script>
158
+ <script src="script.js"></script>
159
+ </body>
160
+ </html>
index.html CHANGED
@@ -1,19 +1,113 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en" class="dark">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>CodeVault Casino - Redeem Codes</title>
7
+ <link rel="icon" type="image/x-icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ef4444'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E">
8
+ <link rel="stylesheet" href="style.css">
9
+ <script src="https://cdn.tailwindcss.com"></script>
10
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
11
+ <script src="https://unpkg.com/feather-icons"></script>
12
+ <script>
13
+ tailwind.config = {
14
+ darkMode: 'class',
15
+ theme: {
16
+ extend: {
17
+ colors: {
18
+ primary: '#ffffff',
19
+ secondary: '#ef4444'
20
+ }
21
+ }
22
+ }
23
+ }
24
+ </script>
25
+ </head>
26
+ <body class="bg-gray-900 text-white min-h-screen">
27
+ <casino-navbar></casino-navbar>
28
+
29
+ <main class="container mx-auto px-4 py-8 max-w-6xl">
30
+ <!-- Hero Section -->
31
+ <section class="text-center mb-12">
32
+ <h1 class="text-5xl md:text-6xl font-bold mb-4 bg-gradient-to-r from-primary to-secondary bg-clip-text text-transparent">
33
+ CodeVault Casino
34
+ </h1>
35
+ <p class="text-xl text-gray-300 max-w-2xl mx-auto">
36
+ Redeem exclusive payment codes for instant crypto & cash rewards
37
+ </p>
38
+ <div class="mt-6 flex justify-center gap-4">
39
+ <span class="px-4 py-2 bg-red-500/20 border border-red-500/30 rounded-full text-sm flex items-center gap-2">
40
+ <i data-feather="shield" class="w-4 h-4"></i>
41
+ Secure & Verified
42
+ </span>
43
+ <span class="px-4 py-2 bg-red-500/20 border border-red-500/30 rounded-full text-sm flex items-center gap-2">
44
+ <i data-feather="zap" class="w-4 h-4"></i>
45
+ Instant Payout
46
+ </span>
47
+ <span class="px-4 py-2 bg-red-500/20 border border-red-500/30 rounded-full text-sm flex items-center gap-2">
48
+ <i data-feather="clock" class="w-4 h-4"></i>
49
+ 24/7 Available
50
+ </span>
51
+ </div>
52
+ </section>
53
+
54
+ <!-- Redeem Section -->
55
+ <section class="grid md:grid-cols-2 gap-8 mb-12">
56
+ <div class="bg-gray-800/50 backdrop-blur-sm border border-gray-700 rounded-2xl p-8 shadow-2xl">
57
+ <div class="flex items-center gap-3 mb-6">
58
+ <div class="w-12 h-12 bg-red-500 rounded-xl flex items-center justify-center">
59
+ <i data-feather="gift" class="w-6 h-6 text-white"></i>
60
+ </div>
61
+ <h2 class="text-2xl font-bold">Redeem Code</h2>
62
+ </div>
63
+ <redeem-form></redeem-form>
64
+ </div>
65
+
66
+ <div class="bg-gray-800/50 backdrop-blur-sm border border-gray-700 rounded-2xl p-8 shadow-2xl">
67
+ <div class="flex items-center gap-3 mb-6">
68
+ <div class="w-12 h-12 bg-red-500 rounded-xl flex items-center justify-center">
69
+ <i data-feather="info" class="w-6 h-6 text-white"></i>
70
+ </div>
71
+ <h2 class="text-2xl font-bold">How It Works</h2>
72
+ </div>
73
+ <div class="space-y-4">
74
+ <div class="flex gap-4">
75
+ <div class="w-8 h-8 bg-red-500 rounded-full flex-shrink-0 flex items-center justify-center font-bold">1</div>
76
+ <div>
77
+ <h3 class="font-semibold mb-1">Get Your Code</h3>
78
+ <p class="text-gray-400 text-sm">Receive exclusive payment codes from our admin team</p>
79
+ </div>
80
+ </div>
81
+ <div class="flex gap-4">
82
+ <div class="w-8 h-8 bg-red-500 rounded-full flex-shrink-0 flex items-center justify-center font-bold">2</div>
83
+ <div>
84
+ <h3 class="font-semibold mb-1">Enter Details</h3>
85
+ <p class="text-gray-400 text-sm">Provide your wallet address or phone number</p>
86
+ </div>
87
+ </div>
88
+ <div class="flex gap-4">
89
+ <div class="w-8 h-8 bg-red-500 rounded-full flex-shrink-0 flex items-center justify-center font-bold">3</div>
90
+ <div>
91
+ <h3 class="font-semibold mb-1">Instant Redemption</h3>
92
+ <p class="text-gray-400 text-sm">Get your funds transferred within seconds</p>
93
+ </div>
94
+ </div>
95
+ </div>
96
+ </div>
97
+ </section>
98
+
99
+ <!-- Stats Section -->
100
+ <section class="grid grid-cols-2 md:grid-cols-4 gap-4 mb-12">
101
+ <div class="bg-gray-800/50 backdrop-blur-sm border border-gray-700 rounded-xl p-6 text-center">
102
+ <div class="text-3xl font-bold text-red-500 mb-2" id="totalCodes">0</div>
103
+ <div class="text-sm text-gray-400">Codes Generated</div>
104
+ </div>
105
+ <div class="bg-gray-800/50 backdrop-blur-sm border border-gray-700 rounded-xl p-6 text-center">
106
+ <div class="text-3xl font-bold text-red-500 mb-2" id="totalRedeemed">0</div>
107
+ <div class="text-sm text-gray-400">Codes Redeemed</div>
108
+ </div>
109
+ <div class="bg-gray-800/50 backdrop-blur-sm border border-gray-700 rounded-xl p-6 text-center">
110
+ <div class="text-3xl font-bold text-red-500 mb-2" id="total
111
+ <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
112
+ </body>
113
+ </html>