Update index.html
Browse files- index.html +536 -605
index.html
CHANGED
|
@@ -1,626 +1,557 @@
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
-
<!DOCTYPE html>
|
| 3 |
<html lang="en">
|
| 4 |
<head>
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
|
| 173 |
-
|
| 174 |
-
|
| 175 |
-
|
| 176 |
-
|
| 177 |
-
|
| 178 |
-
|
| 179 |
-
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
|
| 189 |
-
|
| 190 |
-
|
| 191 |
-
|
| 192 |
-
|
| 193 |
-
|
| 194 |
-
|
| 195 |
-
|
| 196 |
-
|
| 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 |
-
|
| 295 |
-
|
| 296 |
-
|
| 297 |
-
|
| 298 |
-
|
| 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 |
-
|
| 322 |
-
|
| 323 |
-
|
| 324 |
-
|
| 325 |
-
|
| 326 |
-
|
| 327 |
-
<div
|
| 328 |
-
|
| 329 |
-
|
| 330 |
-
</div>
|
| 331 |
-
<div
|
| 332 |
-
|
| 333 |
-
|
| 334 |
-
</div>
|
| 335 |
-
|
| 336 |
-
<
|
| 337 |
-
<div class="timer-display paused" id="timerDisplay">2:00</div>
|
| 338 |
-
</div>
|
| 339 |
</div>
|
|
|
|
| 340 |
|
| 341 |
-
|
| 342 |
-
|
| 343 |
-
|
| 344 |
-
|
| 345 |
-
|
| 346 |
-
|
| 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 |
-
|
| 360 |
-
|
| 361 |
-
|
| 362 |
-
|
| 363 |
-
|
| 364 |
-
|
| 365 |
-
|
| 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 |
-
|
| 374 |
-
|
| 375 |
-
|
| 376 |
-
|
| 377 |
-
|
| 378 |
-
|
| 379 |
-
|
| 380 |
-
|
| 381 |
-
|
| 382 |
-
|
| 383 |
-
|
| 384 |
-
|
| 385 |
-
|
| 386 |
-
|
| 387 |
-
|
| 388 |
-
|
| 389 |
-
|
| 390 |
-
|
| 391 |
-
|
| 392 |
-
|
| 393 |
-
|
| 394 |
-
|
| 395 |
-
|
| 396 |
-
|
| 397 |
-
|
| 398 |
-
|
| 399 |
-
|
| 400 |
-
|
| 401 |
-
|
| 402 |
-
|
| 403 |
-
|
| 404 |
-
|
| 405 |
-
|
| 406 |
-
|
| 407 |
-
|
| 408 |
-
|
| 409 |
-
|
| 410 |
-
|
| 411 |
-
|
| 412 |
-
|
| 413 |
-
|
| 414 |
-
|
| 415 |
-
|
| 416 |
-
|
| 417 |
-
|
| 418 |
-
|
| 419 |
-
|
| 420 |
-
|
| 421 |
-
|
| 422 |
-
|
| 423 |
-
|
| 424 |
-
|
| 425 |
-
|
| 426 |
-
|
| 427 |
-
|
| 428 |
-
|
| 429 |
-
|
| 430 |
-
|
| 431 |
-
|
| 432 |
-
|
| 433 |
-
|
| 434 |
-
|
| 435 |
-
|
| 436 |
-
|
| 437 |
-
|
| 438 |
-
|
| 439 |
-
|
| 440 |
-
|
| 441 |
-
|
| 442 |
-
|
| 443 |
-
|
| 444 |
-
|
| 445 |
-
|
| 446 |
-
|
| 447 |
-
|
| 448 |
-
|
| 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 |
-
|
| 529 |
-
|
| 530 |
-
|
| 531 |
-
|
| 532 |
-
|
| 533 |
-
|
| 534 |
-
|
| 535 |
-
|
| 536 |
-
|
| 537 |
-
|
| 538 |
-
|
| 539 |
-
|
| 540 |
-
|
| 541 |
-
|
| 542 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 543 |
}
|
| 544 |
-
|
| 545 |
-
|
| 546 |
-
|
| 547 |
-
|
| 548 |
-
|
| 549 |
-
|
| 550 |
-
|
| 551 |
-
|
| 552 |
-
|
| 553 |
-
|
| 554 |
-
|
| 555 |
-
|
| 556 |
-
|
| 557 |
-
|
| 558 |
-
|
| 559 |
-
|
| 560 |
-
|
| 561 |
-
|
| 562 |
-
|
| 563 |
-
|
| 564 |
-
|
| 565 |
-
|
| 566 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 567 |
|
| 568 |
-
|
| 569 |
-
|
| 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 |
-
|
| 581 |
-
|
| 582 |
-
|
| 583 |
-
|
| 584 |
-
|
| 585 |
-
|
| 586 |
-
|
| 587 |
-
|
| 588 |
-
|
| 589 |
-
|
| 590 |
-
|
| 591 |
-
|
| 592 |
-
|
| 593 |
-
|
| 594 |
-
|
| 595 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 596 |
|
| 597 |
-
|
| 598 |
-
|
| 599 |
-
|
| 600 |
-
|
| 601 |
-
|
| 602 |
-
|
| 603 |
-
|
| 604 |
-
|
| 605 |
-
|
| 606 |
-
|
| 607 |
-
|
| 608 |
-
|
| 609 |
-
|
| 610 |
-
|
| 611 |
-
|
| 612 |
-
|
| 613 |
-
|
| 614 |
-
|
| 615 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 616 |
|
| 617 |
-
|
| 618 |
-
|
| 619 |
-
|
| 620 |
-
|
| 621 |
|
| 622 |
-
|
| 623 |
-
|
| 624 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
|