shuun5 commited on
Commit
7f73f04
·
verified ·
1 Parent(s): f0cc141

Add 2 files

Browse files
Files changed (2) hide show
  1. index.html +632 -86
  2. prompts.txt +3 -0
index.html CHANGED
@@ -3,122 +3,668 @@
3
  <head>
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>Playful Button</title>
7
  <script src="https://cdn.tailwindcss.com"></script>
8
  <style>
9
- .rainbow-text {
10
- background: linear-gradient(to right, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
11
- -webkit-background-clip: text;
12
- background-clip: text;
13
- color: transparent;
14
- animation: rainbow 2s linear infinite;
15
- background-size: 200% 100%;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  }
17
 
18
- @keyframes rainbow {
19
- 0% { background-position: 0% 50%; }
20
- 100% { background-position: 100% 50%; }
 
 
 
 
 
 
 
 
 
 
 
21
  }
22
 
23
- .confetti {
24
  position: absolute;
25
- width: 10px;
26
- height: 10px;
27
- background-color: #f00;
 
 
 
 
 
 
28
  opacity: 0;
 
 
 
 
 
 
 
29
  }
30
 
31
- .message-popup {
32
- animation: pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
 
 
 
 
 
33
  }
34
 
35
- @keyframes pop {
36
- 0% { transform: scale(0.5); opacity: 0; }
37
- 100% { transform: scale(1); opacity: 1; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
  }
39
  </style>
40
  </head>
41
- <body class="min-h-screen bg-gradient-to-br from-purple-100 to-pink-100 flex flex-col items-center justify-center p-4">
42
- <div class="text-center">
43
- <h1 class="text-3xl font-bold mb-8 rainbow-text">Press the Magic Button!</h1>
44
-
45
- <button id="magicButton" class="relative overflow-hidden px-8 py-4 rounded-full bg-gradient-to-r from-purple-500 to-pink-500 text-white font-bold text-xl shadow-lg hover:shadow-xl transform hover:scale-105 transition-all duration-300 active:scale-95">
46
- <span class="relative z-10">✨ Click Me ✨</span>
47
- <span class="absolute inset-0 bg-white opacity-0 hover:opacity-10 transition-opacity duration-300 rounded-full"></span>
48
- </button>
49
-
50
- <div id="messageContainer" class="mt-8 hidden">
51
- <div class="message-popup inline-block bg-white p-6 rounded-xl shadow-2xl border-2 border-pink-300">
52
- <p class="text-4xl font-extrabold rainbow-text">LOL UR GAY</p>
53
- <p class="text-sm text-gray-500 mt-2">(no offense intended, just having fun)</p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
54
  </div>
 
 
55
  </div>
56
  </div>
57
 
58
  <script>
59
- document.getElementById('magicButton').addEventListener('click', function() {
60
- // Show the message
61
- const messageContainer = document.getElementById('messageContainer');
62
- messageContainer.classList.remove('hidden');
63
-
64
- // Create confetti effect
65
- for (let i = 0; i < 50; i++) {
66
- createConfetti();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
67
  }
 
 
 
 
 
68
 
69
- // Play sound (optional)
70
- playClickSound();
71
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
72
 
73
- function createConfetti() {
74
- const confetti = document.createElement('div');
75
- confetti.classList.add('confetti');
76
-
77
- // Random properties
78
- const colors = ['#ff0000', '#ff7f00', '#ffff00', '#00ff00', '#0000ff', '#4b0082', '#9400d3'];
79
- const randomColor = colors[Math.floor(Math.random() * colors.length)];
80
- const randomLeft = Math.random() * 100;
81
- const randomAnimationDuration = (Math.random() * 3) + 2;
82
-
83
- confetti.style.backgroundColor = randomColor;
84
- confetti.style.left = `${randomLeft}%`;
85
- confetti.style.top = '50%';
86
- confetti.style.borderRadius = '50%';
87
- confetti.style.opacity = '1';
88
-
89
- // Add to body
90
- document.body.appendChild(confetti);
91
-
92
- // Animate
93
- const animation = confetti.animate([
94
- { transform: 'translateY(0) rotate(0deg)', opacity: 1 },
95
- { transform: `translateY(${window.innerHeight}px) rotate(${Math.random() * 360}deg)`, opacity: 0 }
96
- ], {
97
- duration: randomAnimationDuration * 1000,
98
- easing: 'cubic-bezier(0.1, 0.8, 0.3, 1)'
99
- });
 
 
 
 
 
100
 
101
- // Remove after animation
102
- animation.onfinish = () => confetti.remove();
 
 
 
 
103
  }
104
 
105
- function playClickSound() {
106
- // Create a simple click sound
107
- const audioContext = new (window.AudioContext || window.webkitAudioContext)();
108
- const oscillator = audioContext.createOscillator();
109
- const gainNode = audioContext.createGain();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
110
 
111
- oscillator.type = 'triangle';
112
- oscillator.frequency.value = 880;
113
- gainNode.gain.value = 0.1;
114
 
115
- oscillator.connect(gainNode);
116
- gainNode.connect(audioContext.destination);
117
 
118
- oscillator.start();
119
- gainNode.gain.exponentialRampToValueAtTime(0.001, audioContext.currentTime + 0.3);
120
- oscillator.stop(audioContext.currentTime + 0.3);
121
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
122
  </script>
123
  <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=shuun5/magic-button" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
124
  </html>
 
3
  <head>
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Celebrity Social Media Manager</title>
7
  <script src="https://cdn.tailwindcss.com"></script>
8
  <style>
9
+ @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');
10
+
11
+ body {
12
+ font-family: 'Inter', sans-serif;
13
+ background-color: #f2f2f7;
14
+ display: flex;
15
+ justify-content: center;
16
+ align-items: center;
17
+ min-height: 100vh;
18
+ margin: 0;
19
+ padding: 20px;
20
+ }
21
+
22
+ .iphone-frame {
23
+ width: 375px;
24
+ height: 812px;
25
+ background-color: #000;
26
+ border-radius: 50px;
27
+ padding: 20px;
28
+ box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
29
+ position: relative;
30
+ overflow: hidden;
31
+ }
32
+
33
+ .screen {
34
+ width: 100%;
35
+ height: 100%;
36
+ background-color: #fff;
37
+ border-radius: 40px;
38
+ overflow: hidden;
39
+ position: relative;
40
+ }
41
+
42
+ .status-bar {
43
+ display: flex;
44
+ justify-content: space-between;
45
+ padding: 10px 20px;
46
+ font-size: 14px;
47
+ font-weight: 600;
48
+ }
49
+
50
+ .app-grid {
51
+ display: grid;
52
+ grid-template-columns: repeat(4, 1fr);
53
+ gap: 20px;
54
+ padding: 20px;
55
+ }
56
+
57
+ .app-icon {
58
+ width: 60px;
59
+ height: 60px;
60
+ border-radius: 15px;
61
+ display: flex;
62
+ justify-content: center;
63
+ align-items: center;
64
+ color: white;
65
+ font-size: 12px;
66
+ font-weight: 500;
67
+ position: relative;
68
+ cursor: pointer;
69
+ transition: transform 0.2s;
70
+ }
71
+
72
+ .app-icon:hover {
73
+ transform: scale(1.05);
74
  }
75
 
76
+ .notification-badge {
77
+ position: absolute;
78
+ top: -5px;
79
+ right: -5px;
80
+ background-color: #ff3b30;
81
+ color: white;
82
+ border-radius: 50%;
83
+ width: 20px;
84
+ height: 20px;
85
+ display: flex;
86
+ justify-content: center;
87
+ align-items: center;
88
+ font-size: 12px;
89
+ font-weight: bold;
90
  }
91
 
92
+ .modal {
93
  position: absolute;
94
+ top: 0;
95
+ left: 0;
96
+ width: 100%;
97
+ height: 100%;
98
+ background-color: rgba(0, 0, 0, 0.5);
99
+ display: flex;
100
+ justify-content: center;
101
+ align-items: center;
102
+ z-index: 100;
103
  opacity: 0;
104
+ pointer-events: none;
105
+ transition: opacity 0.3s;
106
+ }
107
+
108
+ .modal.active {
109
+ opacity: 1;
110
+ pointer-events: all;
111
  }
112
 
113
+ .modal-content {
114
+ background-color: white;
115
+ width: 90%;
116
+ border-radius: 20px;
117
+ padding: 20px;
118
+ transform: translateY(20px);
119
+ transition: transform 0.3s;
120
  }
121
 
122
+ .modal.active .modal-content {
123
+ transform: translateY(0);
124
+ }
125
+
126
+ .response-input {
127
+ width: 100%;
128
+ height: 100px;
129
+ border: 1px solid #ddd;
130
+ border-radius: 10px;
131
+ padding: 10px;
132
+ margin-top: 10px;
133
+ resize: none;
134
+ font-family: 'Inter', sans-serif;
135
+ }
136
+
137
+ .submit-btn {
138
+ background-color: #007aff;
139
+ color: white;
140
+ border: none;
141
+ border-radius: 10px;
142
+ padding: 10px 20px;
143
+ margin-top: 10px;
144
+ cursor: pointer;
145
+ font-weight: 600;
146
+ }
147
+
148
+ .score-display {
149
+ position: absolute;
150
+ top: 10px;
151
+ right: 20px;
152
+ background-color: rgba(0, 0, 0, 0.7);
153
+ color: white;
154
+ padding: 5px 10px;
155
+ border-radius: 20px;
156
+ font-size: 14px;
157
+ font-weight: 600;
158
+ }
159
+
160
+ .time-display {
161
+ position: absolute;
162
+ top: 10px;
163
+ left: 20px;
164
+ background-color: rgba(0, 0, 0, 0.7);
165
+ color: white;
166
+ padding: 5px 10px;
167
+ border-radius: 20px;
168
+ font-size: 14px;
169
+ font-weight: 600;
170
+ }
171
+
172
+ .timer-bar {
173
+ height: 5px;
174
+ background-color: #34c759;
175
+ position: absolute;
176
+ top: 0;
177
+ left: 0;
178
+ width: 100%;
179
+ transition: width 1s linear;
180
+ }
181
+
182
+ .notification {
183
+ position: absolute;
184
+ top: 50px;
185
+ left: 50%;
186
+ transform: translateX(-50%);
187
+ background-color: rgba(0, 0, 0, 0.8);
188
+ color: white;
189
+ padding: 10px 15px;
190
+ border-radius: 10px;
191
+ font-size: 14px;
192
+ opacity: 0;
193
+ transition: opacity 0.3s;
194
+ pointer-events: none;
195
+ }
196
+
197
+ .notification.show {
198
+ opacity: 1;
199
+ }
200
+
201
+ .home-indicator {
202
+ width: 130px;
203
+ height: 5px;
204
+ background-color: #000;
205
+ border-radius: 3px;
206
+ position: absolute;
207
+ bottom: 10px;
208
+ left: 50%;
209
+ transform: translateX(-50%);
210
+ }
211
+
212
+ .app-header {
213
+ display: flex;
214
+ justify-content: space-between;
215
+ align-items: center;
216
+ padding: 10px 20px;
217
+ border-bottom: 1px solid #eee;
218
+ }
219
+
220
+ .back-btn {
221
+ background: none;
222
+ border: none;
223
+ font-size: 16px;
224
+ font-weight: 600;
225
+ cursor: pointer;
226
+ }
227
+
228
+ .post-content {
229
+ padding: 20px;
230
+ border-bottom: 1px solid #eee;
231
+ }
232
+
233
+ .comment {
234
+ padding: 15px;
235
+ border-bottom: 1px solid #eee;
236
+ }
237
+
238
+ .comment-user {
239
+ font-weight: 600;
240
+ margin-bottom: 5px;
241
+ }
242
+
243
+ .progress-bar {
244
+ height: 5px;
245
+ background-color: #007aff;
246
+ position: fixed;
247
+ bottom: 0;
248
+ left: 0;
249
+ width: 0%;
250
+ transition: width 0.3s;
251
+ }
252
+
253
+ .game-over {
254
+ text-align: center;
255
+ padding: 20px;
256
+ }
257
+
258
+ .restart-btn {
259
+ background-color: #007aff;
260
+ color: white;
261
+ border: none;
262
+ border-radius: 10px;
263
+ padding: 10px 20px;
264
+ margin-top: 20px;
265
+ cursor: pointer;
266
+ font-weight: 600;
267
  }
268
  </style>
269
  </head>
270
+ <body>
271
+ <div class="iphone-frame">
272
+ <div class="screen">
273
+ <div class="status-bar">
274
+ <span>9:41</span>
275
+ <div>
276
+ <span>5G</span>
277
+ <span class="ml-2">100%</span>
278
+ </div>
279
+ </div>
280
+
281
+ <div class="score-display">Score: <span id="score">0</span></div>
282
+ <div class="time-display">Time: <span id="time">60</span>s</div>
283
+
284
+ <div class="app-grid" id="app-grid">
285
+ <div class="app-icon bg-[#5856d6]" data-app="instagram">
286
+ <span>Instagram</span>
287
+ <div class="notification-badge hidden">1</div>
288
+ </div>
289
+ <div class="app-icon bg-[#ff2d55]" data-app="twitter">
290
+ <span>Twitter</span>
291
+ <div class="notification-badge hidden">1</div>
292
+ </div>
293
+ <div class="app-icon bg-[#007aff]" data-app="facebook">
294
+ <span>Facebook</span>
295
+ <div class="notification-badge hidden">1</div>
296
+ </div>
297
+ <div class="app-icon bg-[#ff9500]" data-app="tiktok">
298
+ <span>TikTok</span>
299
+ <div class="notification-badge hidden">1</div>
300
+ </div>
301
+ <div class="app-icon bg-[#ffcc00]" data-app="snapchat">
302
+ <span>Snapchat</span>
303
+ <div class="notification-badge hidden">1</div>
304
+ </div>
305
+ <div class="app-icon bg-[#34c759]" data-app="youtube">
306
+ <span>YouTube</span>
307
+ <div class="notification-badge hidden">1</div>
308
+ </div>
309
+ <div class="app-icon bg-[#af52de]" data-app="reddit">
310
+ <span>Reddit</span>
311
+ <div class="notification-badge hidden">1</div>
312
+ </div>
313
+ <div class="app-icon bg-[#000000]" data-app="linkedin">
314
+ <span>LinkedIn</span>
315
+ <div class="notification-badge hidden">1</div>
316
+ </div>
317
+ </div>
318
+
319
+ <div class="home-indicator"></div>
320
+
321
+ <div class="modal" id="response-modal">
322
+ <div class="modal-content">
323
+ <div class="app-header">
324
+ <button class="back-btn" id="back-btn">← Back</button>
325
+ <h3 id="modal-app-name">Instagram</h3>
326
+ <div></div>
327
+ </div>
328
+
329
+ <div class="post-content">
330
+ <h3 class="font-bold">Your latest post</h3>
331
+ <p id="post-content">Just finished filming my new movie! Can't wait for you all to see it! 🎬✨ #excited #newmovie</p>
332
+ </div>
333
+
334
+ <div class="comment">
335
+ <div class="comment-user" id="comment-user">@fan123</div>
336
+ <p id="comment-text">This is so exciting! When does it come out?</p>
337
+ </div>
338
+
339
+ <textarea class="response-input" id="response-input" placeholder="Type your response here..."></textarea>
340
+ <button class="submit-btn" id="submit-btn">Send</button>
341
+ </div>
342
+ </div>
343
+
344
+ <div class="notification" id="notification">
345
+ +<span id="points-earned">0</span> points!
346
+ </div>
347
+
348
+ <div class="modal" id="game-over-modal">
349
+ <div class="modal-content game-over">
350
+ <h2 class="text-2xl font-bold">Game Over!</h2>
351
+ <p class="mt-4">Your final score: <span id="final-score">0</span></p>
352
+ <button class="restart-btn" id="restart-btn">Play Again</button>
353
+ </div>
354
  </div>
355
+
356
+ <div class="progress-bar" id="progress-bar"></div>
357
  </div>
358
  </div>
359
 
360
  <script>
361
+ // Game state
362
+ const state = {
363
+ score: 0,
364
+ timeLeft: 60,
365
+ gameActive: true,
366
+ currentNotification: null,
367
+ startTime: null,
368
+ timerInterval: null,
369
+ notificationInterval: null,
370
+ difficulty: 1
371
+ };
372
+
373
+ // Sample data
374
+ const posts = {
375
+ instagram: [
376
+ "Just finished filming my new movie! Can't wait for you all to see it! 🎬✨ #excited #newmovie",
377
+ "Beautiful day at the beach! 🌊☀️ #vacation #relaxing",
378
+ "Working on some new music in the studio today! 🎵 #newmusic #comingsoon"
379
+ ],
380
+ twitter: [
381
+ "Excited to announce I'll be hosting the awards show next month! #honored #excited",
382
+ "Just had the most amazing meal at @fancyrestaurant! The chef is incredible!",
383
+ "Can't believe it's been 10 years since my first album dropped! Time flies!"
384
+ ],
385
+ facebook: [
386
+ "Sharing some behind-the-scenes photos from my latest project! Check them out!",
387
+ "Thank you to all my fans for your continued support! Love you all! ❤️",
388
+ "Just adopted the cutest puppy! Meet my new best friend! 🐶"
389
+ ],
390
+ tiktok: [
391
+ "Trying out this new dance challenge! How did I do? #dance #challenge",
392
+ "POV: When you realize you left your phone at home 😅 #relatable",
393
+ "Showing you my morning routine! What's yours like? #routine #morning"
394
+ ],
395
+ snapchat: [
396
+ "Guess where I am right now! Hint: It's very cold ❄️",
397
+ "About to go live in 10 minutes! Join me!",
398
+ "Throwback to this time last year! So much has changed!"
399
+ ],
400
+ youtube: [
401
+ "New vlog is up! Check out what I've been up to this week! Link in bio!",
402
+ "Reacting to my old videos... why did I think this was a good idea? 😂",
403
+ "Q&A time! Leave your questions below and I'll answer them in my next video!"
404
+ ],
405
+ reddit: [
406
+ "AMA time! Ask me anything and I'll answer for the next hour!",
407
+ "Sharing some thoughts on the industry and how it's changed over the years...",
408
+ "What's your favorite movie of all time? I need recommendations!"
409
+ ],
410
+ linkedin: [
411
+ "Excited to announce my new partnership with @company! Big things coming!",
412
+ "Sharing some career advice that's helped me along the way...",
413
+ "Looking forward to speaking at the @conference next month!"
414
+ ]
415
+ };
416
+
417
+ const comments = [
418
+ "This is so exciting! When does it come out?",
419
+ "You look amazing! Where did you get that outfit?",
420
+ "Can we get a behind-the-scenes video?",
421
+ "I've been a fan for years! Love your work!",
422
+ "What was the most challenging part?",
423
+ "Who was your favorite co-star to work with?",
424
+ "Will you be doing a meet and greet?",
425
+ "How did you prepare for this role?",
426
+ "What's your favorite memory from filming?",
427
+ "Any advice for aspiring actors/musicians?",
428
+ "What's next for you after this?",
429
+ "Can you share any spoilers? 👀",
430
+ "What inspired this project?",
431
+ "How do you stay so humble with all this success?",
432
+ "What's your workout routine? You look great!",
433
+ "Would you ever consider doing a collab with @othercelebrity?",
434
+ "What's your favorite song/movie of yours?",
435
+ "How do you deal with negative comments?",
436
+ "What's something fans would be surprised to know about you?",
437
+ "Any plans to tour/visit my city soon?"
438
+ ];
439
+
440
+ const usernames = [
441
+ "@superfan1", "@mega_fan", "@loyal_follower", "@stan_account", "@biggest_fan",
442
+ "@fan123", "@celebfanatic", "@number1fan", "@obsessed_fan", "@true_fan"
443
+ ];
444
+
445
+ // DOM elements
446
+ const appIcons = document.querySelectorAll('.app-icon');
447
+ const notificationBadges = document.querySelectorAll('.notification-badge');
448
+ const responseModal = document.getElementById('response-modal');
449
+ const responseInput = document.getElementById('response-input');
450
+ const submitBtn = document.getElementById('submit-btn');
451
+ const backBtn = document.getElementById('back-btn');
452
+ const scoreDisplay = document.getElementById('score');
453
+ const timeDisplay = document.getElementById('time');
454
+ const postContent = document.getElementById('post-content');
455
+ const commentText = document.getElementById('comment-text');
456
+ const commentUser = document.getElementById('comment-user');
457
+ const modalAppName = document.getElementById('modal-app-name');
458
+ const notification = document.getElementById('notification');
459
+ const pointsEarned = document.getElementById('points-earned');
460
+ const gameOverModal = document.getElementById('game-over-modal');
461
+ const finalScore = document.getElementById('final-score');
462
+ const restartBtn = document.getElementById('restart-btn');
463
+ const progressBar = document.getElementById('progress-bar');
464
+
465
+ // Initialize game
466
+ function initGame() {
467
+ state.score = 0;
468
+ state.timeLeft = 60;
469
+ state.gameActive = true;
470
+ state.difficulty = 1;
471
+
472
+ scoreDisplay.textContent = state.score;
473
+ timeDisplay.textContent = state.timeLeft;
474
+
475
+ // Clear all notifications
476
+ notificationBadges.forEach(badge => {
477
+ badge.classList.add('hidden');
478
+ });
479
+
480
+ // Start timer
481
+ clearInterval(state.timerInterval);
482
+ state.timerInterval = setInterval(updateTimer, 1000);
483
+
484
+ // Start notification spawner
485
+ clearInterval(state.notificationInterval);
486
+ state.notificationInterval = setInterval(spawnNotification, 3000);
487
+
488
+ // Hide modals
489
+ responseModal.classList.remove('active');
490
+ gameOverModal.classList.remove('active');
491
+ }
492
+
493
+ // Update timer
494
+ function updateTimer() {
495
+ state.timeLeft--;
496
+ timeDisplay.textContent = state.timeLeft;
497
+
498
+ if (state.timeLeft <= 0) {
499
+ endGame();
500
  }
501
+ }
502
+
503
+ // Spawn random notification
504
+ function spawnNotification() {
505
+ if (!state.gameActive) return;
506
 
507
+ // Only spawn if no current notification
508
+ if (state.currentNotification) return;
509
+
510
+ // Random app
511
+ const randomAppIndex = Math.floor(Math.random() * appIcons.length);
512
+ const appIcon = appIcons[randomAppIndex];
513
+ const appName = appIcon.dataset.app;
514
+
515
+ // Show notification badge
516
+ const badge = appIcon.querySelector('.notification-badge');
517
+ badge.classList.remove('hidden');
518
+ badge.textContent = '1';
519
+
520
+ // Store current notification
521
+ state.currentNotification = {
522
+ app: appName,
523
+ element: appIcon,
524
+ startTime: Date.now()
525
+ };
526
+
527
+ // Update difficulty (spawn faster over time)
528
+ state.difficulty = Math.min(5, Math.floor((60 - state.timeLeft) / 12) + 1);
529
+ }
530
 
531
+ // Handle app click
532
+ function handleAppClick(e) {
533
+ if (!state.gameActive || !state.currentNotification) return;
534
+
535
+ const appIcon = e.currentTarget;
536
+ const appName = appIcon.dataset.app;
537
+
538
+ // Check if this is the app with notification
539
+ if (state.currentNotification.app !== appName) {
540
+ // Penalty for wrong click
541
+ state.score = Math.max(0, state.score - 5);
542
+ scoreDisplay.textContent = state.score;
543
+ showNotification(-5);
544
+ return;
545
+ }
546
+
547
+ // Set up modal
548
+ modalAppName.textContent = appName.charAt(0).toUpperCase() + appName.slice(1);
549
+
550
+ // Random post and comment
551
+ const randomPostIndex = Math.floor(Math.random() * posts[appName].length);
552
+ const randomCommentIndex = Math.floor(Math.random() * comments.length);
553
+ const randomUserIndex = Math.floor(Math.random() * usernames.length);
554
+
555
+ postContent.textContent = posts[appName][randomPostIndex];
556
+ commentText.textContent = comments[randomCommentIndex];
557
+ commentUser.textContent = usernames[randomUserIndex];
558
+
559
+ // Show modal
560
+ responseModal.classList.add('active');
561
+ responseInput.value = '';
562
+ responseInput.focus();
563
 
564
+ // Start timer for response
565
+ state.startTime = Date.now();
566
+
567
+ // Hide notification badge
568
+ const badge = appIcon.querySelector('.notification-badge');
569
+ badge.classList.add('hidden');
570
  }
571
 
572
+ // Handle submit response
573
+ function handleSubmit() {
574
+ const response = responseInput.value.trim();
575
+
576
+ if (response === '') {
577
+ alert('Please type a response!');
578
+ return;
579
+ }
580
+
581
+ // Calculate time taken (in seconds)
582
+ const timeTaken = (Date.now() - state.startTime) / 1000;
583
+
584
+ // Calculate score (more points for faster responses)
585
+ let points = Math.max(1, Math.floor(20 - timeTaken));
586
+
587
+ // Bonus for longer responses
588
+ if (response.length > 20) {
589
+ points += 5;
590
+ }
591
+
592
+ if (response.length > 40) {
593
+ points += 5;
594
+ }
595
+
596
+ // Add emoji bonus
597
+ if (response.includes('!') || response.includes('?')) {
598
+ points += 2;
599
+ }
600
+
601
+ if (/\p{Emoji}/u.test(response)) {
602
+ points += 3;
603
+ }
604
+
605
+ // Update score
606
+ state.score += points;
607
+ scoreDisplay.textContent = state.score;
608
 
609
+ // Show points earned
610
+ showNotification(points);
 
611
 
612
+ // Clear current notification
613
+ state.currentNotification = null;
614
 
615
+ // Hide modal
616
+ responseModal.classList.remove('active');
 
617
  }
618
+
619
+ // Show points notification
620
+ function showNotification(points) {
621
+ pointsEarned.textContent = points;
622
+ notification.classList.add('show');
623
+
624
+ setTimeout(() => {
625
+ notification.classList.remove('show');
626
+ }, 2000);
627
+ }
628
+
629
+ // End game
630
+ function endGame() {
631
+ state.gameActive = false;
632
+ clearInterval(state.timerInterval);
633
+ clearInterval(state.notificationInterval);
634
+
635
+ // Show game over modal
636
+ finalScore.textContent = state.score;
637
+ gameOverModal.classList.add('active');
638
+ }
639
+
640
+ // Event listeners
641
+ appIcons.forEach(icon => {
642
+ icon.addEventListener('click', handleAppClick);
643
+ });
644
+
645
+ submitBtn.addEventListener('click', handleSubmit);
646
+
647
+ backBtn.addEventListener('click', () => {
648
+ responseModal.classList.remove('active');
649
+ });
650
+
651
+ restartBtn.addEventListener('click', initGame);
652
+
653
+ // Keyboard shortcut for submit (Cmd+Enter or Ctrl+Enter)
654
+ responseInput.addEventListener('keydown', (e) => {
655
+ if ((e.metaKey || e.ctrlKey) && e.key === 'Enter') {
656
+ handleSubmit();
657
+ }
658
+ });
659
+
660
+ // Update progress bar
661
+ setInterval(() => {
662
+ const progress = (state.score / 200) * 100;
663
+ progressBar.style.width = `${Math.min(100, progress)}%`;
664
+ }, 100);
665
+
666
+ // Start game
667
+ initGame();
668
  </script>
669
  <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=shuun5/magic-button" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
670
  </html>
prompts.txt CHANGED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ Can you make game that looks like runescape mixed with diablo where you play a golden paladin in a crypt filled with skeletons, make skeletons drop gold when they die, use WASD keys to move like diablo, use R F Q E keys for abilities
2
+ can you figure out why the character is disappearing? Also can you generate random maze dungeons? Make it all work and smooth and fully playable.
3
+ Can you make a celebrity's social media manager simulator game where the user interface is an iphone screen? The apps on the screen will start getting notifications and you have to click on them and type a response to a question or comment someone left on your client's post, score should be gained when completing a response and more score for completing it quickly