rrr257 commited on
Commit
2b9c544
·
verified ·
1 Parent(s): 3d7d7db

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +413 -348
index.html CHANGED
@@ -3,13 +3,17 @@
3
  <head>
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>Toastmasters Table Topics</title>
7
  <style>
8
- * { margin: 0; padding: 0; box-sizing: border-box; }
 
 
 
 
9
 
10
  body {
11
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
12
- background: linear-gradient(to bottom right, #dbeafe, #bfdbfe);
13
  min-height: 100vh;
14
  display: flex;
15
  justify-content: center;
@@ -20,476 +24,537 @@
20
  .container {
21
  background: white;
22
  border-radius: 20px;
23
- box-shadow: 0 10px 40px rgba(0,0,0,0.1);
24
  padding: 40px;
25
- max-width: 700px;
26
  width: 100%;
27
  }
28
 
29
  h1 {
30
- color: #1e40af;
31
  text-align: center;
32
- margin-bottom: 10px;
33
- font-size: 2em;
 
34
  }
35
 
36
- .subtitle {
37
- text-align: center;
38
- color: #64748b;
 
39
  margin-bottom: 30px;
40
- font-size: 0.95em;
41
  }
42
 
43
- .timer-display {
 
 
 
 
 
 
44
  text-align: center;
45
- font-size: 3em;
46
- font-weight: bold;
47
- margin-bottom: 30px;
48
- font-variant-numeric: tabular-nums;
49
- transition: color 0.3s;
50
  }
51
 
52
- .timer-green { color: #10b981; }
53
- .timer-yellow { color: #f59e0b; }
54
- .timer-red { color: #ef4444; }
 
55
 
56
- .controls-box {
57
- background: #f8fafc;
58
- border-radius: 15px;
59
- padding: 25px;
60
- margin-bottom: 25px;
61
  }
62
 
63
- .theme-selection {
64
- margin-bottom: 20px;
 
65
  }
66
 
67
- .theme-grid {
68
- display: grid;
69
- grid-template-columns: 1fr;
70
- gap: 10px;
71
- margin-bottom: 15px;
72
  }
73
 
74
- .theme-option {
75
- padding: 15px;
76
- border: 2px solid #e2e8f0;
77
- border-radius: 10px;
78
- background: white;
79
- cursor: pointer;
80
- transition: all 0.2s;
81
- text-align: left;
82
  }
83
 
84
- .theme-option:hover {
85
- border-color: #3b82f6;
86
- background: #eff6ff;
 
 
 
 
 
 
 
87
  }
88
 
89
- .theme-option.selected {
90
- border-color: #3b82f6;
91
- background: #dbeafe;
92
- font-weight: 600;
93
  }
94
 
95
- .theme-title {
96
- color: #1e40af;
97
- font-weight: 600;
98
- font-size: 1.05em;
99
  }
100
 
101
- .buttons {
 
 
 
 
 
 
 
102
  display: flex;
103
- gap: 15px;
104
- margin-top: 20px;
 
105
  }
106
 
107
- button {
108
- flex: 1;
109
- padding: 15px;
110
- border: none;
111
- border-radius: 10px;
112
- font-size: 1em;
113
- font-weight: 600;
114
- cursor: pointer;
115
- transition: all 0.2s;
116
  }
117
 
118
- .choose-theme-btn {
119
- background: #8b5cf6;
120
- color: white;
121
  }
122
 
123
- .choose-theme-btn:hover {
124
- background: #7c3aed;
125
- transform: translateY(-2px);
126
- box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
127
  }
128
 
129
- .next-speaker-btn {
130
- background: #3b82f6;
131
- color: white;
132
  }
133
 
134
- .next-speaker-btn:hover {
135
- background: #2563eb;
136
- transform: translateY(-2px);
137
- box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
138
  }
139
 
140
- .start-speaking-btn {
141
- background: #10b981;
142
- color: white;
143
  }
144
 
145
- .start-speaking-btn:hover {
146
- background: #059669;
147
- transform: translateY(-2px);
148
- box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
149
  }
150
 
151
- .reset-btn {
152
- background: #ef4444;
153
  color: white;
154
  }
155
 
156
- .reset-btn:hover {
157
- background: #dc2626;
158
  transform: translateY(-2px);
159
- box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
160
  }
161
 
162
- .topic-display {
163
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
164
- border-radius: 15px;
165
- padding: 40px;
166
- text-align: center;
167
  color: white;
168
- min-height: 200px;
169
- display: flex;
170
- flex-direction: column;
171
- justify-content: center;
172
- align-items: center;
173
- margin-top: 25px;
174
  }
175
 
176
- .topic-theme {
177
- font-size: 0.9em;
178
- opacity: 0.9;
179
- margin-bottom: 15px;
180
- text-transform: uppercase;
181
- letter-spacing: 1px;
182
  }
183
 
184
- .topic-text {
185
- font-size: 1.5em;
186
- line-height: 1.5;
187
- font-weight: 500;
188
  }
189
 
190
  .hidden {
191
  display: none;
192
  }
193
 
194
- .placeholder-text {
195
- color: #94a3b8;
196
- font-style: italic;
197
  text-align: center;
198
- margin-top: 20px;
 
 
 
 
 
199
  }
200
 
201
- .traffic-light-info {
202
- text-align: center;
203
- color: #64748b;
204
- font-size: 0.9em;
205
- margin-top: 15px;
206
- padding: 10px;
207
- background: #f1f5f9;
208
- border-radius: 8px;
209
- }
210
 
211
- .traffic-light-info span {
212
- font-weight: 600;
213
- }
 
 
 
 
214
 
215
- .green-light { color: #10b981; }
216
- .yellow-light { color: #f59e0b; }
217
- .red-light { color: #ef4444; }
 
 
218
  </style>
219
  </head>
220
  <body>
221
  <div class="container">
222
- <h1>🎤 Table Topics</h1>
223
- <p class="subtitle">Impromptu speaking practice • 1-2 minutes per speaker</p>
224
-
225
- <div class="timer-display timer-green" id="timerDisplay">00:00</div>
226
-
227
- <div class="traffic-light-info">
228
- <span class="green-light">● Green</span> at 1:00 •
229
- <span class="yellow-light">● Yellow</span> at 1:30 •
230
- <span class="red-light">● Red</span> at 2:00
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
231
  </div>
232
 
233
- <div class="controls-box">
234
- <div class="theme-selection" id="themeSelection">
235
- <div class="theme-grid">
236
- <div class="theme-option" data-theme="if-you-could">
237
- <div class="theme-title">1. "If You Could..." (Fun/Imaginative)</div>
238
- </div>
239
- <div class="theme-option" data-theme="unpopular-opinions">
240
- <div class="theme-title">2. "Unpopular Opinions" (Fun/Edgy)</div>
241
- </div>
242
- <div class="theme-option" data-theme="what-would-you-do">
243
- <div class="theme-title">3. "What Would You Do?" (Serious/Thoughtful)</div>
244
- </div>
245
- <div class="theme-option" data-theme="throwback">
246
- <div class="theme-title">4. "Throwback" (Nostalgic/Personal)</div>
247
- </div>
248
- <div class="theme-option" data-theme="youre-the-expert">
249
- <div class="theme-title">5. "You're the Expert" (Fun/Creative)</div>
250
- </div>
251
- <div class="theme-option" data-theme="big-questions">
252
- <div class="theme-title">6. "The Big Questions" (Serious/Philosophical)</div>
253
- </div>
254
- <div class="theme-option" data-theme="would-you-rather">
255
- <div class="theme-title">7. "Would You Rather"</div>
256
- </div>
257
- </div>
258
  </div>
259
 
260
- <div class="buttons">
261
- <button class="choose-theme-btn" id="chooseThemeBtn">Choose Theme</button>
262
- <button class="next-speaker-btn hidden" id="nextSpeakerBtn">Next Speaker</button>
263
- <button class="start-speaking-btn hidden" id="startSpeakingBtn">Start Speaking</button>
264
- <button class="reset-btn" id="resetBtn">Reset</button>
265
  </div>
266
 
267
- <p class="placeholder-text" id="placeholderText">Select a theme above</p>
268
- </div>
 
 
 
 
 
 
 
 
 
 
269
 
270
- <div class="topic-display hidden" id="topicDisplay">
271
- <div class="topic-theme" id="topicTheme"></div>
272
- <div class="topic-text" id="topicText"></div>
 
 
273
  </div>
274
  </div>
275
 
276
  <script>
277
- const topics = {
278
- "if-you-could": [
279
- "If you could have dinner with any person, living or dead, who would it be?",
280
- "If you could instantly master one skill, what would it be?",
281
- "If you could live in any fictional world, where would you go?",
282
- "If you could only eat one cuisine for the rest of your life, what would it be?",
283
- "If you could switch lives with someone for a week, who would it be?",
284
- "If you could eliminate one invention from history, what would it be?",
285
- "If you could speak any language fluently overnight, which would you choose?",
286
- "If you could bring back one extinct animal, what would it be?",
287
- "If you could time travel but only once, where would you go?"
288
- ],
289
- "unpopular-opinions": [
290
- "Pineapple belongs on pizza — agree or disagree?",
291
- "Mornings are better than evenings.",
292
- "Working from home is actually worse than the office.",
293
- "Social media has done more harm than good.",
294
- "Vacations are overrated.",
295
- "Pets are better companions than people.",
296
- "Winning isn't everything — participation matters just as much.",
297
- "Small talk is a waste of time.",
298
- "Dessert should be eaten before dinner."
299
- ],
300
- "what-would-you-do": [
301
- "What would you do if you found out a close friend was being dishonest at work?",
302
- "What would you do if you witnessed someone being treated unfairly in public?",
303
- "What would you do if you were given $1 million but had to give half away?",
304
- "What would you do if you discovered your dream job made you miserable?",
305
- "What would you do if a family member asked you for advice you disagreed with?",
306
- "What would you do if you could redesign the education system from scratch?",
307
- "What would you do if you had one year left to live but were in perfect health?",
308
- "What would you do if you were elected mayor of your city tomorrow?"
309
- ],
310
- "throwback": [
311
- "What was your favorite thing about being a kid?",
312
- "What's a trend from your teenage years you're glad is gone?",
313
- "What's one piece of advice you wish you could give your younger self?",
314
- "What was your most memorable family vacation?",
315
- "What's a childhood fear you've since gotten over — or haven't?",
316
- "What's the best lesson a teacher ever taught you?",
317
- "What game or toy from your childhood meant the most to you?",
318
- "What's a moment from your past that changed the direction of your life?",
319
- "What did you want to be when you grew up, and how close did you get?"
320
- ],
321
- "youre-the-expert": [
322
- "You are the world's foremost expert on napping — share your wisdom.",
323
- "You've just written a book on how to have the perfect pizza night — what's in it?",
324
- "You're a leading scientist who just discovered why Mondays feel so hard — explain your findings.",
325
- "You're the world's top negotiator — how do you convince a toddler to eat vegetables?",
326
- "You're an architect designing the perfect home office — walk us through it.",
327
- "You've cracked the code on the perfect road trip — what's the secret?",
328
- "You're a renowned chef whose specialty is breakfast — make the case for it being the greatest meal.",
329
- "You're a psychologist who studies why people argue about the thermostat — what have you learned?"
330
- ],
331
- "big-questions": [
332
- "What does success actually mean to you?",
333
- "Is it more important to be liked or to be respected?",
334
- "What's one thing society gets completely wrong?",
335
- "What does it mean to live a good life?",
336
- "Is change something to embrace or something to be cautious about?",
337
- "What's the most important quality in a leader?",
338
- "Do people fundamentally change, or do they just adapt?",
339
- "What responsibility do we have to future generations?",
340
- "Is it possible to be truly selfless, or is everything we do ultimately for ourselves?"
341
- ],
342
- "would-you-rather": [
343
- "Would you rather never need sleep or never need to eat?",
344
- "Would you rather live 200 years in the past or 200 years in the future?",
345
- "Would you rather be the funniest person in the room or the smartest?",
346
- "Would you rather lose all your memories or never be able to make new ones?",
347
- "Would you rather always have to sing instead of speak or always have to dance instead of walk?",
348
- "Would you rather know how you're going to die or know exactly when?",
349
- "Would you rather be able to talk to animals or speak every human language fluently?",
350
- "Would you rather live in the mountains or on the beach?",
351
- "Would you rather be famous but broke or wealthy but unknown?",
352
- "Would you rather have the ability to read minds or predict the future?",
353
- "Would you rather give up your phone for a year or give up your car for a year?"
354
- ]
355
- };
356
-
357
- const themeNames = {
358
- "if-you-could": '"If You Could..." (Fun/Imaginative)',
359
- "unpopular-opinions": '"Unpopular Opinions" (Fun/Edgy)',
360
- "what-would-you-do": '"What Would You Do?" (Serious/Thoughtful)',
361
- "throwback": '"Throwback" (Nostalgic/Personal)',
362
- "youre-the-expert": '"You're the Expert" (Fun/Creative)',
363
- "big-questions": '"The Big Questions" (Serious/Philosophical)',
364
- "would-you-rather": '"Would You Rather"'
365
- };
 
 
 
 
 
 
 
 
 
 
 
366
 
367
  let selectedTheme = null;
368
  let usedTopics = [];
369
- let currentTopic = null;
370
  let timerInterval = null;
371
- let elapsedSeconds = 0;
372
  let isTimerRunning = false;
373
 
374
- const themeOptions = document.querySelectorAll('.theme-option');
375
- const chooseThemeBtn = document.getElementById('chooseThemeBtn');
 
 
 
 
 
 
376
  const nextSpeakerBtn = document.getElementById('nextSpeakerBtn');
377
  const startSpeakingBtn = document.getElementById('startSpeakingBtn');
378
  const resetBtn = document.getElementById('resetBtn');
379
- const timerDisplay = document.getElementById('timerDisplay');
380
- const topicDisplay = document.getElementById('topicDisplay');
381
- const topicTheme = document.getElementById('topicTheme');
382
- const topicText = document.getElementById('topicText');
383
- const placeholderText = document.getElementById('placeholderText');
384
- const themeSelection = document.getElementById('themeSelection');
385
 
386
  // Theme selection
387
- themeOptions.forEach(option => {
388
- option.addEventListener('click', () => {
389
- themeOptions.forEach(opt => opt.classList.remove('selected'));
390
- option.classList.add('selected');
391
- selectedTheme = option.dataset.theme;
392
  });
393
  });
394
 
395
- // Choose theme button
396
- chooseThemeBtn.addEventListener('click', () => {
397
- if (!selectedTheme) {
398
- alert('Please select a theme first');
399
- return;
400
- }
401
-
402
  usedTopics = [];
 
 
403
  themeSelection.classList.add('hidden');
404
- chooseThemeBtn.classList.add('hidden');
405
- nextSpeakerBtn.classList.remove('hidden');
406
- placeholderText.textContent = 'Click "Next Speaker" to reveal the first topic';
407
- });
408
 
409
- // Next speaker button
410
- nextSpeakerBtn.addEventListener('click', () => {
411
- const availableTopics = topics[selectedTheme].filter((_, index) => !usedTopics.includes(index));
 
 
 
412
 
 
 
413
  if (availableTopics.length === 0) {
414
- alert('All topics have been used! Click Reset to start over.');
 
415
  return;
416
  }
417
 
 
 
 
 
 
 
418
  const randomIndex = Math.floor(Math.random() * availableTopics.length);
419
- currentTopic = availableTopics[randomIndex];
420
- const originalIndex = topics[selectedTheme].indexOf(currentTopic);
421
- usedTopics.push(originalIndex);
422
 
423
- topicTheme.textContent = themeNames[selectedTheme];
424
- topicText.textContent = currentTopic;
 
425
 
426
- placeholderText.classList.add('hidden');
 
427
  topicDisplay.classList.remove('hidden');
428
- nextSpeakerBtn.classList.add('hidden');
429
  startSpeakingBtn.classList.remove('hidden');
430
-
431
- elapsedSeconds = 0;
432
- updateTimerDisplay();
433
  });
434
 
435
- // Start speaking button
436
- startSpeakingBtn.addEventListener('click', () => {
437
- if (isTimerRunning) return;
438
-
439
- isTimerRunning = true;
440
- elapsedSeconds = 0;
441
-
442
- timerInterval = setInterval(() => {
443
- elapsedSeconds++;
444
- updateTimerDisplay();
445
-
446
- if (elapsedSeconds >= 120) {
447
- clearInterval(timerInterval);
448
- isTimerRunning = false;
449
- nextSpeakerBtn.classList.remove('hidden');
450
- }
451
- }, 1000);
452
  });
453
 
454
  // Reset button
455
- resetBtn.addEventListener('click', () => {
456
- clearInterval(timerInterval);
457
- isTimerRunning = false;
458
- elapsedSeconds = 0;
459
  selectedTheme = null;
460
  usedTopics = [];
461
- currentTopic = null;
462
 
463
- updateTimerDisplay();
464
-
465
- themeOptions.forEach(opt => opt.classList.remove('selected'));
466
  themeSelection.classList.remove('hidden');
467
- chooseThemeBtn.classList.remove('hidden');
468
- nextSpeakerBtn.classList.add('hidden');
469
- startSpeakingBtn.classList.add('hidden');
470
  topicDisplay.classList.add('hidden');
471
- placeholderText.classList.remove('hidden');
472
- placeholderText.textContent = 'Select a theme above';
 
473
  });
474
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
475
  function updateTimerDisplay() {
476
- const minutes = Math.floor(elapsedSeconds / 60);
477
- const seconds = elapsedSeconds % 60;
478
- timerDisplay.textContent =
479
- String(minutes).padStart(2, '0') + ':' +
480
- String(seconds).padStart(2, '0');
481
-
482
- timerDisplay.className = 'timer-display';
483
- if (elapsedSeconds < 60) {
484
- timerDisplay.classList.add('timer-green');
485
- } else if (elapsedSeconds < 90) {
486
- timerDisplay.classList.add('timer-yellow');
487
- } else {
488
- timerDisplay.classList.add('timer-red');
 
 
 
 
 
 
489
  }
490
  }
491
 
492
- updateTimerDisplay();
 
 
 
 
493
  </script>
494
  </body>
495
  </html>
 
3
  <head>
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Table Topics - Toastmasters Practice</title>
7
  <style>
8
+ * {
9
+ margin: 0;
10
+ padding: 0;
11
+ box-sizing: border-box;
12
+ }
13
 
14
  body {
15
+ font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
16
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
17
  min-height: 100vh;
18
  display: flex;
19
  justify-content: center;
 
24
  .container {
25
  background: white;
26
  border-radius: 20px;
27
+ box-shadow: 0 20px 60px rgba(0,0,0,0.3);
28
  padding: 40px;
29
+ max-width: 900px;
30
  width: 100%;
31
  }
32
 
33
  h1 {
 
34
  text-align: center;
35
+ color: #333;
36
+ margin-bottom: 30px;
37
+ font-size: 2.5em;
38
  }
39
 
40
+ .themes-grid {
41
+ display: grid;
42
+ grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
43
+ gap: 20px;
44
  margin-bottom: 30px;
 
45
  }
46
 
47
+ .theme-card {
48
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
49
+ border-radius: 15px;
50
+ padding: 25px;
51
+ color: white;
52
+ cursor: pointer;
53
+ transition: transform 0.3s, box-shadow 0.3s;
54
  text-align: center;
 
 
 
 
 
55
  }
56
 
57
+ .theme-card:hover {
58
+ transform: translateY(-5px);
59
+ box-shadow: 0 10px 30px rgba(0,0,0,0.3);
60
+ }
61
 
62
+ .theme-card h3 {
63
+ font-size: 1.4em;
64
+ margin-bottom: 10px;
 
 
65
  }
66
 
67
+ .theme-card p {
68
+ font-size: 0.9em;
69
+ opacity: 0.9;
70
  }
71
 
72
+ .selected-theme {
73
+ text-align: center;
74
+ margin-bottom: 30px;
 
 
75
  }
76
 
77
+ .selected-theme h2 {
78
+ color: #667eea;
79
+ font-size: 2em;
80
+ margin-bottom: 20px;
 
 
 
 
81
  }
82
 
83
+ .topic-display {
84
+ background: #f8f9fa;
85
+ border-radius: 15px;
86
+ padding: 30px;
87
+ margin-bottom: 30px;
88
+ min-height: 150px;
89
+ display: flex;
90
+ align-items: center;
91
+ justify-content: center;
92
+ text-align: center;
93
  }
94
 
95
+ .topic-display h3 {
96
+ color: #333;
97
+ font-size: 1.5em;
98
+ line-height: 1.6;
99
  }
100
 
101
+ .timer-section {
102
+ text-align: center;
103
+ margin-bottom: 30px;
 
104
  }
105
 
106
+ .timer-display {
107
+ font-size: 4em;
108
+ font-weight: bold;
109
+ color: #333;
110
+ margin-bottom: 20px;
111
+ }
112
+
113
+ .traffic-lights {
114
  display: flex;
115
+ justify-content: center;
116
+ gap: 30px;
117
+ margin-bottom: 30px;
118
  }
119
 
120
+ .light {
121
+ width: 60px;
122
+ height: 60px;
123
+ border-radius: 50%;
124
+ border: 3px solid #ddd;
125
+ transition: all 0.3s;
 
 
 
126
  }
127
 
128
+ .light.green {
129
+ background-color: #e0e0e0;
 
130
  }
131
 
132
+ .light.green.active {
133
+ background-color: #4caf50;
134
+ box-shadow: 0 0 20px #4caf50;
135
+ border-color: #4caf50;
136
  }
137
 
138
+ .light.yellow {
139
+ background-color: #e0e0e0;
 
140
  }
141
 
142
+ .light.yellow.active {
143
+ background-color: #ffc107;
144
+ box-shadow: 0 0 20px #ffc107;
145
+ border-color: #ffc107;
146
  }
147
 
148
+ .light.red {
149
+ background-color: #e0e0e0;
 
150
  }
151
 
152
+ .light.red.active {
153
+ background-color: #f44336;
154
+ box-shadow: 0 0 20px #f44336;
155
+ border-color: #f44336;
156
+ }
157
+
158
+ .controls {
159
+ display: flex;
160
+ gap: 15px;
161
+ justify-content: center;
162
+ flex-wrap: wrap;
163
+ }
164
+
165
+ button {
166
+ padding: 15px 30px;
167
+ font-size: 1.1em;
168
+ border: none;
169
+ border-radius: 10px;
170
+ cursor: pointer;
171
+ transition: all 0.3s;
172
+ font-weight: bold;
173
  }
174
 
175
+ .btn-primary {
176
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
177
  color: white;
178
  }
179
 
180
+ .btn-primary:hover {
 
181
  transform: translateY(-2px);
182
+ box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
183
  }
184
 
185
+ .btn-secondary {
186
+ background: #6c757d;
 
 
 
187
  color: white;
 
 
 
 
 
 
188
  }
189
 
190
+ .btn-secondary:hover {
191
+ background: #5a6268;
192
+ transform: translateY(-2px);
 
 
 
193
  }
194
 
195
+ button:disabled {
196
+ opacity: 0.5;
197
+ cursor: not-allowed;
198
+ transform: none !important;
199
  }
200
 
201
  .hidden {
202
  display: none;
203
  }
204
 
205
+ .message {
 
 
206
  text-align: center;
207
+ padding: 20px;
208
+ background: #fff3cd;
209
+ border-radius: 10px;
210
+ color: #856404;
211
+ font-size: 1.2em;
212
+ margin-bottom: 20px;
213
  }
214
 
215
+ @media (max-width: 768px) {
216
+ .container {
217
+ padding: 20px;
218
+ }
 
 
 
 
 
219
 
220
+ h1 {
221
+ font-size: 1.8em;
222
+ }
223
+
224
+ .timer-display {
225
+ font-size: 3em;
226
+ }
227
 
228
+ .light {
229
+ width: 50px;
230
+ height: 50px;
231
+ }
232
+ }
233
  </style>
234
  </head>
235
  <body>
236
  <div class="container">
237
+ <h1>Table Topics Practice</h1>
238
+
239
+ <!-- Opening Screen: Theme Selection -->
240
+ <div id="themeSelection">
241
+ <div class="themes-grid">
242
+ <div class="theme-card" data-theme="0">
243
+ <h3>If You Could...</h3>
244
+ <p>Fun & Imaginative</p>
245
+ </div>
246
+ <div class="theme-card" data-theme="1">
247
+ <h3>Unpopular Opinions</h3>
248
+ <p>Fun & Edgy</p>
249
+ </div>
250
+ <div class="theme-card" data-theme="2">
251
+ <h3>What Would You Do?</h3>
252
+ <p>Serious & Thoughtful</p>
253
+ </div>
254
+ <div class="theme-card" data-theme="3">
255
+ <h3>Throwback</h3>
256
+ <p>Nostalgic & Personal</p>
257
+ </div>
258
+ <div class="theme-card" data-theme="4">
259
+ <h3>You're the Expert</h3>
260
+ <p>Fun & Creative</p>
261
+ </div>
262
+ <div class="theme-card" data-theme="5">
263
+ <h3>The Big Questions</h3>
264
+ <p>Serious & Philosophical</p>
265
+ </div>
266
+ <div class="theme-card" data-theme="6">
267
+ <h3>Would You Rather</h3>
268
+ <p>Fun & Interactive</p>
269
+ </div>
270
+ </div>
271
  </div>
272
 
273
+ <!-- Theme Selected Screen -->
274
+ <div id="sessionScreen" class="hidden">
275
+ <div class="selected-theme">
276
+ <h2 id="themeName"></h2>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
277
  </div>
278
 
279
+ <div id="completionMessage" class="message hidden">
280
+ All topics used - click Reset to start over
 
 
 
281
  </div>
282
 
283
+ <div id="topicDisplay" class="topic-display hidden">
284
+ <h3 id="topicText"></h3>
285
+ </div>
286
+
287
+ <div id="timerSection" class="timer-section hidden">
288
+ <div class="timer-display" id="timerDisplay">0:00</div>
289
+ <div class="traffic-lights">
290
+ <div class="light green" id="greenLight"></div>
291
+ <div class="light yellow" id="yellowLight"></div>
292
+ <div class="light red" id="redLight"></div>
293
+ </div>
294
+ </div>
295
 
296
+ <div class="controls">
297
+ <button id="nextSpeakerBtn" class="btn-primary">Next Speaker</button>
298
+ <button id="startSpeakingBtn" class="btn-primary hidden">Start Speaking</button>
299
+ <button id="resetBtn" class="btn-secondary">Reset</button>
300
+ </div>
301
  </div>
302
  </div>
303
 
304
  <script>
305
+ const themes = [
306
+ {
307
+ name: "If You Could...",
308
+ topics: [
309
+ "If you could have dinner with any person, living or dead, who would it be?",
310
+ "If you could instantly master one skill, what would it be?",
311
+ "If you could live in any fictional world, where would you go?",
312
+ "If you could only eat one cuisine for the rest of your life, what would it be?",
313
+ "If you could switch lives with someone for a week, who would it be?",
314
+ "If you could eliminate one invention from history, what would it be?",
315
+ "If you could speak any language fluently overnight, which would you choose?",
316
+ "If you could bring back one extinct animal, what would it be?",
317
+ "If you could time travel but only once, where would you go?"
318
+ ]
319
+ },
320
+ {
321
+ name: "Unpopular Opinions",
322
+ topics: [
323
+ "Pineapple belongs on pizza — agree or disagree?",
324
+ "Mornings are better than evenings.",
325
+ "Working from home is actually worse than the office.",
326
+ "Social media has done more harm than good.",
327
+ "Vacations are overrated.",
328
+ "Pets are better companions than people.",
329
+ "Winning isn't everything — participation matters just as much.",
330
+ "Small talk is a waste of time.",
331
+ "Dessert should be eaten before dinner."
332
+ ]
333
+ },
334
+ {
335
+ name: "What Would You Do?",
336
+ topics: [
337
+ "What would you do if you found out a close friend was being dishonest at work?",
338
+ "What would you do if you witnessed someone being treated unfairly in public?",
339
+ "What would you do if you were given $1 million but had to give half away?",
340
+ "What would you do if you discovered your dream job made you miserable?",
341
+ "What would you do if a family member asked you for advice you disagreed with?",
342
+ "What would you do if you could redesign the education system from scratch?",
343
+ "What would you do if you had one year left to live but were in perfect health?",
344
+ "What would you do if you were elected mayor of your city tomorrow?"
345
+ ]
346
+ },
347
+ {
348
+ name: "Throwback",
349
+ topics: [
350
+ "What was your favorite thing about being a kid?",
351
+ "What's a trend from your teenage years you're glad is gone?",
352
+ "What's one piece of advice you wish you could give your younger self?",
353
+ "What was your most memorable family vacation?",
354
+ "What's a childhood fear you've since gotten over — or haven't?",
355
+ "What's the best lesson a teacher ever taught you?",
356
+ "What game or toy from your childhood meant the most to you?",
357
+ "What's a moment from your past that changed the direction of your life?",
358
+ "What did you want to be when you grew up, and how close did you get?"
359
+ ]
360
+ },
361
+ {
362
+ name: "You're the Expert",
363
+ topics: [
364
+ "You are the world's foremost expert on napping — share your wisdom.",
365
+ "You've just written a book on how to have the perfect pizza night — what's in it?",
366
+ "You're a leading scientist who just discovered why Mondays feel so hard — explain your findings.",
367
+ "You're the world's top negotiator — how do you convince a toddler to eat vegetables?",
368
+ "You're an architect designing the perfect home office — walk us through it.",
369
+ "You've cracked the code on the perfect road trip — what's the secret?",
370
+ "You're a renowned chef whose specialty is breakfast — make the case for it being the greatest meal.",
371
+ "You're a psychologist who studies why people argue about the thermostat — what have you learned?"
372
+ ]
373
+ },
374
+ {
375
+ name: "The Big Questions",
376
+ topics: [
377
+ "What does success actually mean to you?",
378
+ "Is it more important to be liked or to be respected?",
379
+ "What's one thing society gets completely wrong?",
380
+ "What does it mean to live a good life?",
381
+ "Is change something to embrace or something to be cautious about?",
382
+ "What's the most important quality in a leader?",
383
+ "Do people fundamentally change, or do they just adapt?",
384
+ "What responsibility do we have to future generations?",
385
+ "Is it possible to be truly selfless, or is everything we do ultimately for ourselves?"
386
+ ]
387
+ },
388
+ {
389
+ name: "Would You Rather",
390
+ topics: [
391
+ "Would you rather never need sleep or never need to eat?",
392
+ "Would you rather live 200 years in the past or 200 years in the future?",
393
+ "Would you rather be the funniest person in the room or the smartest?",
394
+ "Would you rather lose all your memories or never be able to make new ones?",
395
+ "Would you rather always have to sing instead of speak or always have to dance instead of walk?",
396
+ "Would you rather know how you're going to die or know exactly when?",
397
+ "Would you rather be able to talk to animals or speak every human language fluently?",
398
+ "Would you rather live in the mountains or on the beach?",
399
+ "Would you rather be famous but broke or wealthy but unknown?",
400
+ "Would you rather have the ability to read minds or predict the future?",
401
+ "Would you rather give up your phone for a year or give up your car for a year?"
402
+ ]
403
+ }
404
+ ];
405
 
406
  let selectedTheme = null;
407
  let usedTopics = [];
408
+ let availableTopics = [];
409
  let timerInterval = null;
410
+ let seconds = 0;
411
  let isTimerRunning = false;
412
 
413
+ // DOM elements
414
+ const themeSelection = document.getElementById('themeSelection');
415
+ const sessionScreen = document.getElementById('sessionScreen');
416
+ const themeName = document.getElementById('themeName');
417
+ const topicDisplay = document.getElementById('topicDisplay');
418
+ const topicText = document.getElementById('topicText');
419
+ const timerSection = document.getElementById('timerSection');
420
+ const timerDisplay = document.getElementById('timerDisplay');
421
  const nextSpeakerBtn = document.getElementById('nextSpeakerBtn');
422
  const startSpeakingBtn = document.getElementById('startSpeakingBtn');
423
  const resetBtn = document.getElementById('resetBtn');
424
+ const greenLight = document.getElementById('greenLight');
425
+ const yellowLight = document.getElementById('yellowLight');
426
+ const redLight = document.getElementById('redLight');
427
+ const completionMessage = document.getElementById('completionMessage');
 
 
428
 
429
  // Theme selection
430
+ document.querySelectorAll('.theme-card').forEach(card => {
431
+ card.addEventListener('click', function() {
432
+ const themeIndex = parseInt(this.dataset.theme);
433
+ selectTheme(themeIndex);
 
434
  });
435
  });
436
 
437
+ function selectTheme(themeIndex) {
438
+ selectedTheme = themes[themeIndex];
439
+ availableTopics = [...selectedTheme.topics];
 
 
 
 
440
  usedTopics = [];
441
+
442
+ themeName.textContent = selectedTheme.name;
443
  themeSelection.classList.add('hidden');
444
+ sessionScreen.classList.remove('hidden');
 
 
 
445
 
446
+ topicDisplay.classList.add('hidden');
447
+ timerSection.classList.add('hidden');
448
+ startSpeakingBtn.classList.add('hidden');
449
+ completionMessage.classList.add('hidden');
450
+ nextSpeakerBtn.disabled = false;
451
+ }
452
 
453
+ // Next Speaker button
454
+ nextSpeakerBtn.addEventListener('click', function() {
455
  if (availableTopics.length === 0) {
456
+ completionMessage.classList.remove('hidden');
457
+ nextSpeakerBtn.disabled = true;
458
  return;
459
  }
460
 
461
+ // Stop timer if running
462
+ if (isTimerRunning) {
463
+ stopTimer();
464
+ }
465
+
466
+ // Get random unused topic
467
  const randomIndex = Math.floor(Math.random() * availableTopics.length);
468
+ const topic = availableTopics[randomIndex];
 
 
469
 
470
+ // Move topic from available to used
471
+ availableTopics.splice(randomIndex, 1);
472
+ usedTopics.push(topic);
473
 
474
+ // Display topic
475
+ topicText.textContent = topic;
476
  topicDisplay.classList.remove('hidden');
477
+ timerSection.classList.add('hidden');
478
  startSpeakingBtn.classList.remove('hidden');
479
+ nextSpeakerBtn.classList.add('hidden');
480
+ completionMessage.classList.add('hidden');
 
481
  });
482
 
483
+ // Start Speaking button
484
+ startSpeakingBtn.addEventListener('click', function() {
485
+ startTimer();
486
+ timerSection.classList.remove('hidden');
487
+ startSpeakingBtn.classList.add('hidden');
488
+ nextSpeakerBtn.classList.remove('hidden');
 
 
 
 
 
 
 
 
 
 
 
489
  });
490
 
491
  // Reset button
492
+ resetBtn.addEventListener('click', function() {
493
+ stopTimer();
 
 
494
  selectedTheme = null;
495
  usedTopics = [];
496
+ availableTopics = [];
497
 
498
+ sessionScreen.classList.add('hidden');
 
 
499
  themeSelection.classList.remove('hidden');
 
 
 
500
  topicDisplay.classList.add('hidden');
501
+ timerSection.classList.add('hidden');
502
+ startSpeakingBtn.classList.add('hidden');
503
+ completionMessage.classList.add('hidden');
504
  });
505
 
506
+ function startTimer() {
507
+ seconds = 0;
508
+ isTimerRunning = true;
509
+ updateTimerDisplay();
510
+ resetLights();
511
+
512
+ timerInterval = setInterval(function() {
513
+ seconds++;
514
+ updateTimerDisplay();
515
+ updateLights();
516
+ }, 1000);
517
+ }
518
+
519
+ function stopTimer() {
520
+ if (timerInterval) {
521
+ clearInterval(timerInterval);
522
+ timerInterval = null;
523
+ }
524
+ isTimerRunning = false;
525
+ seconds = 0;
526
+ updateTimerDisplay();
527
+ resetLights();
528
+ }
529
+
530
  function updateTimerDisplay() {
531
+ const mins = Math.floor(seconds / 60);
532
+ const secs = seconds % 60;
533
+ timerDisplay.textContent = `${mins}:${secs.toString().padStart(2, '0')}`;
534
+ }
535
+
536
+ function updateLights() {
537
+ // Green at 1:00 (60 seconds)
538
+ if (seconds >= 60) {
539
+ greenLight.classList.add('active');
540
+ }
541
+
542
+ // Yellow at 1:30 (90 seconds)
543
+ if (seconds >= 90) {
544
+ yellowLight.classList.add('active');
545
+ }
546
+
547
+ // Red at 2:00 (120 seconds)
548
+ if (seconds >= 120) {
549
+ redLight.classList.add('active');
550
  }
551
  }
552
 
553
+ function resetLights() {
554
+ greenLight.classList.remove('active');
555
+ yellowLight.classList.remove('active');
556
+ redLight.classList.remove('active');
557
+ }
558
  </script>
559
  </body>
560
  </html>