make the Jackpot Counter section smaller - Follow Up Deployment
Browse files- 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>
|
| 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 |
-
|
| 11 |
-
|
| 12 |
-
|
| 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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
}
|
| 28 |
|
| 29 |
-
.jackpot-
|
| 30 |
-
|
|
|
|
|
|
|
|
|
|
| 31 |
}
|
| 32 |
|
| 33 |
.coin {
|
| 34 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
}
|
| 36 |
|
| 37 |
-
.
|
| 38 |
-
|
|
|
|
|
|
|
| 39 |
}
|
| 40 |
|
| 41 |
-
@keyframes
|
| 42 |
-
0%
|
| 43 |
-
|
|
|
|
|
|
|
| 44 |
}
|
| 45 |
|
| 46 |
-
.
|
| 47 |
-
|
| 48 |
-
|
| 49 |
}
|
| 50 |
</style>
|
| 51 |
</head>
|
| 52 |
-
<body class="bg-gray-900
|
| 53 |
-
<!--
|
| 54 |
-
<div class="
|
| 55 |
-
<div class="jackpot-
|
| 56 |
-
<div class="flex flex-col items-center">
|
| 57 |
-
<div class="
|
| 58 |
-
|
| 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="
|
| 76 |
-
|
| 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 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 153 |
|
| 154 |
-
|
| 155 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 156 |
|
| 157 |
-
//
|
| 158 |
-
|
| 159 |
-
|
| 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 |
-
//
|
| 189 |
-
|
| 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 |
-
//
|
| 201 |
-
|
| 202 |
-
|
| 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 |
-
|
| 211 |
-
|
| 212 |
-
|
| 213 |
-
|
| 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>
|