rrr257 commited on
Commit
b77b543
·
verified ·
1 Parent(s): 36b17ef

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +536 -605
index.html CHANGED
@@ -1,626 +1,557 @@
1
  <!DOCTYPE html>
2
- <!DOCTYPE html>
3
  <html lang="en">
4
  <head>
5
- <meta charset="UTF-8">
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
- <title>2-Person Role Play Practice</title>
8
- <style>
9
- * { margin: 0; padding: 0; box-sizing: border-box; }
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
- padding: 2rem;
15
- }
16
- .container { max-width: 64rem; margin: 0 auto; }
17
- .header { text-align: center; margin-bottom: 2rem; }
18
- .title { font-size: 2.5rem; color: #1e3a8a; font-weight: bold; margin-bottom: 0.5rem; }
19
- .subtitle { color: #1e40af; font-size: 1.125rem; }
20
-
21
- .category-selection {
22
- background: white;
23
- border-radius: 1rem;
24
- box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
25
- padding: 2rem;
26
- margin-bottom: 2rem;
27
- }
28
-
29
- .category-title {
30
- font-size: 1.25rem;
31
- font-weight: 600;
32
- color: #1e3a8a;
33
- margin-bottom: 1rem;
34
- text-align: center;
35
- }
36
-
37
- .categories {
38
- display: grid;
39
- grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
40
- gap: 1rem;
41
- }
42
-
43
- .category-btn {
44
- padding: 1.25rem;
45
- background: #eff6ff;
46
- border: 2px solid #bfdbfe;
47
- border-radius: 0.75rem;
48
- font-weight: 600;
49
- color: #1e40af;
50
- cursor: pointer;
51
- transition: all 0.2s;
52
- text-align: center;
53
- }
54
-
55
- .category-btn:hover {
56
- background: #dbeafe;
57
- border-color: #93c5fd;
58
- transform: translateY(-2px);
59
- }
60
-
61
- .category-btn.selected {
62
- background: #3b82f6;
63
- color: white;
64
- border-color: #3b82f6;
65
- }
66
-
67
- .timer-setup {
68
- background: white;
69
- border-radius: 1rem;
70
- box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
71
- padding: 2rem;
72
- margin-bottom: 2rem;
73
- }
74
-
75
- .timer-label {
76
- font-weight: 600;
77
- color: #1e3a8a;
78
- margin-bottom: 1rem;
79
- font-size: 1.125rem;
80
- text-align: center;
81
- }
82
-
83
- input[type="range"] {
84
- width: 100%;
85
- height: 0.5rem;
86
- background: #bfdbfe;
87
- border-radius: 0.5rem;
88
- outline: none;
89
- cursor: pointer;
90
- }
91
-
92
- input[type="range"]::-webkit-slider-thumb {
93
- appearance: none;
94
- width: 1.5rem;
95
- height: 1.5rem;
96
- background: #3b82f6;
97
- border-radius: 50%;
98
- cursor: pointer;
99
- }
100
-
101
- input[type="range"]::-moz-range-thumb {
102
- width: 1.5rem;
103
- height: 1.5rem;
104
- background: #3b82f6;
105
- border-radius: 50%;
106
- cursor: pointer;
107
- border: none;
108
- }
109
-
110
- .range-labels {
111
- display: flex;
112
- justify-content: space-between;
113
- font-size: 0.875rem;
114
- color: #1e40af;
115
- margin-top: 0.75rem;
116
- }
117
-
118
- .scenario-display {
119
- background: white;
120
- border-radius: 1.5rem;
121
- box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
122
- padding: 3rem 2rem;
123
- margin-bottom: 2rem;
124
- }
125
-
126
- .scenario-display.hidden { display: none; }
127
-
128
- .conversation-tip {
129
- text-align: center;
130
- margin-bottom: 2rem;
131
- padding: 1rem;
132
- background: #fef3c7;
133
- border: 2px solid #fde68a;
134
- border-radius: 0.75rem;
135
- }
136
-
137
- .conversation-tip p {
138
- color: #78350f;
139
- font-weight: 600;
140
- font-size: 1rem;
141
- line-height: 1.5;
142
- }
143
-
144
- .roles-container {
145
- display: grid;
146
- grid-template-columns: 1fr 1fr;
147
- gap: 2rem;
148
- margin-bottom: 2rem;
149
- }
150
-
151
- .role-card {
152
- padding: 2rem;
153
- border-radius: 1rem;
154
- text-align: center;
155
- }
156
-
157
- .role-card.person1 {
158
- background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
159
- border: 3px solid #3b82f6;
160
- }
161
-
162
- .role-card.person2 {
163
- background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
164
- border: 3px solid #f59e0b;
165
- }
166
-
167
- .person-label {
168
- font-size: 0.875rem;
169
- text-transform: uppercase;
170
- letter-spacing: 0.05em;
171
- margin-bottom: 1rem;
172
- font-weight: bold;
173
- }
174
-
175
- .person1 .person-label { color: #1e40af; }
176
- .person2 .person-label { color: #92400e; }
177
-
178
- .role-description {
179
- font-size: 1.125rem;
180
- line-height: 1.6;
181
- font-weight: 600;
182
- }
183
-
184
- .person1 .role-description { color: #1e3a8a; }
185
- .person2 .role-description { color: #78350f; }
186
-
187
- .timer-display-container {
188
- text-align: center;
189
- margin-top: 2rem;
190
- }
191
-
192
- .timer-display {
193
- font-size: 4rem;
194
- color: #3b82f6;
195
- font-weight: bold;
196
- font-variant-numeric: tabular-nums;
197
- }
198
-
199
- .timer-display.warning {
200
- color: #f59e0b;
201
- }
202
-
203
- .timer-display.danger {
204
- color: #ef4444;
205
- }
206
-
207
- .timer-display.paused {
208
- color: #6b7280;
209
- }
210
-
211
- .controls {
212
- background: white;
213
- border-radius: 1rem;
214
- box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
215
- padding: 2rem;
216
- margin-bottom: 2rem;
217
- }
218
-
219
- .placeholder-text {
220
- font-size: 1.125rem;
221
- color: #1e40af;
222
- text-align: center;
223
- margin-bottom: 1.5rem;
224
- font-weight: 500;
225
- }
226
-
227
- .placeholder-text.hidden { display: none; }
228
-
229
- .buttons {
230
- display: flex;
231
- gap: 1rem;
232
- justify-content: center;
233
- flex-wrap: wrap;
234
- }
235
-
236
- button {
237
- padding: 1rem 2rem;
238
- border: none;
239
- border-radius: 0.5rem;
240
- font-weight: 600;
241
- font-size: 1rem;
242
- cursor: pointer;
243
- color: white;
244
- box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
245
- transition: all 0.2s;
246
- display: flex;
247
- align-items: center;
248
- gap: 0.5rem;
249
- }
250
-
251
- button:hover:not(:disabled) { transform: translateY(-2px); }
252
- button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
253
-
254
- .btn-show { background: #3b82f6; }
255
- .btn-show:hover:not(:disabled) { background: #2563eb; }
256
- .btn-start { background: #22c55e; }
257
- .btn-start:hover:not(:disabled) { background: #16a34a; }
258
- .btn-next { background: #3b82f6; }
259
- .btn-next:hover:not(:disabled) { background: #2563eb; }
260
- .btn-reset { background: #ef4444; }
261
- .btn-reset:hover { background: #dc2626; }
262
-
263
- .instructions {
264
- background: #eff6ff;
265
- border: 2px solid #bfdbfe;
266
- border-radius: 0.75rem;
267
- padding: 1.5rem;
268
- }
269
-
270
- .instructions h3 {
271
- color: #1e3a8a;
272
- font-weight: bold;
273
- margin-bottom: 0.75rem;
274
- }
275
-
276
- .instructions ol {
277
- margin-left: 1.5rem;
278
- color: #1e40af;
279
- }
280
-
281
- .instructions li { margin-bottom: 0.5rem; }
282
-
283
- .hidden { display: none; }
284
-
285
- @media (max-width: 768px) {
286
- .roles-container {
287
- grid-template-columns: 1fr;
288
- gap: 1rem;
289
- }
290
- }
291
- </style>
292
  </head>
293
  <body>
294
- <div class="container">
295
- <div class="header">
296
- <h1 class="title">2-Person Role Play Practice</h1>
297
- <p class="subtitle">Build fluency through conversation</p>
298
- </div>
299
-
300
- <div class="category-selection" id="categorySection">
301
- <h3 class="category-title">Choose a Scenario Category</h3>
302
- <div class="categories">
303
- <button class="category-btn" data-category="customer">Customer & Service</button>
304
- <button class="category-btn" data-category="advice">Advice & Guidance</button>
305
- <button class="category-btn" data-category="conflict">Conflict Resolution</button>
306
- <button class="category-btn" data-category="social">Social Situations</button>
307
- <button class="category-btn" data-category="interview">Interview & Persuasion</button>
308
- </div>
309
- </div>
310
-
311
- <div class="timer-setup">
312
- <div class="timer-label">Conversation Duration: <span id="durationDisplay">120</span> seconds</div>
313
- <input type="range" id="durationSlider" min="120" max="240" step="30" value="120">
314
- <div class="range-labels">
315
- <span>2min</span>
316
- <span>3min</span>
317
- <span>4min</span>
318
- </div>
319
- </div>
320
 
321
- <div class="scenario-display hidden" id="scenarioDisplay">
322
- <div class="conversation-tip">
323
- <p>Each person should try not to talk more than 30 seconds each time, to encourage back and forth conversation</p>
324
- </div>
325
-
326
- <div class="roles-container">
327
- <div class="role-card person1">
328
- <div class="person-label">Person 1</div>
329
- <div class="role-description" id="role1"></div>
330
- </div>
331
- <div class="role-card person2">
332
- <div class="person-label">Person 2</div>
333
- <div class="role-description" id="role2"></div>
334
- </div>
335
- </div>
336
- <div class="timer-display-container">
337
- <div class="timer-display paused" id="timerDisplay">2:00</div>
338
- </div>
339
  </div>
 
340
 
341
- <div class="controls">
342
- <div class="placeholder-text" id="placeholderText">Select a category and press Show Roles</div>
343
- <div class="buttons">
344
- <button id="showBtn" class="btn-show" disabled>
345
- <span>👁</span> Show Roles
346
- </button>
347
- <button id="startBtn" class="btn-start hidden">
348
- <span>▶</span> Start Timer
349
- </button>
350
- <button id="nextBtn" class="btn-next hidden">
351
- <span>→</span> Next Scenario
352
- </button>
353
- <button id="resetBtn" class="btn-reset">
354
- <span>↻</span> Reset
355
- </button>
356
- </div>
357
  </div>
 
358
 
359
- <div class="instructions">
360
- <h3>How to Practice:</h3>
361
- <ol>
362
- <li>Select a scenario category that interests you</li>
363
- <li>Set your conversation duration (2 to 4 minutes)</li>
364
- <li>Press Show Roles to see the scenario (timer won't start yet)</li>
365
- <li>Read the roles and decide who will be Person 1 and Person 2</li>
366
- <li>When ready, press Start Timer to begin the conversation</li>
367
- <li>Use Short-Link-Stop pattern during your conversation</li>
368
- <li>When finished, click Next Scenario or Reset to change categories</li>
369
- </ol>
370
  </div>
371
  </div>
 
372
 
373
- <script>
374
- const scenarios = {
375
- customer: [
376
- { role1: "Car salesperson explaining features of an electric vehicle", role2: "Person considering buying their first electric car" },
377
- { role1: "Restaurant server taking a complicated order", role2: "Customer with food allergies asking detailed questions" },
378
- { role1: "Tech store employee explaining smartphone options", role2: "Elderly person buying their first smartphone" },
379
- { role1: "Bank representative explaining loan options", role2: "First-time homebuyer asking about mortgages" },
380
- { role1: "Travel agent planning a vacation package", role2: "Family planning their dream trip to Europe" },
381
- { role1: "Insurance agent explaining policy options", role2: "Young person getting car insurance for the first time" },
382
- { role1: "Furniture store salesperson helping with room design", role2: "Customer furnishing a new apartment on a budget" },
383
- { role1: "Real estate agent showing a house", role2: "Couple looking for their first home" },
384
- { role1: "Hotel front desk handling a guest complaint", role2: "Guest upset about their room not being ready" },
385
- { role1: "Airline customer service rebooking a missed flight", role2: "Stressed traveler who missed their connection" },
386
- { role1: "Pharmacy technician explaining medication instructions", role2: "Patient picking up a new prescription" },
387
- { role1: "Cable company representative solving internet issues", role2: "Frustrated customer with slow internet" },
388
- { role1: "Gym membership consultant explaining plans", role2: "Person joining a gym for the first time" },
389
- { role1: "Wedding venue coordinator discussing packages", role2: "Engaged couple planning their wedding" },
390
- { role1: "Appliance store employee explaining warranty options", role2: "Customer buying a new refrigerator" },
391
- { role1: "Pet store employee giving advice on pet supplies", role2: "New puppy owner shopping for supplies" }
392
- ],
393
- advice: [
394
- { role1: "Career counselor giving professional advice", role2: "Recent graduate unsure about career path" },
395
- { role1: "Personal trainer designing a workout plan", role2: "Person wanting to start exercising regularly" },
396
- { role1: "Financial advisor discussing retirement planning", role2: "Middle-aged person worried about saving enough" },
397
- { role1: "College counselor discussing university options", role2: "High school senior choosing where to apply" },
398
- { role1: "Nutritionist creating a meal plan", role2: "Person trying to eat healthier and lose weight" },
399
- { role1: "Therapist helping with stress management", role2: "Person overwhelmed with work and life balance" },
400
- { role1: "Mechanic explaining necessary car repairs", role2: "Car owner concerned about repair costs" },
401
- { role1: "Interior designer suggesting room improvements", role2: "Homeowner wanting to update their living room" },
402
- { role1: "Tech expert recommending computer upgrades", role2: "Person whose computer is running very slowly" },
403
- { role1: "Gardening expert giving landscaping advice", role2: "New homeowner wanting to improve their yard" },
404
- { role1: "Dating coach giving relationship advice", role2: "Single person nervous about getting back into dating" },
405
- { role1: "Study skills tutor helping with exam preparation", role2: "Student struggling with time management" },
406
- { role1: "Pet trainer addressing behavior problems", role2: "Dog owner whose puppy won't stop barking" },
407
- { role1: "Sleep specialist suggesting better sleep habits", role2: "Person dealing with chronic insomnia" },
408
- { role1: "Organization expert decluttering a home", role2: "Person overwhelmed by clutter and mess" },
409
- { role1: "Social media consultant building online presence", role2: "Small business owner wanting more customers" }
410
- ],
411
- conflict: [
412
- { role1: "Neighbor with a barking dog", role2: "Neighbor complaining about the noise" },
413
- { role1: "Roommate who leaves dishes in the sink", role2: "Roommate frustrated about the mess" },
414
- { role1: "Manager giving critical feedback on work performance", role2: "Employee who disagrees with the feedback" },
415
- { role1: "Parent setting a curfew for teenager", role2: "Teenager wanting more freedom and independence" },
416
- { role1: "Landlord explaining why rent is increasing", role2: "Tenant upset about the rent increase" },
417
- { role1: "Coworker who talks loudly on phone calls", role2: "Coworker who needs a quiet workspace" },
418
- { role1: "Friend who always cancels plans last minute", role2: "Friend hurt by the frequent cancellations" },
419
- { role1: "Passenger with a crying baby on a plane", role2: "Passenger asking them to quiet the baby" },
420
- { role1: "Customer demanding a refund", role2: "Store manager following no-refund policy" },
421
- { role1: "Sibling who borrowed money and hasn't paid back", role2: "Sibling asking for the money back" },
422
- { role1: "Gym member saving equipment for too long", role2: "Gym member waiting to use the equipment" },
423
- { role1: "Person playing loud music late at night", role2: "Neighbor trying to sleep" },
424
- { role1: "Driver who took someone's parking spot", role2: "Driver who was waiting for that spot" },
425
- { role1: "Group project member who didn't do their part", role2: "Team member confronting them about it" },
426
- { role1: "Restaurant diner unhappy with their meal", role2: "Chef defending the quality of the food" },
427
- { role1: "Wedding guest who brought an uninvited plus-one", role2: "Bride or groom addressing the situation" }
428
- ],
429
- social: [
430
- { role1: "New neighbor introducing themselves", role2: "Neighbor welcoming them to the neighborhood" },
431
- { role1: "Friend inviting someone to a party", role2: "Friend excited to attend and asking details" },
432
- { role1: "Coworker making small talk by the coffee machine", role2: "Coworker chatting about weekend plans" },
433
- { role1: "Person asking for directions in a new city", role2: "Local giving detailed directions" },
434
- { role1: "Friend recommending a great restaurant", role2: "Friend asking about the menu and prices" },
435
- { role1: "Dog owner at the park chatting", role2: "Another dog owner whose dog wants to play" },
436
- { role1: "Person complimenting someone's outfit", role2: "Person thanking them and sharing where they bought it" },
437
- { role1: "Gym member spotting someone lifting weights", role2: "Person grateful for the help and chatting" },
438
- { role1: "Book club member discussing the latest read", role2: "Member who had a different interpretation" },
439
- { role1: "Parent at school pickup making conversation", role2: "Parent organizing a playdate for the kids" },
440
- { role1: "Person asking to borrow a phone charger", role2: "Person happy to help and making conversation" },
441
- { role1: "Commuter sharing complaints about traffic", role2: "Fellow commuter agreeing and sharing their experience" },
442
- { role1: "Friend suggesting a weekend hiking trip", role2: "Friend discussing what to bring and where to go" },
443
- { role1: "Colleague planning a surprise party for coworker", role2: "Colleague helping coordinate the details" },
444
- { role1: "Volunteer at charity event meeting another volunteer", role2: "Volunteer discussing why they support the cause" },
445
- { role1: "Person recommending their favorite podcast", role2: "Person asking what makes it so interesting" }
446
- ],
447
- interview: [
448
- { role1: "Hiring manager interviewing for marketing position", role2: "Job candidate highlighting their experience" },
449
- { role1: "College admissions interviewer asking about goals", role2: "High school student explaining why they want to attend" },
450
- { role1: "Journalist interviewing local business owner", role2: "Business owner sharing their success story" },
451
- { role1: "Podcast host interviewing an author about their book", role2: "Author discussing the inspiration behind their work" },
452
- { role1: "Salesperson pitching a new product", role2: "Potential client asking skeptical questions" },
453
- { role1: "Entrepreneur pitching business idea to investor", role2: "Investor evaluating the opportunity" },
454
- { role1: "Politician explaining their platform", role2: "Voter asking tough questions about policies" },
455
- { role1: "Parent asking teacher about child's progress", role2: "Teacher sharing both strengths and areas to improve" },
456
- { role1: "Realtor negotiating house price with seller", role2: "Homeowner explaining why price is justified" },
457
- { role1: "Lawyer questioning a witness", role2: "Witness explaining what they saw" },
458
- { role1: "Doctor explaining treatment options", role2: "Patient weighing risks and benefits" },
459
- { role1: "Contractor bidding on home renovation", role2: "Homeowner comparing quotes and asking questions" },
460
- { role1: "Charity representative asking for donation", role2: "Potential donor asking how money will be used" },
461
- { role1: "Dating app match on first meeting", role2: "Other person getting to know them" },
462
- { role1: "Professor discussing research opportunity with student", role2: "Student explaining their interest and qualifications" },
463
- { role1: "Manager asking employee to take on new project", role2: "Employee negotiating timeline and resources" }
464
- ]
465
- };
466
-
467
- let selectedCategory = null;
468
- let isRunning = false;
469
- let rolesShown = false;
470
- let timerInterval = null;
471
- let remainingSeconds = 120;
472
- let durationSeconds = 120;
473
- let currentScenario = null;
474
-
475
- const categoryBtns = document.querySelectorAll('.category-btn');
476
- const showBtn = document.getElementById('showBtn');
477
- const startBtn = document.getElementById('startBtn');
478
- const nextBtn = document.getElementById('nextBtn');
479
- const resetBtn = document.getElementById('resetBtn');
480
- const durationSlider = document.getElementById('durationSlider');
481
- const durationDisplay = document.getElementById('durationDisplay');
482
- const placeholderText = document.getElementById('placeholderText');
483
- const scenarioDisplay = document.getElementById('scenarioDisplay');
484
- const role1 = document.getElementById('role1');
485
- const role2 = document.getElementById('role2');
486
- const timerDisplay = document.getElementById('timerDisplay');
487
-
488
- categoryBtns.forEach(btn => {
489
- btn.addEventListener('click', () => {
490
- categoryBtns.forEach(b => b.classList.remove('selected'));
491
- btn.classList.add('selected');
492
- selectedCategory = btn.dataset.category;
493
- showBtn.disabled = false;
494
- });
495
- });
496
-
497
- durationSlider.addEventListener('input', (e) => {
498
- durationSeconds = parseInt(e.target.value);
499
- remainingSeconds = durationSeconds;
500
- durationDisplay.textContent = durationSeconds;
501
- updateTimerDisplay();
502
- });
503
-
504
- function getRandomScenario() {
505
- const categoryScenarios = scenarios[selectedCategory];
506
- return categoryScenarios[Math.floor(Math.random() * categoryScenarios.length)];
507
- }
508
-
509
- function formatTime(seconds) {
510
- const mins = Math.floor(seconds / 60);
511
- const secs = seconds % 60;
512
- return `${mins}:${String(secs).padStart(2, '0')}`;
513
- }
514
-
515
- function updateTimerDisplay() {
516
- timerDisplay.textContent = formatTime(remainingSeconds);
517
-
518
- timerDisplay.classList.remove('warning', 'danger');
519
- if (isRunning) {
520
- if (remainingSeconds <= 30) {
521
- timerDisplay.classList.add('danger');
522
- } else if (remainingSeconds <= 60) {
523
- timerDisplay.classList.add('warning');
524
- }
525
  }
526
- }
527
-
528
- function startTimer() {
529
- timerInterval = setInterval(() => {
530
- remainingSeconds--;
531
- updateTimerDisplay();
532
-
533
- if (remainingSeconds <= 0) {
534
- stopTimer();
535
- }
536
- }, 1000);
537
- }
538
-
539
- function stopTimer() {
540
- if (timerInterval) {
541
- clearInterval(timerInterval);
542
- timerInterval = null;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
543
  }
544
- }
545
-
546
- function showRoles() {
547
- if (!selectedCategory) return;
548
-
549
- rolesShown = true;
550
- remainingSeconds = durationSeconds;
551
- currentScenario = getRandomScenario();
552
-
553
- placeholderText.classList.add('hidden');
554
- scenarioDisplay.classList.remove('hidden');
555
-
556
- role1.textContent = currentScenario.role1;
557
- role2.textContent = currentScenario.role2;
558
- updateTimerDisplay();
559
-
560
- showBtn.classList.add('hidden');
561
- startBtn.classList.remove('hidden');
562
- durationSlider.disabled = true;
563
- categoryBtns.forEach(btn => btn.style.pointerEvents = 'none');
564
-
565
- timerDisplay.classList.add('paused');
566
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
567
 
568
- function start() {
569
- if (!rolesShown || isRunning) return;
570
-
571
- isRunning = true;
572
- timerDisplay.classList.remove('paused');
573
-
574
- startBtn.classList.add('hidden');
575
- nextBtn.classList.remove('hidden');
576
-
577
- startTimer();
578
- }
579
 
580
- function next() {
581
- stopTimer();
582
- isRunning = false;
583
- rolesShown = false;
584
- remainingSeconds = durationSeconds;
585
- currentScenario = getRandomScenario();
586
-
587
- role1.textContent = currentScenario.role1;
588
- role2.textContent = currentScenario.role2;
589
- updateTimerDisplay();
590
-
591
- timerDisplay.classList.add('paused');
592
- nextBtn.classList.add('hidden');
593
- startBtn.classList.remove('hidden');
594
- rolesShown = true;
595
- }
 
 
 
 
 
 
596
 
597
- function reset() {
598
- stopTimer();
599
- isRunning = false;
600
- rolesShown = false;
601
- remainingSeconds = durationSeconds;
602
-
603
- placeholderText.classList.remove('hidden');
604
- scenarioDisplay.classList.add('hidden');
605
-
606
- showBtn.classList.remove('hidden');
607
- startBtn.classList.add('hidden');
608
- nextBtn.classList.add('hidden');
609
- showBtn.disabled = selectedCategory === null;
610
- durationSlider.disabled = false;
611
- categoryBtns.forEach(btn => btn.style.pointerEvents = 'auto');
612
-
613
- timerDisplay.classList.remove('paused');
614
- updateTimerDisplay();
615
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
616
 
617
- showBtn.addEventListener('click', showRoles);
618
- startBtn.addEventListener('click', start);
619
- nextBtn.addEventListener('click', next);
620
- resetBtn.addEventListener('click', reset);
621
 
622
- updateTimerDisplay();
623
- </script>
624
- <!-- Creator Credit --> <div style="text-align: center; padding: 15px; background: rgba(0,0,0,0.1); color: #333333; font-size: 0.9em; margin-top: 20px; backdrop-filter: blur(5px);"> App created by Ron Ruiz </div>
 
 
 
 
 
 
625
  </body>
626
- </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>Scenario 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, #dbeafe, #bfdbfe);
12
+ min-height: 100vh;
13
+ padding: 2rem;
14
+ }
15
+ .container { max-width: 64rem; margin: 0 auto; }
16
+ header { text-align: center; margin-bottom: 2rem; }
17
+ .title { font-size: 2.5rem; color: #1e3a8a; font-weight: bold; margin-bottom: 0.5rem; }
18
+ .subtitle { color: #1e40af; font-size: 1.125rem; }
19
+ .category-selection {
20
+ background: white;
21
+ border-radius: 1rem;
22
+ box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
23
+ padding: 2rem;
24
+ margin-bottom: 2rem;
25
+ }
26
+ .category-title {
27
+ font-size: 1.25rem;
28
+ font-weight: 600;
29
+ color: #1e3a8a;
30
+ margin-bottom: 1rem;
31
+ text-align: center;
32
+ }
33
+ .categories {
34
+ display: grid;
35
+ grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
36
+ gap: 1rem;
37
+ }
38
+ .category-btn {
39
+ padding: 1.25rem;
40
+ background: #eff6ff;
41
+ border: 2px solid #bfdbfe;
42
+ border-radius: 0.75rem;
43
+ font-weight: 600;
44
+ color: #1e40af;
45
+ cursor: pointer;
46
+ transition: all 0.2s;
47
+ text-align: center;
48
+ }
49
+ .category-btn:hover {
50
+ background: #dbeafe;
51
+ border-color: #93c5fd;
52
+ transform: translateY(-2px);
53
+ }
54
+ .scene-selection {
55
+ background: white;
56
+ border-radius: 1rem;
57
+ box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
58
+ padding: 2rem;
59
+ margin-bottom: 2rem;
60
+ }
61
+ .scene-list {
62
+ display: flex;
63
+ flex-direction: column;
64
+ gap: 1rem;
65
+ }
66
+ .scene-card {
67
+ padding: 1.5rem;
68
+ background: #eff6ff;
69
+ border: 2px solid #bfdbfe;
70
+ border-radius: 0.75rem;
71
+ cursor: pointer;
72
+ transition: all 0.2s;
73
+ }
74
+ .scene-card:hover {
75
+ background: #dbeafe;
76
+ border-color: #93c5fd;
77
+ transform: translateY(-2px);
78
+ }
79
+ .scene-title {
80
+ font-size: 1.125rem;
81
+ font-weight: 600;
82
+ color: #1e40af;
83
+ margin-bottom: 0.5rem;
84
+ }
85
+ .scene-description {
86
+ color: #3b82f6;
87
+ font-size: 0.875rem;
88
+ }
89
+ .script-display {
90
+ background: white;
91
+ border-radius: 1rem;
92
+ box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
93
+ padding: 2rem;
94
+ margin-bottom: 2rem;
95
+ }
96
+ .roles-header {
97
+ display: grid;
98
+ grid-template-columns: 1fr 1fr;
99
+ gap: 1rem;
100
+ margin-bottom: 2rem;
101
+ }
102
+ .role-card {
103
+ padding: 1.5rem;
104
+ border-radius: 0.75rem;
105
+ border: 2px solid;
106
+ }
107
+ .role-card.person1 {
108
+ background: #dbeafe;
109
+ border-color: #3b82f6;
110
+ }
111
+ .role-card.person2 {
112
+ background: #fef3c7;
113
+ border-color: #f59e0b;
114
+ }
115
+ .role-name {
116
+ font-size: 1.25rem;
117
+ font-weight: bold;
118
+ margin-bottom: 0.5rem;
119
+ }
120
+ .role-card.person1 .role-name { color: #1e40af; }
121
+ .role-card.person2 .role-name { color: #92400e; }
122
+ .role-mood {
123
+ font-size: 0.875rem;
124
+ font-style: italic;
125
+ }
126
+ .role-card.person1 .role-mood { color: #3b82f6; }
127
+ .role-card.person2 .role-mood { color: #d97706; }
128
+ .dialog-container {
129
+ display: flex;
130
+ flex-direction: column;
131
+ gap: 1rem;
132
+ }
133
+ .dialog-line {
134
+ padding: 1rem 1.5rem;
135
+ border-radius: 0.75rem;
136
+ border: 2px solid;
137
+ }
138
+ .dialog-line.person1 {
139
+ background: #dbeafe;
140
+ border-color: #3b82f6;
141
+ margin-right: 2rem;
142
+ }
143
+ .dialog-line.person2 {
144
+ background: #fef3c7;
145
+ border-color: #f59e0b;
146
+ margin-left: 2rem;
147
+ }
148
+ .speaker {
149
+ font-weight: bold;
150
+ margin-bottom: 0.5rem;
151
+ }
152
+ .dialog-line.person1 .speaker { color: #1e40af; }
153
+ .dialog-line.person2 .speaker { color: #92400e; }
154
+ .dialog-text {
155
+ line-height: 1.6;
156
+ }
157
+ .dialog-line.person1 .dialog-text { color: #1e3a8a; }
158
+ .dialog-line.person2 .dialog-text { color: #78350f; }
159
+ .controls {
160
+ display: flex;
161
+ gap: 1rem;
162
+ justify-content: center;
163
+ flex-wrap: wrap;
164
+ }
165
+ .btn {
166
+ padding: 0.75rem 2rem;
167
+ border: none;
168
+ border-radius: 0.5rem;
169
+ font-weight: 600;
170
+ cursor: pointer;
171
+ transition: all 0.2s;
172
+ font-size: 1rem;
173
+ }
174
+ .btn-primary {
175
+ background: #3b82f6;
176
+ color: white;
177
+ }
178
+ .btn-primary:hover {
179
+ background: #2563eb;
180
+ transform: translateY(-2px);
181
+ }
182
+ .btn-secondary {
183
+ background: #e5e7eb;
184
+ color: #374151;
185
+ }
186
+ .btn-secondary:hover {
187
+ background: #d1d5db;
188
+ transform: translateY(-2px);
189
+ }
190
+ .hidden { display: none; }
191
+ @media (max-width: 768px) {
192
+ .roles-header { grid-template-columns: 1fr; }
193
+ .dialog-line.person1 { margin-right: 0; }
194
+ .dialog-line.person2 { margin-left: 0; }
195
+ }
196
+ </style>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
197
  </head>
198
  <body>
199
+ <div class="container">
200
+ <header>
201
+ <h1 class="title">🎭 Scenario Practice</h1>
202
+ <p class="subtitle">Practice acting in different scenarios with scripted dialogs</p>
203
+ </header>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
204
 
205
+ <!-- Category Selection -->
206
+ <div id="categorySelection" class="category-selection">
207
+ <h2 class="category-title">Choose a Scenario Category</h2>
208
+ <div class="categories">
209
+ <button class="category-btn" onclick="showScenes('customer-service')">
210
+ <div style="font-size: 2rem; margin-bottom: 0.5rem;">🛍️</div>
211
+ <div>Customer Service</div>
212
+ </button>
213
+ <button class="category-btn" onclick="showScenes('conflict-resolution')">
214
+ <div style="font-size: 2rem; margin-bottom: 0.5rem;">🤝</div>
215
+ <div>Conflict Resolution</div>
216
+ </button>
217
+ <button class="category-btn" onclick="showScenes('social-situations')">
218
+ <div style="font-size: 2rem; margin-bottom: 0.5rem;">💬</div>
219
+ <div>Social Situations</div>
220
+ </button>
 
 
221
  </div>
222
+ </div>
223
 
224
+ <!-- Scene Selection -->
225
+ <div id="sceneSelection" class="scene-selection hidden">
226
+ <h2 class="category-title" id="sceneSelectionTitle">Select a Scene</h2>
227
+ <div class="scene-list" id="sceneList"></div>
228
+ <div class="controls" style="margin-top: 1.5rem;">
229
+ <button class="btn btn-secondary" onclick="backToCategories()">← Back to Categories</button>
 
 
 
 
 
 
 
 
 
 
230
  </div>
231
+ </div>
232
 
233
+ <!-- Script Display -->
234
+ <div id="scriptDisplay" class="script-display hidden">
235
+ <div class="roles-header" id="rolesHeader"></div>
236
+ <div class="dialog-container" id="dialogContainer"></div>
237
+ <div class="controls" style="margin-top: 2rem;">
238
+ <button class="btn btn-secondary" onclick="backToScenes()">← Back to Scenes</button>
239
+ <button class="btn btn-primary" onclick="backToCategories()">Choose Different Category</button>
 
 
 
 
240
  </div>
241
  </div>
242
+ </div>
243
 
244
+ <script>
245
+ const scenarios = {
246
+ 'customer-service': {
247
+ title: 'Customer Service Scenarios',
248
+ scenes: [
249
+ {
250
+ title: 'Angry Customer Returns Defective Product',
251
+ description: 'Handle a frustrated customer demanding a refund for a broken item',
252
+ person1: {
253
+ name: 'Customer',
254
+ mood: 'Angry and frustrated'
255
+ },
256
+ person2: {
257
+ name: 'Store Employee',
258
+ mood: 'Professional and calm'
259
+ },
260
+ dialog: [
261
+ { speaker: 1, text: "I need to speak to a manager right now! This is completely unacceptable!" },
262
+ { speaker: 2, text: "I understand you're upset. I'm here to help. Can you tell me what happened?" },
263
+ { speaker: 1, text: "I bought this coffee maker three days ago and it's already broken! It won't even turn on!" },
264
+ { speaker: 2, text: "I'm really sorry to hear that. Do you have your receipt with you?" },
265
+ { speaker: 1, text: "Yes, here it is. I paid $89 for this piece of junk!" },
266
+ { speaker: 2, text: "Thank you. I can see you purchased it on Monday. Let me check our return policy for you." },
267
+ { speaker: 1, text: "I don't want store credit. I want my money back!" },
268
+ { speaker: 2, text: "Absolutely, I can process a full refund for you right now. Would you like to exchange it for a different model or get your money back?" },
269
+ { speaker: 1, text: "Just give me the refund. I'll buy one somewhere else." },
270
+ { speaker: 2, text: "I completely understand. I'll process that refund immediately. I apologize for the inconvenience this caused you." }
271
+ ]
272
+ },
273
+ {
274
+ title: 'Customer Confused About Product Features',
275
+ description: 'Help a confused customer understand how a product works',
276
+ person1: {
277
+ name: 'Customer',
278
+ mood: 'Confused and uncertain'
279
+ },
280
+ person2: {
281
+ name: 'Sales Associate',
282
+ mood: 'Helpful and patient'
283
+ },
284
+ dialog: [
285
+ { speaker: 1, text: "Excuse me, I'm looking at these wireless headphones but I'm not sure which one to get." },
286
+ { speaker: 2, text: "I'd be happy to help! What will you mainly be using them for?" },
287
+ { speaker: 1, text: "Mostly for working out at the gym. But I also want to use them for phone calls." },
288
+ { speaker: 2, text: "Great! Then you'll want something sweat-resistant with a good microphone. These two models would work well." },
289
+ { speaker: 1, text: "What's the difference between them? They look almost the same to me." },
290
+ { speaker: 2, text: "The main difference is battery life. This one lasts 8 hours, this one lasts 12 hours. They're both water-resistant and have excellent call quality." },
291
+ { speaker: 1, text: "Hmm, 12 hours sounds better. But is it worth the extra $30?" },
292
+ { speaker: 2, text: "If you work out frequently, the longer battery means you'll charge less often. Plus this model has noise cancellation for calls." },
293
+ { speaker: 1, text: "That does sound useful. Do they come in other colors?" },
294
+ { speaker: 2, text: "Yes! They come in black, white, and blue. Would you like to try them on to check the fit?" }
295
+ ]
296
+ },
297
+ {
298
+ title: 'Pizza Order Mix-Up (Fun)',
299
+ description: 'A customer ordered pepperoni but got pineapple pizza instead',
300
+ person1: {
301
+ name: 'Customer',
302
+ mood: 'Disappointed but trying to stay positive'
303
+ },
304
+ person2: {
305
+ name: 'Pizza Shop Manager',
306
+ mood: 'Apologetic and eager to fix the mistake'
307
+ },
308
+ dialog: [
309
+ { speaker: 1, text: "Hi, um, I think there's been a mix-up with my order. I ordered a large pepperoni pizza..." },
310
+ { speaker: 2, text: "Oh no! What did you get instead?" },
311
+ { speaker: 1, text: "Pineapple. Lots and lots of pineapple. I'm not really a pineapple-on-pizza person." },
312
+ { speaker: 2, text: "I am so sorry! That's totally our mistake. Let me make this right for you immediately." },
313
+ { speaker: 1, text: "It's okay, mistakes happen. But I do have some very hungry kids at home waiting for pizza." },
314
+ { speaker: 2, text: "I'll personally make your pepperoni pizza right now. It'll be ready in 15 minutes. And please, keep the pineapple pizza on us!" },
315
+ { speaker: 1, text: "Really? That's very generous, but I don't think anyone in my family will eat it." },
316
+ { speaker: 2, text: "Maybe a neighbor? Or you could try it - you might become a pineapple pizza convert! Plus, I'm throwing in a free order of breadsticks for the inconvenience." },
317
+ { speaker: 1, text: "Wow, thank you! That's really kind. I guess I could give the pineapple pizza a chance." },
318
+ { speaker: 2, text: "That's the spirit! And if you hate it, at least you got free breadsticks out of the deal!" }
319
+ ]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
320
  }
321
+ ]
322
+ },
323
+ 'conflict-resolution': {
324
+ title: 'Conflict Resolution Scenarios',
325
+ scenes: [
326
+ {
327
+ title: 'Roommates Arguing About Chores',
328
+ description: 'Two roommates need to resolve tension over household responsibilities',
329
+ person1: {
330
+ name: 'Roommate A',
331
+ mood: 'Frustrated and feeling taken advantage of'
332
+ },
333
+ person2: {
334
+ name: 'Roommate B',
335
+ mood: 'Defensive but willing to talk'
336
+ },
337
+ dialog: [
338
+ { speaker: 1, text: "We need to talk. I've been doing all the dishes for the past two weeks and I'm tired of it." },
339
+ { speaker: 2, text: "I've been really busy with work. I was going to do them this weekend." },
340
+ { speaker: 1, text: "That's what you said last weekend. And the weekend before that. The sink is always full." },
341
+ { speaker: 2, text: "Okay, I know I've been slacking. But you don't have to be so aggressive about it." },
342
+ { speaker: 1, text: "I'm not trying to be aggressive. I'm just frustrated. We agreed to split chores evenly." },
343
+ { speaker: 2, text: "You're right. I'm sorry. I haven't been holding up my end of the deal." },
344
+ { speaker: 1, text: "Thank you for acknowledging that. Can we figure out a better system?" },
345
+ { speaker: 2, text: "Yeah, definitely. What if we alternate weeks? You do dishes one week, I do them the next?" },
346
+ { speaker: 1, text: "That could work. And maybe we could set a reminder on our phones so we don't forget?" },
347
+ { speaker: 2, text: "Good idea. I'll set mine right now. And I'll do all the dishes tonight to catch up." }
348
+ ]
349
+ },
350
+ {
351
+ title: 'Neighbors Dispute Over Noise',
352
+ description: 'Neighbors need to resolve a complaint about loud music',
353
+ person1: {
354
+ name: 'Neighbor (Complainant)',
355
+ mood: 'Tired and irritated'
356
+ },
357
+ person2: {
358
+ name: 'Neighbor (Music Player)',
359
+ mood: 'Surprised and apologetic'
360
+ },
361
+ dialog: [
362
+ { speaker: 1, text: "Hi, I'm sorry to bother you, but I need to talk about the music." },
363
+ { speaker: 2, text: "Oh, is it too loud? I didn't realize anyone could hear it." },
364
+ { speaker: 1, text: "Yeah, it's been pretty loud the last few nights. I have to wake up early for work." },
365
+ { speaker: 2, text: "I'm really sorry! I had no idea it was bothering you. Why didn't you say something sooner?" },
366
+ { speaker: 1, text: "I didn't want to be that neighbor who complains. But it's been hard to sleep." },
367
+ { speaker: 2, text: "No, I'm glad you told me. I would want to know if I was keeping someone awake." },
368
+ { speaker: 1, text: "I don't want you to stop playing music completely. Maybe just turn it down after 10 PM?" },
369
+ { speaker: 2, text: "Absolutely! That's totally reasonable. I'll keep it low after 10. Would that work for you?" },
370
+ { speaker: 1, text: "Yes, that would be perfect. Thank you for being so understanding." },
371
+ { speaker: 2, text: "Of course! And please, if it's ever too loud again, just text me or knock. I won't be offended." }
372
+ ]
373
+ },
374
+ {
375
+ title: 'Siblings Fighting Over TV Remote (Fun)',
376
+ description: 'Two siblings argue over what to watch on TV',
377
+ person1: {
378
+ name: 'Older Sibling',
379
+ mood: 'Annoyed and claiming seniority'
380
+ },
381
+ person2: {
382
+ name: 'Younger Sibling',
383
+ mood: 'Stubborn and refusing to give in'
384
+ },
385
+ dialog: [
386
+ { speaker: 1, text: "Give me the remote. I was here first and I want to watch the game." },
387
+ { speaker: 2, text: "No way! You watched your show yesterday. It's my turn!" },
388
+ { speaker: 1, text: "The game is only on right now. Your show is on streaming - you can watch it anytime." },
389
+ { speaker: 2, text: "But I've been waiting all week for this episode! You can watch the game on your phone." },
390
+ { speaker: 1, text: "It's not the same on a tiny screen! Come on, be reasonable." },
391
+ { speaker: 2, text: "I am being reasonable! You always get to pick what we watch!" },
392
+ { speaker: 1, text: "That's not true! Last week you watched three movies in a row!" },
393
+ { speaker: 2, text: "Okay, okay. What if we compromise? You watch the first half of the game, then I watch my show?" },
394
+ { speaker: 1, text: "Hmm... what if I watch the game, and you can have the TV all day tomorrow?" },
395
+ { speaker: 2, text: "All day? Even during prime time? Deal! But you better keep your promise!" }
396
+ ]
397
  }
398
+ ]
399
+ },
400
+ 'social-situations': {
401
+ title: 'Social Situations',
402
+ scenes: [
403
+ {
404
+ title: 'Making Small Talk at a Party',
405
+ description: 'Two people who just met try to start a conversation',
406
+ person1: {
407
+ name: 'Guest A',
408
+ mood: 'Friendly but slightly nervous'
409
+ },
410
+ person2: {
411
+ name: 'Guest B',
412
+ mood: 'Outgoing and welcoming'
413
+ },
414
+ dialog: [
415
+ { speaker: 1, text: "Hi! I don't think we've met. I'm Alex. I work with Sarah." },
416
+ { speaker: 2, text: "Nice to meet you, Alex! I'm Jordan. Sarah and I went to college together." },
417
+ { speaker: 1, text: "Oh cool! What did you study?" },
418
+ { speaker: 2, text: "Marketing. Though I'm in graphic design now. How about you? What do you do?" },
419
+ { speaker: 1, text: "I'm in software development. It's pretty different from what I studied too - I was a biology major." },
420
+ { speaker: 2, text: "That's quite a switch! What made you change careers?" },
421
+ { speaker: 1, text: "I took a coding class as an elective and just fell in love with it. Best decision I ever made." },
422
+ { speaker: 2, text: "That's awesome when you find something you're passionate about. Do you work on anything interesting?" },
423
+ { speaker: 1, text: "Right now I'm working on a health app. It's actually combining my biology background with coding." },
424
+ { speaker: 2, text: "That sounds really cool! I'd love to hear more about it. Want to grab some food and keep chatting?" }
425
+ ]
426
+ },
427
+ {
428
+ title: 'Declining an Invitation Politely',
429
+ description: 'Someone needs to turn down a social invitation without hurting feelings',
430
+ person1: {
431
+ name: 'Friend (Inviting)',
432
+ mood: 'Excited and hopeful'
433
+ },
434
+ person2: {
435
+ name: 'Friend (Declining)',
436
+ mood: 'Apologetic but firm'
437
+ },
438
+ dialog: [
439
+ { speaker: 1, text: "Hey! A bunch of us are going to the concert on Saturday. You should totally come!" },
440
+ { speaker: 2, text: "That sounds fun! Who's playing?" },
441
+ { speaker: 1, text: "The Midnight Riders! I know you like rock music. It's going to be amazing!" },
442
+ { speaker: 2, text: "They're great! But I actually can't make it Saturday. I have a family thing." },
443
+ { speaker: 1, text: "Oh no! Can you skip it? This concert is going to be epic!" },
444
+ { speaker: 2, text: "I wish I could, but it's my grandma's birthday dinner. I already committed." },
445
+ { speaker: 1, text: "Aw man, that's too bad. We're going to miss you!" },
446
+ { speaker: 2, text: "I'm bummed too! But hey, let me know when you guys plan the next outing. I'd love to join." },
447
+ { speaker: 1, text: "Definitely! We're thinking about going to that new escape room next month." },
448
+ { speaker: 2, text: "Perfect! Count me in for that. And have an amazing time at the concert!" }
449
+ ]
450
+ },
451
+ {
452
+ title: 'Awkward Elevator Encounter (Fun)',
453
+ description: 'Two people stuck in an elevator trying to make conversation',
454
+ person1: {
455
+ name: 'Person A',
456
+ mood: 'Awkward and trying too hard'
457
+ },
458
+ person2: {
459
+ name: 'Person B',
460
+ mood: 'Amused and going with it'
461
+ },
462
+ dialog: [
463
+ { speaker: 1, text: "So... nice weather we're having, right?" },
464
+ { speaker: 2, text: "We're in an elevator. We can't see the weather." },
465
+ { speaker: 1, text: "Right. Good point. Um... do you work in this building?" },
466
+ { speaker: 2, text: "Well, I'm in the elevator, so... probably?" },
467
+ { speaker: 1, text: "Ha! Yeah, that was a dumb question. I'm not usually this awkward, I promise." },
468
+ { speaker: 2, text: "It's okay, elevator small talk is always weird. We're all just trying to survive these 30 seconds." },
469
+ { speaker: 1, text: "Exactly! Why do we feel the need to talk? We could just stand here in comfortable silence." },
470
+ { speaker: 2, text: "But then it becomes uncomfortable silence, and someone feels obligated to say something about the weather." },
471
+ { speaker: 1, text: "And the cycle continues! We're trapped in an endless loop of awkward elevator conversations!" },
472
+ { speaker: 2, text: "Well, this is my floor. Thanks for making this the most entertaining elevator ride I've had all week!" }
473
+ ]
474
+ }
475
+ ]
476
+ }
477
+ };
478
 
479
+ let currentCategory = null;
480
+ let currentScene = null;
 
 
 
 
 
 
 
 
 
481
 
482
+ function showScenes(category) {
483
+ currentCategory = category;
484
+ const categoryData = scenarios[category];
485
+
486
+ document.getElementById('categorySelection').classList.add('hidden');
487
+ document.getElementById('sceneSelection').classList.remove('hidden');
488
+ document.getElementById('sceneSelectionTitle').textContent = categoryData.title;
489
+
490
+ const sceneList = document.getElementById('sceneList');
491
+ sceneList.innerHTML = '';
492
+
493
+ categoryData.scenes.forEach((scene, index) => {
494
+ const sceneCard = document.createElement('div');
495
+ sceneCard.className = 'scene-card';
496
+ sceneCard.onclick = () => showScript(index);
497
+ sceneCard.innerHTML = `
498
+ <div class="scene-title">${scene.title}</div>
499
+ <div class="scene-description">${scene.description}</div>
500
+ `;
501
+ sceneList.appendChild(sceneCard);
502
+ });
503
+ }
504
 
505
+ function showScript(sceneIndex) {
506
+ currentScene = sceneIndex;
507
+ const scene = scenarios[currentCategory].scenes[sceneIndex];
508
+
509
+ document.getElementById('sceneSelection').classList.add('hidden');
510
+ document.getElementById('scriptDisplay').classList.remove('hidden');
511
+
512
+ // Display roles
513
+ const rolesHeader = document.getElementById('rolesHeader');
514
+ rolesHeader.innerHTML = `
515
+ <div class="role-card person1">
516
+ <div class="role-name">${scene.person1.name}</div>
517
+ <div class="role-mood">${scene.person1.mood}</div>
518
+ </div>
519
+ <div class="role-card person2">
520
+ <div class="role-name">${scene.person2.name}</div>
521
+ <div class="role-mood">${scene.person2.mood}</div>
522
+ </div>
523
+ `;
524
+
525
+ // Display dialog
526
+ const dialogContainer = document.getElementById('dialogContainer');
527
+ dialogContainer.innerHTML = '';
528
+
529
+ scene.dialog.forEach(line => {
530
+ const dialogLine = document.createElement('div');
531
+ dialogLine.className = `dialog-line person${line.speaker}`;
532
+ const speakerName = line.speaker === 1 ? scene.person1.name : scene.person2.name;
533
+ dialogLine.innerHTML = `
534
+ <div class="speaker">${speakerName}:</div>
535
+ <div class="dialog-text">${line.text}</div>
536
+ `;
537
+ dialogContainer.appendChild(dialogLine);
538
+ });
539
+ }
540
 
541
+ function backToScenes() {
542
+ document.getElementById('scriptDisplay').classList.add('hidden');
543
+ document.getElementById('sceneSelection').classList.remove('hidden');
544
+ }
545
 
546
+ function backToCategories() {
547
+ document.getElementById('scriptDisplay').classList.add('hidden');
548
+ document.getElementById('sceneSelection').classList.add('hidden');
549
+ document.getElementById('categorySelection').classList.remove('hidden');
550
+ currentCategory = null;
551
+ currentScene = null;
552
+ }
553
+ </script>
554
+ <!-- Creator Credit --> <div style="text-align: center; padding: 15px; background: rgba(0,0,0,0.1); color: #333333; font-size: 0.9em; margin-top: 20px; backdrop-filter: blur(5px);"> App created by Ron Ruiz </div>
555
  </body>
556
+ </html>
557
+