Spaces:
Running
Running
create a money making game which i can play to make real life money - Follow Up Deployment
Browse files- index.html +549 -287
index.html
CHANGED
|
@@ -1,348 +1,610 @@
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
-
<html lang="
|
| 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 |
-
font-family: 'Poppins', sans-serif;
|
| 14 |
-
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
|
| 15 |
-
min-height: 100vh;
|
| 16 |
-
color: white;
|
| 17 |
-
overflow-x: hidden;
|
| 18 |
-
}
|
| 19 |
-
|
| 20 |
-
.card {
|
| 21 |
-
background: rgba(255, 255, 255, 0.1);
|
| 22 |
-
backdrop-filter: blur(10px);
|
| 23 |
-
border-radius: 20px;
|
| 24 |
-
box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
|
| 25 |
-
border: 1px solid rgba(255, 255, 255, 0.18);
|
| 26 |
-
transition: all 0.3s ease;
|
| 27 |
}
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
transform: translateY(-5px);
|
| 31 |
-
box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.5);
|
| 32 |
}
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
transition: all 0.3s ease;
|
| 36 |
-
font-weight: 600;
|
| 37 |
-
letter-spacing: 0.5px;
|
| 38 |
}
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
transform: scale(1.05);
|
| 42 |
}
|
| 43 |
-
|
| 44 |
-
.btn-dare {
|
| 45 |
-
background: linear-gradient(45deg, #ff4d4d, #f957cb);
|
| 46 |
-
}
|
| 47 |
-
|
| 48 |
-
.btn-truth {
|
| 49 |
-
background: linear-gradient(45deg, #4d79ff, #9575cd);
|
| 50 |
-
}
|
| 51 |
-
|
| 52 |
-
.pulse {
|
| 53 |
-
animation: pulse 2s infinite;
|
| 54 |
-
}
|
| 55 |
-
|
| 56 |
@keyframes pulse {
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
}
|
| 60 |
-
50% {
|
| 61 |
-
transform: scale(1.05);
|
| 62 |
-
}
|
| 63 |
-
100% {
|
| 64 |
-
transform: scale(1);
|
| 65 |
-
}
|
| 66 |
}
|
| 67 |
-
|
| 68 |
-
.floating {
|
| 69 |
-
animation: floating 3s ease-in-out infinite;
|
| 70 |
-
}
|
| 71 |
-
|
| 72 |
-
@keyframes floating {
|
| 73 |
-
0% {
|
| 74 |
-
transform: translateY(0px);
|
| 75 |
-
}
|
| 76 |
-
50% {
|
| 77 |
-
transform: translateY(-10px);
|
| 78 |
-
}
|
| 79 |
-
100% {
|
| 80 |
-
transform: translateY(0px);
|
| 81 |
-
}
|
| 82 |
-
}
|
| 83 |
-
|
| 84 |
-
.music-control {
|
| 85 |
-
position: fixed;
|
| 86 |
-
bottom: 20px;
|
| 87 |
-
right: 20px;
|
| 88 |
-
z-index: 100;
|
| 89 |
-
background: rgba(255, 255, 255, 0.2);
|
| 90 |
-
border-radius: 50%;
|
| 91 |
-
width: 50px;
|
| 92 |
-
height: 50px;
|
| 93 |
-
display: flex;
|
| 94 |
-
align-items: center;
|
| 95 |
-
justify-content: center;
|
| 96 |
-
cursor: pointer;
|
| 97 |
-
transition: all 0.3s ease;
|
| 98 |
-
}
|
| 99 |
-
|
| 100 |
-
.music-control:hover {
|
| 101 |
-
background: rgba(255, 255, 255, 0.3);
|
| 102 |
-
transform: scale(1.1);
|
| 103 |
-
}
|
| 104 |
-
|
| 105 |
-
.emoji-rain {
|
| 106 |
-
position: fixed;
|
| 107 |
-
top: 0;
|
| 108 |
-
left: 0;
|
| 109 |
-
width: 100%;
|
| 110 |
-
height: 100%;
|
| 111 |
-
pointer-events: none;
|
| 112 |
-
z-index: 10;
|
| 113 |
-
}
|
| 114 |
-
|
| 115 |
-
.emoji {
|
| 116 |
position: absolute;
|
| 117 |
-
|
| 118 |
-
animation: fall linear forwards;
|
| 119 |
}
|
| 120 |
-
|
| 121 |
-
@keyframes fall {
|
| 122 |
to {
|
| 123 |
-
transform:
|
|
|
|
| 124 |
}
|
| 125 |
}
|
| 126 |
</style>
|
| 127 |
</head>
|
| 128 |
-
<body>
|
| 129 |
-
<!-- Audio Elements -->
|
| 130 |
-
<audio id="backgroundMusic" loop>
|
| 131 |
-
<source src="https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3" type="audio/mpeg">
|
| 132 |
-
</audio>
|
| 133 |
-
<audio id="truthSound">
|
| 134 |
-
<source src="https://www.soundjay.com/buttons/sounds/button-09.mp3" type="audio/mpeg">
|
| 135 |
-
</audio>
|
| 136 |
-
<audio id="dareSound">
|
| 137 |
-
<source src="https://www.soundjay.com/buttons/sounds/button-10.mp3" type="audio/mpeg">
|
| 138 |
-
</audio>
|
| 139 |
-
|
| 140 |
-
<!-- Music Control -->
|
| 141 |
-
<div class="music-control" id="musicToggle">
|
| 142 |
-
<i class="fas fa-music text-white text-xl"></i>
|
| 143 |
-
</div>
|
| 144 |
-
|
| 145 |
-
<!-- Emoji Rain Container -->
|
| 146 |
-
<div class="emoji-rain" id="emojiRain"></div>
|
| 147 |
-
|
| 148 |
<div class="container mx-auto px-4 py-8">
|
| 149 |
-
<
|
| 150 |
-
|
| 151 |
-
<div class="
|
| 152 |
-
<
|
| 153 |
-
|
| 154 |
-
</h1>
|
| 155 |
-
<p class="text-lg md:text-xl text-gray-300">Le jeu qui va chauffer votre soirée ! 🍸😈</p>
|
| 156 |
</div>
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 166 |
</div>
|
| 167 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 168 |
|
| 169 |
-
<div class="
|
| 170 |
-
<
|
| 171 |
-
|
| 172 |
-
<
|
| 173 |
-
Vérité 😏
|
| 174 |
-
</button>
|
| 175 |
-
<button id="dareBtn" class="btn btn-dare text-white py-3 px-6 rounded-full text-lg md:text-xl pulse">
|
| 176 |
-
Action 🍑
|
| 177 |
-
</button>
|
| 178 |
</div>
|
|
|
|
|
|
|
| 179 |
</div>
|
| 180 |
|
| 181 |
-
<div
|
| 182 |
-
<div class="
|
| 183 |
-
<
|
| 184 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 185 |
</div>
|
| 186 |
-
<button id="nextBtn" class="btn bg-gradient-to-r from-yellow-500 to-orange-500 text-white py-2 px-6 rounded-full">
|
| 187 |
-
Suivant ➡️
|
| 188 |
-
</button>
|
| 189 |
</div>
|
| 190 |
</div>
|
| 191 |
</div>
|
| 192 |
-
|
| 193 |
-
|
| 194 |
-
|
| 195 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 196 |
</div>
|
| 197 |
</div>
|
| 198 |
</div>
|
| 199 |
-
|
| 200 |
<script>
|
| 201 |
-
// Game
|
| 202 |
-
|
| 203 |
-
|
| 204 |
-
|
| 205 |
-
|
| 206 |
-
|
| 207 |
-
|
| 208 |
-
|
| 209 |
-
|
| 210 |
-
|
| 211 |
-
|
| 212 |
-
|
| 213 |
-
|
| 214 |
-
|
| 215 |
-
|
| 216 |
-
|
| 217 |
-
|
| 218 |
-
|
| 219 |
-
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
|
| 223 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 224 |
|
| 225 |
-
|
| 226 |
-
|
| 227 |
-
|
| 228 |
-
|
| 229 |
-
|
| 230 |
-
|
| 231 |
-
|
| 232 |
-
|
| 233 |
-
|
| 234 |
-
|
| 235 |
-
|
| 236 |
-
|
| 237 |
-
|
| 238 |
-
|
| 239 |
-
|
| 240 |
-
"Chante une chanson d'amour en regardant profondément dans les yeux de quelqu'un 🎤",
|
| 241 |
-
"Fais un compliment osé à chaque personne présente 🥵",
|
| 242 |
-
"Mets-toi à quatre pattes et fais le chien pendant 30 secondes 🐕",
|
| 243 |
-
"Fais une imitation de ton animal préféré en mode sexy 🦁",
|
| 244 |
-
"Choisis quelqu'un pour te maquiller les yeux bandés 👁️",
|
| 245 |
-
"Fais un massage du dos à la personne de ton choix pendant 2 minutes ✋"
|
| 246 |
-
];
|
| 247 |
|
| 248 |
-
|
| 249 |
-
|
| 250 |
-
|
| 251 |
-
|
| 252 |
-
|
| 253 |
-
|
| 254 |
-
|
| 255 |
-
|
| 256 |
-
const backgroundMusic = document.getElementById('backgroundMusic');
|
| 257 |
-
const truthSound = document.getElementById('truthSound');
|
| 258 |
-
const dareSound = document.getElementById('dareSound');
|
| 259 |
-
const emojiRain = document.getElementById('emojiRain');
|
| 260 |
|
| 261 |
-
|
| 262 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 263 |
|
| 264 |
-
|
| 265 |
-
|
| 266 |
-
|
| 267 |
-
|
|
|
|
|
|
|
|
|
|
| 268 |
} else {
|
| 269 |
-
|
| 270 |
-
musicToggle.innerHTML = '<i class="fas fa-pause text-white text-xl"></i>';
|
| 271 |
}
|
| 272 |
-
musicPlaying = !musicPlaying;
|
| 273 |
});
|
| 274 |
|
| 275 |
-
|
| 276 |
-
|
| 277 |
-
|
| 278 |
-
|
| 279 |
-
|
| 280 |
-
|
| 281 |
-
|
| 282 |
-
|
| 283 |
-
emojiElement.style.opacity = Math.random();
|
| 284 |
-
emojiElement.style.fontSize = Math.random() * 20 + 10 + 'px';
|
| 285 |
-
|
| 286 |
-
emojiRain.appendChild(emojiElement);
|
| 287 |
-
|
| 288 |
-
// Remove emoji after animation
|
| 289 |
-
setTimeout(() => {
|
| 290 |
-
emojiElement.remove();
|
| 291 |
-
}, 5000);
|
| 292 |
}
|
| 293 |
-
}
|
| 294 |
|
| 295 |
-
|
| 296 |
-
|
| 297 |
-
|
| 298 |
-
|
|
|
|
|
|
|
| 299 |
} else {
|
| 300 |
-
|
| 301 |
}
|
| 302 |
-
}
|
| 303 |
|
| 304 |
-
//
|
| 305 |
-
|
| 306 |
-
|
| 307 |
-
|
|
|
|
| 308 |
|
| 309 |
-
|
| 310 |
-
|
| 311 |
|
| 312 |
-
|
| 313 |
-
|
| 314 |
-
resultContainer.classList.remove('hidden');
|
| 315 |
});
|
| 316 |
|
| 317 |
-
//
|
| 318 |
-
|
| 319 |
-
|
| 320 |
-
|
| 321 |
-
|
| 322 |
-
|
| 323 |
-
|
| 324 |
-
|
| 325 |
-
truthBtn.classList.add('hidden');
|
| 326 |
-
dareBtn.classList.add('hidden');
|
| 327 |
-
resultContainer.classList.remove('hidden');
|
| 328 |
});
|
| 329 |
|
| 330 |
-
|
| 331 |
-
|
| 332 |
-
truthBtn.classList.remove('hidden');
|
| 333 |
-
dareBtn.classList.remove('hidden');
|
| 334 |
-
resultContainer.classList.add('hidden');
|
| 335 |
});
|
| 336 |
|
| 337 |
-
|
| 338 |
-
|
| 339 |
-
|
| 340 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 341 |
|
| 342 |
-
//
|
| 343 |
-
|
| 344 |
-
|
| 345 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 346 |
</script>
|
| 347 |
<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=Mikeyspice/game" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 348 |
</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>Coin Collector Pro - Earn Real Rewards</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 bounce {
|
| 11 |
+
0%, 100% { transform: translateY(0); }
|
| 12 |
+
50% { transform: translateY(-20px); }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
}
|
| 14 |
+
.coin-animation {
|
| 15 |
+
animation: bounce 1s infinite;
|
|
|
|
|
|
|
| 16 |
}
|
| 17 |
+
.progress-bar {
|
| 18 |
+
transition: width 0.5s ease-in-out;
|
|
|
|
|
|
|
|
|
|
| 19 |
}
|
| 20 |
+
.jackpot-light {
|
| 21 |
+
animation: pulse 1.5s infinite alternate;
|
|
|
|
| 22 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
@keyframes pulse {
|
| 24 |
+
from { opacity: 0.5; }
|
| 25 |
+
to { opacity: 1; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
}
|
| 27 |
+
.floating-coin {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
position: absolute;
|
| 29 |
+
animation: float linear forwards;
|
|
|
|
| 30 |
}
|
| 31 |
+
@keyframes float {
|
|
|
|
| 32 |
to {
|
| 33 |
+
transform: translate(var(--end-x), var(--end-y)) rotate(360deg);
|
| 34 |
+
opacity: 0;
|
| 35 |
}
|
| 36 |
}
|
| 37 |
</style>
|
| 38 |
</head>
|
| 39 |
+
<body class="bg-gray-900 text-white min-h-screen">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
<div class="container mx-auto px-4 py-8">
|
| 41 |
+
<!-- Header -->
|
| 42 |
+
<header class="flex justify-between items-center mb-8">
|
| 43 |
+
<div class="flex items-center">
|
| 44 |
+
<i class="fas fa-coins text-yellow-400 text-3xl mr-2"></i>
|
| 45 |
+
<h1 class="text-2xl font-bold bg-gradient-to-r from-yellow-400 to-yellow-600 bg-clip-text text-transparent">Coin Collector Pro</h1>
|
|
|
|
|
|
|
| 46 |
</div>
|
| 47 |
+
<div class="flex items-center space-x-4">
|
| 48 |
+
<div class="bg-gray-800 px-4 py-2 rounded-lg flex items-center">
|
| 49 |
+
<span class="text-yellow-400 font-bold mr-2" id="balance">0</span>
|
| 50 |
+
<i class="fas fa-coins text-yellow-400"></i>
|
| 51 |
+
</div>
|
| 52 |
+
<button id="cashout-btn" class="bg-green-600 hover:bg-green-700 px-4 py-2 rounded-lg font-semibold transition">Cash Out</button>
|
| 53 |
+
</div>
|
| 54 |
+
</header>
|
| 55 |
+
|
| 56 |
+
<!-- Main Game Area -->
|
| 57 |
+
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
|
| 58 |
+
<!-- Left Panel - Game Stats -->
|
| 59 |
+
<div class="bg-gray-800 rounded-xl p-6">
|
| 60 |
+
<h2 class="text-xl font-bold mb-4 text-yellow-400">Your Stats</h2>
|
| 61 |
+
<div class="space-y-4">
|
| 62 |
+
<div>
|
| 63 |
+
<p class="text-gray-400">Total Collected</p>
|
| 64 |
+
<p class="text-2xl font-bold text-yellow-400" id="total-collected">0 coins</p>
|
| 65 |
+
</div>
|
| 66 |
+
<div>
|
| 67 |
+
<p class="text-gray-400">Current Multiplier</p>
|
| 68 |
+
<p class="text-2xl font-bold text-purple-400" id="multiplier">1x</p>
|
| 69 |
+
</div>
|
| 70 |
+
<div>
|
| 71 |
+
<p class="text-gray-400">Next Reward</p>
|
| 72 |
+
<div class="mt-2">
|
| 73 |
+
<div class="w-full bg-gray-700 rounded-full h-4">
|
| 74 |
+
<div id="progress-bar" class="progress-bar bg-yellow-500 h-4 rounded-full" style="width: 0%"></div>
|
| 75 |
+
</div>
|
| 76 |
+
<p class="text-sm mt-1 text-gray-300" id="next-reward">50 coins until next reward</p>
|
| 77 |
</div>
|
| 78 |
</div>
|
| 79 |
+
</div>
|
| 80 |
+
|
| 81 |
+
<div class="mt-8">
|
| 82 |
+
<h2 class="text-xl font-bold mb-4 text-yellow-400">Upgrades</h2>
|
| 83 |
+
<div class="space-y-3">
|
| 84 |
+
<div class="bg-gray-700 p-3 rounded-lg flex justify-between items-center">
|
| 85 |
+
<div>
|
| 86 |
+
<p class="font-semibold">Auto-Clicker</p>
|
| 87 |
+
<p class="text-sm text-gray-300">Earns 1 coin every 5 seconds</p>
|
| 88 |
+
</div>
|
| 89 |
+
<button id="buy-autoclicker" class="bg-blue-600 hover:bg-blue-700 px-3 py-1 rounded text-sm">Buy (100 coins)</button>
|
| 90 |
+
</div>
|
| 91 |
+
<div class="bg-gray-700 p-3 rounded-lg flex justify-between items-center">
|
| 92 |
+
<div>
|
| 93 |
+
<p class="font-semibold">Coin Magnet</p>
|
| 94 |
+
<p class="text-sm text-gray-300">+20% coin value</p>
|
| 95 |
+
</div>
|
| 96 |
+
<button id="buy-magnet" class="bg-blue-600 hover:bg-blue-700 px-3 py-1 rounded text-sm">Buy (250 coins)</button>
|
| 97 |
+
</div>
|
| 98 |
+
<div class="bg-gray-700 p-3 rounded-lg flex justify-between items-center">
|
| 99 |
+
<div>
|
| 100 |
+
<p class="font-semibold">Lucky Charm</p>
|
| 101 |
+
<p class="text-sm text-gray-300">+5% chance for bonus coins</p>
|
| 102 |
+
</div>
|
| 103 |
+
<button id="buy-luck" class="bg-blue-600 hover:bg-blue-700 px-3 py-1 rounded text-sm">Buy (500 coins)</button>
|
| 104 |
+
</div>
|
| 105 |
+
</div>
|
| 106 |
+
</div>
|
| 107 |
+
</div>
|
| 108 |
+
|
| 109 |
+
<!-- Center Panel - Main Game -->
|
| 110 |
+
<div class="bg-gray-800 rounded-xl p-6 flex flex-col items-center justify-center relative overflow-hidden" style="min-height: 400px;">
|
| 111 |
+
<div id="jackpot-container" class="hidden absolute top-0 left-0 right-0 bottom-0 flex items-center justify-center bg-black bg-opacity-80 z-10">
|
| 112 |
+
<div class="text-center">
|
| 113 |
+
<div class="jackpot-light text-5xl font-bold text-yellow-400 mb-4">JACKPOT!</div>
|
| 114 |
+
<p class="text-2xl mb-4">You won <span id="jackpot-amount" class="text-yellow-400">1000</span> coins!</p>
|
| 115 |
+
<button id="claim-jackpot" class="bg-yellow-500 hover:bg-yellow-600 px-6 py-3 rounded-lg font-bold text-black">CLAIM</button>
|
| 116 |
+
</div>
|
| 117 |
+
</div>
|
| 118 |
+
|
| 119 |
+
<div id="coin" class="coin-animation w-24 h-24 bg-yellow-400 rounded-full flex items-center justify-center cursor-pointer transform hover:scale-110 transition-transform shadow-lg shadow-yellow-500/30">
|
| 120 |
+
<i class="fas fa-coins text-4xl text-yellow-600"></i>
|
| 121 |
+
</div>
|
| 122 |
+
<p class="mt-4 text-gray-300">Click the coin to collect!</p>
|
| 123 |
+
|
| 124 |
+
<div id="bonus-coins" class="hidden mt-4 p-3 bg-yellow-900 bg-opacity-30 rounded-lg text-center">
|
| 125 |
+
<p class="text-yellow-300 font-semibold">Bonus: <span id="bonus-amount">0</span> coins!</p>
|
| 126 |
+
</div>
|
| 127 |
+
</div>
|
| 128 |
+
|
| 129 |
+
<!-- Right Panel - Rewards & Cash Out -->
|
| 130 |
+
<div class="bg-gray-800 rounded-xl p-6">
|
| 131 |
+
<h2 class="text-xl font-bold mb-4 text-yellow-400">Rewards</h2>
|
| 132 |
+
<div class="space-y-4">
|
| 133 |
+
<div class="bg-gray-700 p-4 rounded-lg">
|
| 134 |
+
<div class="flex justify-between items-center mb-2">
|
| 135 |
+
<p class="font-semibold">Basic Reward</p>
|
| 136 |
+
<span class="bg-yellow-600 text-xs px-2 py-1 rounded">50 coins</span>
|
| 137 |
+
</div>
|
| 138 |
+
<p class="text-sm text-gray-300">Redeem for a $0.50 Amazon gift card</p>
|
| 139 |
+
<button id="redeem-basic" class="w-full mt-3 bg-yellow-600 hover:bg-yellow-700 py-2 rounded text-sm font-medium">Redeem</button>
|
| 140 |
+
</div>
|
| 141 |
|
| 142 |
+
<div class="bg-gray-700 p-4 rounded-lg">
|
| 143 |
+
<div class="flex justify-between items-center mb-2">
|
| 144 |
+
<p class="font-semibold">Premium Reward</p>
|
| 145 |
+
<span class="bg-purple-600 text-xs px-2 py-1 rounded">250 coins</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 146 |
</div>
|
| 147 |
+
<p class="text-sm text-gray-300">Redeem for a $2.50 PayPal cash</p>
|
| 148 |
+
<button id="redeem-premium" class="w-full mt-3 bg-purple-600 hover:bg-purple-700 py-2 rounded text-sm font-medium">Redeem</button>
|
| 149 |
</div>
|
| 150 |
|
| 151 |
+
<div class="bg-gray-700 p-4 rounded-lg">
|
| 152 |
+
<div class="flex justify-between items-center mb-2">
|
| 153 |
+
<p class="font-semibold">Ultimate Reward</p>
|
| 154 |
+
<span class="bg-red-600 text-xs px-2 py-1 rounded">1000 coins</span>
|
| 155 |
+
</div>
|
| 156 |
+
<p class="text-sm text-gray-300">Redeem for a $10 Steam gift card</p>
|
| 157 |
+
<button id="redeem-ultimate" class="w-full mt-3 bg-red-600 hover:bg-red-700 py-2 rounded text-sm font-medium">Redeem</button>
|
| 158 |
+
</div>
|
| 159 |
+
</div>
|
| 160 |
+
|
| 161 |
+
<div class="mt-8">
|
| 162 |
+
<h2 class="text-xl font-bold mb-4 text-yellow-400">Refer Friends</h2>
|
| 163 |
+
<div class="bg-gray-700 p-4 rounded-lg">
|
| 164 |
+
<p class="text-sm mb-3">Earn 10% of what your friends collect!</p>
|
| 165 |
+
<div class="flex">
|
| 166 |
+
<input type="text" id="referral-link" value="https://coincollectorpro.com/ref=user123" readonly class="flex-grow bg-gray-600 text-white px-3 py-2 rounded-l text-sm">
|
| 167 |
+
<button id="copy-referral" class="bg-blue-600 hover:bg-blue-700 px-3 py-2 rounded-r text-sm">Copy</button>
|
| 168 |
</div>
|
|
|
|
|
|
|
|
|
|
| 169 |
</div>
|
| 170 |
</div>
|
| 171 |
</div>
|
| 172 |
+
</div>
|
| 173 |
+
|
| 174 |
+
<!-- Daily Bonus Modal -->
|
| 175 |
+
<div id="daily-modal" class="hidden fixed inset-0 bg-black bg-opacity-70 flex items-center justify-center z-50">
|
| 176 |
+
<div class="bg-gray-800 rounded-xl p-8 max-w-md w-full mx-4">
|
| 177 |
+
<div class="text-center">
|
| 178 |
+
<i class="fas fa-gift text-5xl text-yellow-400 mb-4"></i>
|
| 179 |
+
<h3 class="text-2xl font-bold mb-2">Daily Bonus!</h3>
|
| 180 |
+
<p class="mb-6">Come back every day to claim your bonus coins!</p>
|
| 181 |
+
<div class="bg-gray-700 p-4 rounded-lg mb-6">
|
| 182 |
+
<p class="text-sm text-gray-300 mb-1">Your streak: <span id="streak-days" class="font-bold text-yellow-400">1</span> days</p>
|
| 183 |
+
<p class="text-xl font-bold text-yellow-400">+<span id="daily-amount">50</span> coins!</p>
|
| 184 |
+
</div>
|
| 185 |
+
<button id="claim-daily" class="w-full bg-yellow-500 hover:bg-yellow-600 py-3 rounded-lg font-bold text-black">CLAIM BONUS</button>
|
| 186 |
+
</div>
|
| 187 |
+
</div>
|
| 188 |
+
</div>
|
| 189 |
+
|
| 190 |
+
<!-- Cash Out Modal -->
|
| 191 |
+
<div id="cashout-modal" class="hidden fixed inset-0 bg-black bg-opacity-70 flex items-center justify-center z-50">
|
| 192 |
+
<div class="bg-gray-800 rounded-xl p-8 max-w-md w-full mx-4">
|
| 193 |
+
<div class="text-center">
|
| 194 |
+
<i class="fas fa-wallet text-4xl text-green-400 mb-4"></i>
|
| 195 |
+
<h3 class="text-2xl font-bold mb-4">Cash Out</h3>
|
| 196 |
+
|
| 197 |
+
<div class="mb-6">
|
| 198 |
+
<label for="cashout-amount" class="block text-left mb-2">Amount to cash out:</label>
|
| 199 |
+
<input type="number" id="cashout-amount" class="w-full bg-gray-700 border border-gray-600 rounded px-4 py-2 mb-2" placeholder="Enter amount">
|
| 200 |
+
<p class="text-sm text-gray-400">Available balance: <span id="available-balance" class="text-yellow-400">0</span> coins</p>
|
| 201 |
+
</div>
|
| 202 |
+
|
| 203 |
+
<div class="mb-6">
|
| 204 |
+
<label for="payment-method" class="block text-left mb-2">Payment method:</label>
|
| 205 |
+
<select id="payment-method" class="w-full bg-gray-700 border border-gray-600 rounded px-4 py-2">
|
| 206 |
+
<option value="paypal">PayPal</option>
|
| 207 |
+
<option value="amazon">Amazon Gift Card</option>
|
| 208 |
+
<option value="steam">Steam Wallet</option>
|
| 209 |
+
</select>
|
| 210 |
+
</div>
|
| 211 |
+
|
| 212 |
+
<div class="flex space-x-3">
|
| 213 |
+
<button id="cancel-cashout" class="flex-1 bg-gray-600 hover:bg-gray-700 py-2 rounded">Cancel</button>
|
| 214 |
+
<button id="confirm-cashout" class="flex-1 bg-green-600 hover:bg-green-700 py-2 rounded font-semibold">Confirm</button>
|
| 215 |
+
</div>
|
| 216 |
+
</div>
|
| 217 |
</div>
|
| 218 |
</div>
|
| 219 |
</div>
|
| 220 |
+
|
| 221 |
<script>
|
| 222 |
+
// Game State
|
| 223 |
+
let state = {
|
| 224 |
+
balance: 0,
|
| 225 |
+
totalCollected: 0,
|
| 226 |
+
multiplier: 1,
|
| 227 |
+
progress: 0,
|
| 228 |
+
nextRewardAt: 50,
|
| 229 |
+
upgrades: {
|
| 230 |
+
autoClicker: 0,
|
| 231 |
+
coinMagnet: 0,
|
| 232 |
+
luckyCharm: 0
|
| 233 |
+
},
|
| 234 |
+
lastPlayed: localStorage.getItem('lastPlayed') || null,
|
| 235 |
+
streak: parseInt(localStorage.getItem('streak')) || 0
|
| 236 |
+
};
|
| 237 |
+
|
| 238 |
+
// DOM Elements
|
| 239 |
+
const coin = document.getElementById('coin');
|
| 240 |
+
const balanceEl = document.getElementById('balance');
|
| 241 |
+
const totalCollectedEl = document.getElementById('total-collected');
|
| 242 |
+
const multiplierEl = document.getElementById('multiplier');
|
| 243 |
+
const progressBar = document.getElementById('progress-bar');
|
| 244 |
+
const nextRewardEl = document.getElementById('next-reward');
|
| 245 |
+
const bonusCoinsEl = document.getElementById('bonus-coins');
|
| 246 |
+
const bonusAmountEl = document.getElementById('bonus-amount');
|
| 247 |
+
const jackpotContainer = document.getElementById('jackpot-container');
|
| 248 |
+
const jackpotAmountEl = document.getElementById('jackpot-amount');
|
| 249 |
+
const dailyModal = document.getElementById('daily-modal');
|
| 250 |
+
const streakDaysEl = document.getElementById('streak-days');
|
| 251 |
+
const dailyAmountEl = document.getElementById('daily-amount');
|
| 252 |
+
const cashoutModal = document.getElementById('cashout-modal');
|
| 253 |
+
const availableBalanceEl = document.getElementById('available-balance');
|
| 254 |
+
const cashoutAmountEl = document.getElementById('cashout-amount');
|
| 255 |
+
|
| 256 |
+
// Initialize game
|
| 257 |
+
function initGame() {
|
| 258 |
+
// Load saved state
|
| 259 |
+
const savedState = localStorage.getItem('gameState');
|
| 260 |
+
if (savedState) {
|
| 261 |
+
state = JSON.parse(savedState);
|
| 262 |
+
}
|
| 263 |
+
|
| 264 |
+
updateUI();
|
| 265 |
+
|
| 266 |
+
// Check for daily bonus
|
| 267 |
+
checkDailyBonus();
|
| 268 |
+
|
| 269 |
+
// Set up auto-clicker
|
| 270 |
+
if (state.upgrades.autoClicker > 0) {
|
| 271 |
+
setInterval(autoCollect, 5000);
|
| 272 |
+
}
|
| 273 |
+
}
|
| 274 |
+
|
| 275 |
+
// Update all UI elements
|
| 276 |
+
function updateUI() {
|
| 277 |
+
balanceEl.textContent = state.balance;
|
| 278 |
+
totalCollectedEl.textContent = state.totalCollected + ' coins';
|
| 279 |
+
multiplierEl.textContent = state.multiplier.toFixed(1) + 'x';
|
| 280 |
+
|
| 281 |
+
const progressPercent = (state.progress / state.nextRewardAt) * 100;
|
| 282 |
+
progressBar.style.width = `${progressPercent}%`;
|
| 283 |
+
|
| 284 |
+
const remaining = state.nextRewardAt - state.progress;
|
| 285 |
+
nextRewardEl.textContent = `${remaining} coins until next reward`;
|
| 286 |
+
}
|
| 287 |
+
|
| 288 |
+
// Collect coins
|
| 289 |
+
function collectCoins() {
|
| 290 |
+
// Base coin value
|
| 291 |
+
let coins = 1;
|
| 292 |
+
|
| 293 |
+
// Apply multiplier
|
| 294 |
+
coins *= state.multiplier;
|
| 295 |
+
|
| 296 |
+
// Apply coin magnet bonus
|
| 297 |
+
if (state.upgrades.coinMagnet > 0) {
|
| 298 |
+
coins *= 1 + (0.2 * state.upgrades.coinMagnet);
|
| 299 |
+
}
|
| 300 |
+
|
| 301 |
+
// Round to nearest integer
|
| 302 |
+
coins = Math.round(coins);
|
| 303 |
+
|
| 304 |
+
// Add to balance
|
| 305 |
+
state.balance += coins;
|
| 306 |
+
state.totalCollected += coins;
|
| 307 |
+
state.progress += coins;
|
| 308 |
+
|
| 309 |
+
// Check for bonus
|
| 310 |
+
checkForBonus(coins);
|
| 311 |
+
|
| 312 |
+
// Check for reward threshold
|
| 313 |
+
if (state.progress >= state.nextRewardAt) {
|
| 314 |
+
claimReward();
|
| 315 |
+
}
|
| 316 |
+
|
| 317 |
+
// Save state and update UI
|
| 318 |
+
saveState();
|
| 319 |
+
updateUI();
|
| 320 |
+
|
| 321 |
+
// Create floating coin animation
|
| 322 |
+
createFloatingCoin();
|
| 323 |
+
}
|
| 324 |
+
|
| 325 |
+
// Create floating coin animation
|
| 326 |
+
function createFloatingCoin() {
|
| 327 |
+
const coin = document.createElement('div');
|
| 328 |
+
coin.className = 'floating-coin text-yellow-400';
|
| 329 |
+
coin.innerHTML = '<i class="fas fa-coins"></i>';
|
| 330 |
+
|
| 331 |
+
// Random start position near the clickable coin
|
| 332 |
+
const startX = Math.random() * 100 - 50;
|
| 333 |
+
const startY = Math.random() * 100 - 50;
|
| 334 |
+
|
| 335 |
+
// Random end position towards the balance display
|
| 336 |
+
const endX = (Math.random() * 200 - 100) + 200;
|
| 337 |
+
const endY = Math.random() * -100 - 50;
|
| 338 |
+
|
| 339 |
+
coin.style.left = `calc(50% + ${startX}px)`;
|
| 340 |
+
coin.style.top = `calc(50% + ${startY}px)`;
|
| 341 |
+
coin.style.setProperty('--end-x', `${endX}px`);
|
| 342 |
+
coin.style.setProperty('--end-y', `${endY}px`);
|
| 343 |
+
coin.style.fontSize = `${Math.random() * 10 + 14}px`;
|
| 344 |
+
|
| 345 |
+
document.querySelector('#coin').parentElement.appendChild(coin);
|
| 346 |
+
|
| 347 |
+
// Remove after animation
|
| 348 |
+
setTimeout(() => {
|
| 349 |
+
coin.remove();
|
| 350 |
+
}, 1000);
|
| 351 |
+
}
|
| 352 |
+
|
| 353 |
+
// Check for random bonus
|
| 354 |
+
function checkForBonus(baseAmount) {
|
| 355 |
+
// 10% chance + 5% per lucky charm upgrade
|
| 356 |
+
const bonusChance = 0.1 + (0.05 * state.upgrades.luckyCharm);
|
| 357 |
+
|
| 358 |
+
if (Math.random() < bonusChance) {
|
| 359 |
+
const bonus = Math.floor(baseAmount * (1 + Math.random() * 2));
|
| 360 |
+
state.balance += bonus;
|
| 361 |
+
state.totalCollected += bonus;
|
| 362 |
+
|
| 363 |
+
// Show bonus notification
|
| 364 |
+
bonusAmountEl.textContent = bonus;
|
| 365 |
+
bonusCoinsEl.classList.remove('hidden');
|
| 366 |
+
|
| 367 |
+
// Hide after 3 seconds
|
| 368 |
+
setTimeout(() => {
|
| 369 |
+
bonusCoinsEl.classList.add('hidden');
|
| 370 |
+
}, 3000);
|
| 371 |
+
}
|
| 372 |
+
}
|
| 373 |
+
|
| 374 |
+
// Claim reward when progress threshold is reached
|
| 375 |
+
function claimReward() {
|
| 376 |
+
// Increase multiplier
|
| 377 |
+
state.multiplier += 0.1;
|
| 378 |
+
|
| 379 |
+
// Increase next reward threshold
|
| 380 |
+
state.nextRewardAt = Math.floor(state.nextRewardAt * 1.5);
|
| 381 |
+
|
| 382 |
+
// Reset progress
|
| 383 |
+
state.progress = 0;
|
| 384 |
+
|
| 385 |
+
// 5% chance for jackpot
|
| 386 |
+
if (Math.random() < 0.05) {
|
| 387 |
+
const jackpot = Math.floor(state.nextRewardAt * 5);
|
| 388 |
+
jackpotAmountEl.textContent = jackpot;
|
| 389 |
+
jackpotContainer.classList.remove('hidden');
|
| 390 |
+
|
| 391 |
+
// Disable clicking while jackpot is shown
|
| 392 |
+
coin.style.pointerEvents = 'none';
|
| 393 |
+
}
|
| 394 |
+
}
|
| 395 |
+
|
| 396 |
+
// Auto-collect coins (for auto-clicker upgrade)
|
| 397 |
+
function autoCollect() {
|
| 398 |
+
const coins = state.upgrades.autoClicker;
|
| 399 |
+
if (coins > 0) {
|
| 400 |
+
state.balance += coins;
|
| 401 |
+
state.totalCollected += coins;
|
| 402 |
+
state.progress += coins;
|
| 403 |
+
|
| 404 |
+
if (state.progress >= state.nextRewardAt) {
|
| 405 |
+
claimReward();
|
| 406 |
+
}
|
| 407 |
+
|
| 408 |
+
saveState();
|
| 409 |
+
updateUI();
|
| 410 |
+
}
|
| 411 |
+
}
|
| 412 |
+
|
| 413 |
+
// Check for daily bonus eligibility
|
| 414 |
+
function checkDailyBonus() {
|
| 415 |
+
const today = new Date().toDateString();
|
| 416 |
+
|
| 417 |
+
if (state.lastPlayed !== today) {
|
| 418 |
+
// Calculate streak
|
| 419 |
+
const yesterday = new Date();
|
| 420 |
+
yesterday.setDate(yesterday.getDate() - 1);
|
| 421 |
+
|
| 422 |
+
if (state.lastPlayed === yesterday.toDateString()) {
|
| 423 |
+
state.streak++;
|
| 424 |
+
} else if (state.lastPlayed !== today) {
|
| 425 |
+
state.streak = 1;
|
| 426 |
+
}
|
| 427 |
+
|
| 428 |
+
// Calculate bonus amount (50 coins + 10 per streak day)
|
| 429 |
+
const bonusAmount = 50 + (10 * state.streak);
|
| 430 |
+
|
| 431 |
+
// Update modal
|
| 432 |
+
streakDaysEl.textContent = state.streak;
|
| 433 |
+
dailyAmountEl.textContent = bonusAmount;
|
| 434 |
+
|
| 435 |
+
// Show modal
|
| 436 |
+
dailyModal.classList.remove('hidden');
|
| 437 |
+
|
| 438 |
+
// Update last played date
|
| 439 |
+
state.lastPlayed = today;
|
| 440 |
+
localStorage.setItem('lastPlayed', today);
|
| 441 |
+
localStorage.setItem('streak', state.streak);
|
| 442 |
+
}
|
| 443 |
+
}
|
| 444 |
+
|
| 445 |
+
// Claim daily bonus
|
| 446 |
+
function claimDailyBonus() {
|
| 447 |
+
const bonusAmount = parseInt(dailyAmountEl.textContent);
|
| 448 |
+
state.balance += bonusAmount;
|
| 449 |
+
state.totalCollected += bonusAmount;
|
| 450 |
+
state.progress += bonusAmount;
|
| 451 |
+
|
| 452 |
+
if (state.progress >= state.nextRewardAt) {
|
| 453 |
+
claimReward();
|
| 454 |
+
}
|
| 455 |
+
|
| 456 |
+
saveState();
|
| 457 |
+
updateUI();
|
| 458 |
+
dailyModal.classList.add('hidden');
|
| 459 |
+
}
|
| 460 |
+
|
| 461 |
+
// Save game state to localStorage
|
| 462 |
+
function saveState() {
|
| 463 |
+
localStorage.setItem('gameState', JSON.stringify(state));
|
| 464 |
+
}
|
| 465 |
+
|
| 466 |
+
// Event Listeners
|
| 467 |
+
coin.addEventListener('click', collectCoins);
|
| 468 |
|
| 469 |
+
// Upgrade buttons
|
| 470 |
+
document.getElementById('buy-autoclicker').addEventListener('click', () => {
|
| 471 |
+
if (state.balance >= 100) {
|
| 472 |
+
state.balance -= 100;
|
| 473 |
+
state.upgrades.autoClicker++;
|
| 474 |
+
|
| 475 |
+
// Start auto-collect if this is the first auto-clicker
|
| 476 |
+
if (state.upgrades.autoClicker === 1) {
|
| 477 |
+
setInterval(autoCollect, 5000);
|
| 478 |
+
}
|
| 479 |
+
|
| 480 |
+
saveState();
|
| 481 |
+
updateUI();
|
| 482 |
+
}
|
| 483 |
+
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 484 |
|
| 485 |
+
document.getElementById('buy-magnet').addEventListener('click', () => {
|
| 486 |
+
if (state.balance >= 250) {
|
| 487 |
+
state.balance -= 250;
|
| 488 |
+
state.upgrades.coinMagnet++;
|
| 489 |
+
saveState();
|
| 490 |
+
updateUI();
|
| 491 |
+
}
|
| 492 |
+
});
|
|
|
|
|
|
|
|
|
|
|
|
|
| 493 |
|
| 494 |
+
document.getElementById('buy-luck').addEventListener('click', () => {
|
| 495 |
+
if (state.balance >= 500) {
|
| 496 |
+
state.balance -= 500;
|
| 497 |
+
state.upgrades.luckyCharm++;
|
| 498 |
+
saveState();
|
| 499 |
+
updateUI();
|
| 500 |
+
}
|
| 501 |
+
});
|
| 502 |
|
| 503 |
+
// Reward buttons
|
| 504 |
+
document.getElementById('redeem-basic').addEventListener('click', () => {
|
| 505 |
+
if (state.balance >= 50) {
|
| 506 |
+
state.balance -= 50;
|
| 507 |
+
saveState();
|
| 508 |
+
updateUI();
|
| 509 |
+
alert('Reward claimed! Check your email for your Amazon gift card code.');
|
| 510 |
} else {
|
| 511 |
+
alert('Not enough coins! Keep collecting to claim this reward.');
|
|
|
|
| 512 |
}
|
|
|
|
| 513 |
});
|
| 514 |
|
| 515 |
+
document.getElementById('redeem-premium').addEventListener('click', () => {
|
| 516 |
+
if (state.balance >= 250) {
|
| 517 |
+
state.balance -= 250;
|
| 518 |
+
saveState();
|
| 519 |
+
updateUI();
|
| 520 |
+
alert('Reward claimed! Your $2.50 PayPal cash will be processed within 24 hours.');
|
| 521 |
+
} else {
|
| 522 |
+
alert('Not enough coins! Keep collecting to claim this reward.');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 523 |
}
|
| 524 |
+
});
|
| 525 |
|
| 526 |
+
document.getElementById('redeem-ultimate').addEventListener('click', () => {
|
| 527 |
+
if (state.balance >= 1000) {
|
| 528 |
+
state.balance -= 1000;
|
| 529 |
+
saveState();
|
| 530 |
+
updateUI();
|
| 531 |
+
alert('Reward claimed! Your $10 Steam gift card code will be emailed to you shortly.');
|
| 532 |
} else {
|
| 533 |
+
alert('Not enough coins! Keep collecting to claim this reward.');
|
| 534 |
}
|
| 535 |
+
});
|
| 536 |
|
| 537 |
+
// Jackpot
|
| 538 |
+
document.getElementById('claim-jackpot').addEventListener('click', () => {
|
| 539 |
+
const jackpotAmount = parseInt(jackpotAmountEl.textContent);
|
| 540 |
+
state.balance += jackpotAmount;
|
| 541 |
+
state.totalCollected += jackpotAmount;
|
| 542 |
|
| 543 |
+
jackpotContainer.classList.add('hidden');
|
| 544 |
+
coin.style.pointerEvents = 'auto';
|
| 545 |
|
| 546 |
+
saveState();
|
| 547 |
+
updateUI();
|
|
|
|
| 548 |
});
|
| 549 |
|
| 550 |
+
// Daily bonus
|
| 551 |
+
document.getElementById('claim-daily').addEventListener('click', claimDailyBonus);
|
| 552 |
+
|
| 553 |
+
// Cash out
|
| 554 |
+
document.getElementById('cashout-btn').addEventListener('click', () => {
|
| 555 |
+
availableBalanceEl.textContent = state.balance;
|
| 556 |
+
cashoutAmountEl.value = '';
|
| 557 |
+
cashoutModal.classList.remove('hidden');
|
|
|
|
|
|
|
|
|
|
| 558 |
});
|
| 559 |
|
| 560 |
+
document.getElementById('cancel-cashout').addEventListener('click', () => {
|
| 561 |
+
cashoutModal.classList.add('hidden');
|
|
|
|
|
|
|
|
|
|
| 562 |
});
|
| 563 |
|
| 564 |
+
document.getElementById('confirm-cashout').addEventListener('click', () => {
|
| 565 |
+
const amount = parseInt(cashoutAmountEl.value);
|
| 566 |
+
const method = document.getElementById('payment-method').value;
|
| 567 |
+
|
| 568 |
+
if (isNaN(amount) || amount <= 0) {
|
| 569 |
+
alert('Please enter a valid amount');
|
| 570 |
+
return;
|
| 571 |
+
}
|
| 572 |
+
|
| 573 |
+
if (amount > state.balance) {
|
| 574 |
+
alert('You don\'t have enough coins for this cash out');
|
| 575 |
+
return;
|
| 576 |
+
}
|
| 577 |
+
|
| 578 |
+
state.balance -= amount;
|
| 579 |
+
saveState();
|
| 580 |
+
updateUI();
|
| 581 |
+
cashoutModal.classList.add('hidden');
|
| 582 |
+
|
| 583 |
+
let methodName = '';
|
| 584 |
+
switch (method) {
|
| 585 |
+
case 'paypal': methodName = 'PayPal cash'; break;
|
| 586 |
+
case 'amazon': methodName = 'Amazon gift card'; break;
|
| 587 |
+
case 'steam': methodName = 'Steam wallet code'; break;
|
| 588 |
+
}
|
| 589 |
+
|
| 590 |
+
alert(`Cash out successful! Your ${methodName} will be processed within 24 hours.`);
|
| 591 |
+
});
|
| 592 |
|
| 593 |
+
// Referral link
|
| 594 |
+
document.getElementById('copy-referral').addEventListener('click', () => {
|
| 595 |
+
const referralLink = document.getElementById('referral-link');
|
| 596 |
+
referralLink.select();
|
| 597 |
+
document.execCommand('copy');
|
| 598 |
+
|
| 599 |
+
const btn = document.getElementById('copy-referral');
|
| 600 |
+
btn.textContent = 'Copied!';
|
| 601 |
+
setTimeout(() => {
|
| 602 |
+
btn.textContent = 'Copy';
|
| 603 |
+
}, 2000);
|
| 604 |
+
});
|
| 605 |
+
|
| 606 |
+
// Initialize the game
|
| 607 |
+
initGame();
|
| 608 |
</script>
|
| 609 |
<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=Mikeyspice/game" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 610 |
</html>
|