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

Start the jackpot number at 59,802.80 - Initial Deployment

Browse files
Files changed (2) hide show
  1. README.md +7 -5
  2. index.html +230 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Sticky Jackpot Counter
3
- emoji: 👁
4
- colorFrom: yellow
5
- colorTo: green
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: sticky-jackpot-counter
3
+ emoji: 🐳
4
+ colorFrom: gray
5
+ colorTo: purple
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite
10
  ---
11
 
12
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
index.html CHANGED
@@ -1,19 +1,230 @@
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">
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>