rrr257 commited on
Commit
076fdf9
·
1 Parent(s): af083a3

Update index.html

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