ProjectGenesis commited on
Commit
fc01866
·
verified ·
1 Parent(s): 544efb3

make the Jackpot Counter section smaller - Follow Up Deployment

Browse files
Files changed (1) hide show
  1. index.html +115 -189
index.html CHANGED
@@ -3,228 +3,154 @@
3
  <head>
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>Sticky Jackpot Counter</title>
7
  <script src="https://cdn.tailwindcss.com"></script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
9
  <style>
10
- @keyframes pulse {
11
- 0%, 100% { box-shadow: 0 0 15px rgba(255, 215, 0, 0.7); }
12
- 50% { box-shadow: 0 0 25px rgba(255, 215, 0, 0.9), 0 0 35px rgba(255, 215, 0, 0.6); }
13
- }
14
-
15
- @keyframes float {
16
- 0%, 100% { transform: translateY(0); }
17
- 50% { transform: translateY(-5px); }
18
- }
19
-
20
- @keyframes coinSpin {
21
- 0% { transform: rotateY(0deg); }
22
- 100% { transform: rotateY(360deg); }
23
  }
24
 
25
  .jackpot-container {
26
- animation: float 3s ease-in-out infinite;
 
 
 
 
27
  }
28
 
29
- .jackpot-value {
30
- text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
 
 
 
31
  }
32
 
33
  .coin {
34
- animation: coinSpin 4s linear infinite;
 
 
 
 
 
 
 
35
  }
36
 
37
- .digit-change {
38
- animation: digitBounce 0.5s ease-out;
 
 
39
  }
40
 
41
- @keyframes digitBounce {
42
- 0%, 100% { transform: scale(1); }
43
- 50% { transform: scale(1.2); }
 
 
44
  }
45
 
46
- .progress-bar {
47
- height: 4px;
48
- background: linear-gradient(90deg, #fbbf24, #f59e0b, #ef4444);
49
  }
50
  </style>
51
  </head>
52
- <body class="bg-gray-900 min-h-screen">
53
- <!-- Sticky Jackpot Counter -->
54
- <div class="fixed top-0 left-0 right-0 z-50 flex justify-center pt-4">
55
- <div class="jackpot-container bg-gradient-to-br from-gray-800 to-gray-900 rounded-xl border-2 border-yellow-500 p-4 shadow-lg w-full max-w-2xl mx-4" style="animation: pulse 2s infinite;">
56
- <div class="flex flex-col items-center">
57
- <div class="flex items-center mb-2">
58
- <div class="coin w-8 h-8 mr-2 bg-yellow-400 rounded-full flex items-center justify-center text-yellow-800 font-bold text-sm" style="transform-style: preserve-3d;">
59
- <i class="fas fa-coins"></i>
60
- </div>
61
- <h2 class="text-yellow-400 font-bold text-xl uppercase tracking-wider">Progressive Jackpot</h2>
62
- </div>
63
-
64
- <div class="flex items-end">
65
- <span class="text-yellow-100 text-lg mr-1">$</span>
66
- <div id="jackpotValue" class="jackpot-value text-4xl md:text-5xl font-extrabold text-yellow-300 flex">
67
- <!-- Digits will be inserted here by JavaScript -->
68
- </div>
69
- </div>
70
-
71
- <div class="w-full mt-3 bg-gray-700 rounded-full overflow-hidden">
72
- <div class="progress-bar h-2 rounded-full" style="width: 0%"></div>
73
  </div>
74
 
75
- <div class="flex justify-between w-full mt-1 text-xs text-gray-400">
76
- <span>Next bonus in: <span id="countdown" class="text-yellow-300">00:00</span></span>
77
- <span>Last winner: <span class="text-yellow-300">$12,450</span></span>
78
- </div>
79
- </div>
80
- </div>
81
- </div>
82
-
83
- <!-- Sample content to demonstrate sticky behavior -->
84
- <div class="pt-32 px-4 pb-20">
85
- <div class="max-w-4xl mx-auto space-y-8 text-gray-300">
86
- <h1 class="text-4xl font-bold text-center text-yellow-400 mb-8">Welcome to Our Casino</h1>
87
-
88
- <div class="bg-gray-800 p-6 rounded-xl shadow-lg">
89
- <h2 class="text-2xl font-semibold text-yellow-300 mb-4">Featured Games</h2>
90
- <div class="grid grid-cols-2 md:grid-cols-3 gap-4">
91
- <div class="bg-gray-700 rounded-lg overflow-hidden hover:transform hover:scale-105 transition-transform">
92
- <img src="https://via.placeholder.com/300x200/1f2937/cccccc?text=Slot+Machine" alt="Slot Machine" class="w-full h-32 object-cover">
93
- <div class="p-3">
94
- <h3 class="font-medium">Mega Fortune</h3>
95
- <p class="text-xs text-gray-400">Progressive Jackpot</p>
96
- </div>
97
- </div>
98
- <div class="bg-gray-700 rounded-lg overflow-hidden hover:transform hover:scale-105 transition-transform">
99
- <img src="https://via.placeholder.com/300x200/1f2937/cccccc?text=Roulette" alt="Roulette" class="w-full h-32 object-cover">
100
- <div class="p-3">
101
- <h3 class="font-medium">European Roulette</h3>
102
- <p class="text-xs text-gray-400">Live Dealer</p>
103
- </div>
104
- </div>
105
- <div class="bg-gray-700 rounded-lg overflow-hidden hover:transform hover:scale-105 transition-transform">
106
- <img src="https://via.placeholder.com/300x200/1f2937/cccccc?text=Blackjack" alt="Blackjack" class="w-full h-32 object-cover">
107
- <div class="p-3">
108
- <h3 class="font-medium">VIP Blackjack</h3>
109
- <p class="text-xs text-gray-400">High Stakes</p>
110
- </div>
111
- </div>
112
- </div>
113
- </div>
114
-
115
- <div class="bg-gray-800 p-6 rounded-xl shadow-lg">
116
- <h2 class="text-2xl font-semibold text-yellow-300 mb-4">Current Promotions</h2>
117
- <div class="space-y-4">
118
- <div class="flex items-start">
119
- <div class="bg-yellow-500 text-yellow-900 rounded-full w-6 h-6 flex items-center justify-center flex-shrink-0 mt-1 mr-3">
120
- <i class="fas fa-gift text-xs"></i>
121
- </div>
122
- <div>
123
- <h3 class="font-medium">Welcome Bonus</h3>
124
- <p class="text-sm text-gray-400">Get 100% match bonus up to $500 on your first deposit!</p>
125
- </div>
126
- </div>
127
- <div class="flex items-start">
128
- <div class="bg-yellow-500 text-yellow-900 rounded-full w-6 h-6 flex items-center justify-center flex-shrink-0 mt-1 mr-3">
129
- <i class="fas fa-coins text-xs"></i>
130
- </div>
131
- <div>
132
- <h3 class="font-medium">Weekly Cashback</h3>
133
- <p class="text-sm text-gray-400">Get up to 15% cashback on your losses every week.</p>
134
- </div>
135
- </div>
136
  </div>
137
  </div>
138
  </div>
139
  </div>
140
 
141
  <script>
142
- document.addEventListener('DOMContentLoaded', function() {
143
- // Initial jackpot value
144
- let jackpot = 59802.80;
145
- const jackpotElement = document.getElementById('jackpotValue');
146
- const progressBar = document.querySelector('.progress-bar');
147
- const countdownElement = document.getElementById('countdown');
148
-
149
- // Format number with commas
150
- function formatNumber(num) {
151
- return num.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
152
- }
 
 
 
 
 
 
 
 
 
 
153
 
154
- // Display the initial jackpot value
155
- updateJackpotDisplay(jackpot);
 
 
 
 
 
 
 
 
156
 
157
- // Function to update jackpot display with animation
158
- function updateJackpotDisplay(value) {
159
- const formattedValue = formatNumber(value.toFixed(2));
160
- const parts = formattedValue.split('.');
161
-
162
- jackpotElement.innerHTML = '';
163
-
164
- // Add each digit with animation
165
- parts[0].split('').forEach((char, index) => {
166
- const digitSpan = document.createElement('span');
167
- digitSpan.className = 'digit';
168
- if (char === ',') {
169
- digitSpan.textContent = char;
170
- } else {
171
- digitSpan.textContent = char;
172
- digitSpan.classList.add('digit-change');
173
- setTimeout(() => {
174
- digitSpan.classList.remove('digit-change');
175
- }, 500);
176
- }
177
- jackpotElement.appendChild(digitSpan);
178
- });
179
-
180
- // Add decimal part if exists
181
- if (parts[1]) {
182
- const decimalSpan = document.createElement('span');
183
- decimalSpan.textContent = '.' + parts[1];
184
- jackpotElement.appendChild(decimalSpan);
185
- }
186
- }
187
 
188
- // Simulate jackpot increasing
189
- setInterval(() => {
190
- // Random increment between 0.10 and 5.00
191
- const increment = Math.random() * 4.9 + 0.1;
192
- jackpot += increment;
193
- updateJackpotDisplay(jackpot);
194
-
195
- // Update progress bar (0-100% in 5 minutes)
196
- const progress = (Date.now() % 300000) / 300000 * 100;
197
- progressBar.style.width = `${progress}%`;
198
- }, 1000);
199
 
200
- // Countdown timer (resets every 5 minutes)
201
- function updateCountdown() {
202
- const now = new Date();
203
- const minutes = 4 - (now.getMinutes() % 5);
204
- const seconds = 59 - now.getSeconds();
205
-
206
- countdownElement.textContent =
207
- `${minutes.toString().padStart(2, '0')}:${seconds.toString().padStart(2, '0')}`;
208
  }
209
-
210
- setInterval(updateCountdown, 1000);
211
- updateCountdown();
212
-
213
- // Occasionally add a bigger jump to the jackpot
214
- setInterval(() => {
215
- if (Math.random() > 0.7) {
216
- jackpot += Math.random() * 50 + 10;
217
- updateJackpotDisplay(jackpot);
218
-
219
- // Flash animation
220
- const container = document.querySelector('.jackpot-container');
221
- container.classList.add('bg-yellow-500', 'bg-opacity-30');
222
- setTimeout(() => {
223
- container.classList.remove('bg-yellow-500', 'bg-opacity-30');
224
- }, 500);
225
- }
226
- }, 10000);
227
- });
228
  </script>
229
  <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=ProjectGenesis/sticky-jackpot-counter" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
230
  </html>
 
3
  <head>
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Jackpot Counter</title>
7
  <script src="https://cdn.tailwindcss.com"></script>
8
+ <script>
9
+ tailwind.config = {
10
+ theme: {
11
+ extend: {
12
+ fontFamily: {
13
+ poppins: ['Poppins', 'sans-serif'],
14
+ orbitron: ['Orbitron', 'sans-serif'],
15
+ },
16
+ animation: {
17
+ 'blink': 'blink 1s infinite',
18
+ 'pulse-gold': 'pulse-gold 2s infinite',
19
+ 'spin-slow': 'spin 3s linear infinite',
20
+ },
21
+ keyframes: {
22
+ blink: {
23
+ '0%, 100%': { opacity: '1' },
24
+ '50%': { opacity: '0.4' },
25
+ },
26
+ 'pulse-gold': {
27
+ '0%, 100%': { boxShadow: '0 0 0 0 rgba(245, 158, 11, 0.7)' },
28
+ '70%': { boxShadow: '0 0 0 10px rgba(245, 158, 11, 0)' },
29
+ }
30
+ }
31
+ }
32
+ }
33
+ }
34
+ </script>
35
+ <link href="https://fonts.googleapis.com/css2?family=Orbitron:wght@700&family=Poppins:wght@600;700&display=swap" rel="stylesheet">
36
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
37
  <style>
38
+ body {
39
+ font-family: 'Poppins', sans-serif;
40
+ background-color: #0a0e17;
 
 
 
 
 
 
 
 
 
 
41
  }
42
 
43
  .jackpot-container {
44
+ position: fixed;
45
+ top: 0;
46
+ left: 0;
47
+ right: 0;
48
+ z-index: 100;
49
  }
50
 
51
+ .jackpot-inner {
52
+ background: linear-gradient(90deg, #140e13 0%, #2d1e30 50%, #140e13 100%);
53
+ box-shadow: 0 0 30px rgba(175, 0, 100, 0.8);
54
+ border-bottom: 3px solid;
55
+ border-image: linear-gradient(90deg, #f59e0b, #f8d52e, #f59e0b) 1;
56
  }
57
 
58
  .coin {
59
+ background: radial-gradient(circle at 30% 30%, #f8d52e, #b8860b);
60
+ border: 2px solid #f8d52e;
61
+ box-shadow: 0 0 10px rgba(184, 134, 11, 0.7);
62
+ }
63
+
64
+ @keyframes blink {
65
+ 0%, 100% { opacity: 1; }
66
+ 50% { opacity: 0.5; }
67
  }
68
 
69
+ .winning-tick {
70
+ position: absolute;
71
+ background: linear-gradient(90deg, rgba(245,158,11,0), rgba(245,158,11,0.8), rgba(245,158,11,0));
72
+ animation: winning-tick 0.5s ease-out;
73
  }
74
 
75
+ @keyframes winning-tick {
76
+ 0% { transform: translateX(-100%); width: 10px; opacity: 0; }
77
+ 10% { opacity: 1; }
78
+ 90% { opacity: 1; }
79
+ 100% { transform: translateX(100%); width: 100px; opacity: 0; }
80
  }
81
 
82
+ .gold-text {
83
+ color: #ffdc73;
84
+ text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
85
  }
86
  </style>
87
  </head>
88
+ <body class="min-h-screen bg-gray-900 text-white flex items-center justify-center">
89
+ <!-- Jackpot counter at the top -->
90
+ <div class="jackpot-container">
91
+ <div class="jackpot-inner px-4 py-2">
92
+ <div class="max-w-6xl mx-auto flex flex-col items-center justify-center">
93
+ <div class="text-gray-400 font-bold text-sm mb-1">
94
+ GRAND JACKPOT
 
 
 
 
 
 
 
 
 
 
 
 
 
 
95
  </div>
96
 
97
+ <div class="font-orbitron text-xl font-bold tracking-wider gold-text">
98
+ SC <span id="jackpot-counter">58,905.72</span>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
99
  </div>
100
  </div>
101
  </div>
102
  </div>
103
 
104
  <script>
105
+ // Initialize jackpot value
106
+ let jackpot = 58905.72; // Value remains the same, just the display symbol changed
107
+ let counterElement = document.getElementById('jackpot-counter');
108
+ let lastDisplayedValue = jackpot;
109
+
110
+ // Format currency
111
+ function formatCurrency(value) {
112
+ return new Intl.NumberFormat('en-US', {
113
+ minimumFractionDigits: 2,
114
+ maximumFractionDigits: 2
115
+ }).format(value);
116
+ }
117
+
118
+ // Create sparkle effect
119
+ function createSparkle() {
120
+ const jackpotText = document.querySelector('.gold-text').parentElement;
121
+ const sparkle = document.createElement('div');
122
+ sparkle.className = 'winning-tick';
123
+ sparkle.style.height = '2px';
124
+ sparkle.style.top = Math.random() * 30 + 'px';
125
+ jackpotText.appendChild(sparkle);
126
 
127
+ setTimeout(() => {
128
+ sparkle.remove();
129
+ }, 500);
130
+ }
131
+
132
+ // Update the jackpot value
133
+ function updateJackpot() {
134
+ // Add random amount to jackpot (slower increments)
135
+ const increment = Math.random() * 0.5 + 0.05;
136
+ jackpot += increment;
137
 
138
+ // Smoother transition for values
139
+ const displaySpeed = 4; // Higher value makes the transition smoother and slower
140
+ lastDisplayedValue += (jackpot - lastDisplayedValue) / displaySpeed;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
141
 
142
+ // Format and display the value
143
+ counterElement.textContent = formatCurrency(lastDisplayedValue);
 
 
 
 
 
 
 
 
 
144
 
145
+ // Occasionally create a sparkle effect
146
+ if (Math.random() > 0.7) {
147
+ createSparkle();
 
 
 
 
 
148
  }
149
+
150
+ }
151
+
152
+ // Update jackpot less frequently for slower animation
153
+ setInterval(updateJackpot, 150);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
154
  </script>
155
  <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=ProjectGenesis/sticky-jackpot-counter" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
156
  </html>