Update index.html
Browse files- index.html +166 -109
index.html
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
-
<title>Role Play Practice</title>
|
| 7 |
<style>
|
| 8 |
* { margin: 0; padding: 0; box-sizing: border-box; }
|
| 9 |
body {
|
|
@@ -12,7 +12,7 @@
|
|
| 12 |
min-height: 100vh;
|
| 13 |
padding: 2rem;
|
| 14 |
}
|
| 15 |
-
.container { max-width:
|
| 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; }
|
|
@@ -35,7 +35,7 @@
|
|
| 35 |
|
| 36 |
.categories {
|
| 37 |
display: grid;
|
| 38 |
-
grid-template-columns: repeat(auto-fit, minmax(
|
| 39 |
gap: 1rem;
|
| 40 |
}
|
| 41 |
|
|
@@ -120,42 +120,62 @@
|
|
| 120 |
box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
|
| 121 |
padding: 3rem 2rem;
|
| 122 |
margin-bottom: 2rem;
|
| 123 |
-
display: flex;
|
| 124 |
-
flex-direction: column;
|
| 125 |
-
align-items: center;
|
| 126 |
-
justify-content: center;
|
| 127 |
-
text-align: center;
|
| 128 |
}
|
| 129 |
|
| 130 |
.scenario-display.hidden { display: none; }
|
| 131 |
|
| 132 |
-
.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 133 |
font-size: 0.875rem;
|
| 134 |
-
color: #6b7280;
|
| 135 |
text-transform: uppercase;
|
| 136 |
letter-spacing: 0.05em;
|
| 137 |
margin-bottom: 1rem;
|
| 138 |
-
}
|
| 139 |
-
|
| 140 |
-
.role-title {
|
| 141 |
-
font-size: 1.5rem;
|
| 142 |
-
color: #3b82f6;
|
| 143 |
font-weight: bold;
|
| 144 |
-
margin-bottom: 1.5rem;
|
| 145 |
}
|
| 146 |
|
| 147 |
-
.
|
| 148 |
-
|
| 149 |
-
|
|
|
|
|
|
|
| 150 |
line-height: 1.6;
|
| 151 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 152 |
}
|
| 153 |
|
| 154 |
.timer-display {
|
| 155 |
font-size: 4rem;
|
| 156 |
color: #3b82f6;
|
| 157 |
font-weight: bold;
|
| 158 |
-
margin-top: 2rem;
|
| 159 |
font-variant-numeric: tabular-nums;
|
| 160 |
}
|
| 161 |
|
|
@@ -238,28 +258,35 @@
|
|
| 238 |
.instructions li { margin-bottom: 0.5rem; }
|
| 239 |
|
| 240 |
.hidden { display: none; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 241 |
</style>
|
| 242 |
</head>
|
| 243 |
<body>
|
| 244 |
<div class="container">
|
| 245 |
<div class="header">
|
| 246 |
-
<h1 class="title">Role Play Practice</h1>
|
| 247 |
-
<p class="subtitle">Build fluency through
|
| 248 |
</div>
|
| 249 |
|
| 250 |
<div class="category-selection" id="categorySection">
|
| 251 |
-
<h3 class="category-title">Choose a
|
| 252 |
<div class="categories">
|
| 253 |
-
<button class="category-btn" data-category="
|
| 254 |
-
<button class="category-btn" data-category="
|
| 255 |
-
<button class="category-btn" data-category="
|
| 256 |
-
<button class="category-btn" data-category="
|
| 257 |
-
<button class="category-btn" data-category="
|
| 258 |
</div>
|
| 259 |
</div>
|
| 260 |
|
| 261 |
<div class="timer-setup">
|
| 262 |
-
<div class="timer-label">
|
| 263 |
<input type="range" id="durationSlider" min="30" max="120" step="15" value="60">
|
| 264 |
<div class="range-labels">
|
| 265 |
<span>30s</span>
|
|
@@ -270,10 +297,19 @@
|
|
| 270 |
</div>
|
| 271 |
|
| 272 |
<div class="scenario-display hidden" id="scenarioDisplay">
|
| 273 |
-
<div class="
|
| 274 |
-
|
| 275 |
-
|
| 276 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 277 |
</div>
|
| 278 |
|
| 279 |
<div class="controls">
|
|
@@ -294,10 +330,11 @@
|
|
| 294 |
<div class="instructions">
|
| 295 |
<h3>How to Practice:</h3>
|
| 296 |
<ol>
|
| 297 |
-
<li>Select a
|
| 298 |
-
<li>Set your
|
| 299 |
-
<li>Press Start to receive
|
| 300 |
-
<li>
|
|
|
|
| 301 |
<li>When finished, click Next for another scenario or Reset to change categories</li>
|
| 302 |
</ol>
|
| 303 |
</div>
|
|
@@ -305,75 +342,95 @@
|
|
| 305 |
|
| 306 |
<script>
|
| 307 |
const scenarios = {
|
| 308 |
-
|
| 309 |
-
{
|
| 310 |
-
{
|
| 311 |
-
{
|
| 312 |
-
{
|
| 313 |
-
{
|
| 314 |
-
{
|
| 315 |
-
{
|
| 316 |
-
{
|
| 317 |
-
{
|
| 318 |
-
{
|
| 319 |
-
{
|
| 320 |
-
{
|
|
|
|
|
|
|
|
|
|
|
|
|
| 321 |
],
|
| 322 |
-
|
| 323 |
-
{
|
| 324 |
-
{
|
| 325 |
-
{
|
| 326 |
-
{
|
| 327 |
-
{
|
| 328 |
-
{
|
| 329 |
-
{
|
| 330 |
-
{
|
| 331 |
-
{
|
| 332 |
-
{
|
| 333 |
-
{
|
| 334 |
-
{
|
|
|
|
|
|
|
|
|
|
|
|
|
| 335 |
],
|
| 336 |
-
|
| 337 |
-
{
|
| 338 |
-
{
|
| 339 |
-
{
|
| 340 |
-
{
|
| 341 |
-
{
|
| 342 |
-
{
|
| 343 |
-
{
|
| 344 |
-
{
|
| 345 |
-
{
|
| 346 |
-
{
|
| 347 |
-
{
|
| 348 |
-
{
|
|
|
|
|
|
|
|
|
|
|
|
|
| 349 |
],
|
| 350 |
-
|
| 351 |
-
{
|
| 352 |
-
{
|
| 353 |
-
{
|
| 354 |
-
{
|
| 355 |
-
{
|
| 356 |
-
{
|
| 357 |
-
{
|
| 358 |
-
{
|
| 359 |
-
{
|
| 360 |
-
{
|
| 361 |
-
{
|
| 362 |
-
{
|
|
|
|
|
|
|
|
|
|
|
|
|
| 363 |
],
|
| 364 |
-
|
| 365 |
-
{
|
| 366 |
-
{
|
| 367 |
-
{
|
| 368 |
-
{
|
| 369 |
-
{
|
| 370 |
-
{
|
| 371 |
-
{
|
| 372 |
-
{
|
| 373 |
-
{
|
| 374 |
-
{
|
| 375 |
-
{
|
| 376 |
-
{
|
|
|
|
|
|
|
|
|
|
|
|
|
| 377 |
]
|
| 378 |
};
|
| 379 |
|
|
@@ -392,8 +449,8 @@
|
|
| 392 |
const durationDisplay = document.getElementById('durationDisplay');
|
| 393 |
const placeholderText = document.getElementById('placeholderText');
|
| 394 |
const scenarioDisplay = document.getElementById('scenarioDisplay');
|
| 395 |
-
const
|
| 396 |
-
const
|
| 397 |
const timerDisplay = document.getElementById('timerDisplay');
|
| 398 |
|
| 399 |
categoryBtns.forEach(btn => {
|
|
@@ -462,8 +519,8 @@
|
|
| 462 |
placeholderText.classList.add('hidden');
|
| 463 |
scenarioDisplay.classList.remove('hidden');
|
| 464 |
|
| 465 |
-
|
| 466 |
-
|
| 467 |
updateTimerDisplay();
|
| 468 |
|
| 469 |
startBtn.classList.add('hidden');
|
|
@@ -480,8 +537,8 @@
|
|
| 480 |
remainingSeconds = durationSeconds;
|
| 481 |
currentScenario = getRandomScenario();
|
| 482 |
|
| 483 |
-
|
| 484 |
-
|
| 485 |
updateTimerDisplay();
|
| 486 |
|
| 487 |
startTimer();
|
|
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>2-Person Role Play Practice</title>
|
| 7 |
<style>
|
| 8 |
* { margin: 0; padding: 0; box-sizing: border-box; }
|
| 9 |
body {
|
|
|
|
| 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; }
|
|
|
|
| 35 |
|
| 36 |
.categories {
|
| 37 |
display: grid;
|
| 38 |
+
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
|
| 39 |
gap: 1rem;
|
| 40 |
}
|
| 41 |
|
|
|
|
| 120 |
box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
|
| 121 |
padding: 3rem 2rem;
|
| 122 |
margin-bottom: 2rem;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 123 |
}
|
| 124 |
|
| 125 |
.scenario-display.hidden { display: none; }
|
| 126 |
|
| 127 |
+
.roles-container {
|
| 128 |
+
display: grid;
|
| 129 |
+
grid-template-columns: 1fr 1fr;
|
| 130 |
+
gap: 2rem;
|
| 131 |
+
margin-bottom: 2rem;
|
| 132 |
+
}
|
| 133 |
+
|
| 134 |
+
.role-card {
|
| 135 |
+
padding: 2rem;
|
| 136 |
+
border-radius: 1rem;
|
| 137 |
+
text-align: center;
|
| 138 |
+
}
|
| 139 |
+
|
| 140 |
+
.role-card.person1 {
|
| 141 |
+
background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
|
| 142 |
+
border: 3px solid #3b82f6;
|
| 143 |
+
}
|
| 144 |
+
|
| 145 |
+
.role-card.person2 {
|
| 146 |
+
background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
|
| 147 |
+
border: 3px solid #f59e0b;
|
| 148 |
+
}
|
| 149 |
+
|
| 150 |
+
.person-label {
|
| 151 |
font-size: 0.875rem;
|
|
|
|
| 152 |
text-transform: uppercase;
|
| 153 |
letter-spacing: 0.05em;
|
| 154 |
margin-bottom: 1rem;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 155 |
font-weight: bold;
|
|
|
|
| 156 |
}
|
| 157 |
|
| 158 |
+
.person1 .person-label { color: #1e40af; }
|
| 159 |
+
.person2 .person-label { color: #92400e; }
|
| 160 |
+
|
| 161 |
+
.role-description {
|
| 162 |
+
font-size: 1.125rem;
|
| 163 |
line-height: 1.6;
|
| 164 |
+
font-weight: 600;
|
| 165 |
+
}
|
| 166 |
+
|
| 167 |
+
.person1 .role-description { color: #1e3a8a; }
|
| 168 |
+
.person2 .role-description { color: #78350f; }
|
| 169 |
+
|
| 170 |
+
.timer-display-container {
|
| 171 |
+
text-align: center;
|
| 172 |
+
margin-top: 2rem;
|
| 173 |
}
|
| 174 |
|
| 175 |
.timer-display {
|
| 176 |
font-size: 4rem;
|
| 177 |
color: #3b82f6;
|
| 178 |
font-weight: bold;
|
|
|
|
| 179 |
font-variant-numeric: tabular-nums;
|
| 180 |
}
|
| 181 |
|
|
|
|
| 258 |
.instructions li { margin-bottom: 0.5rem; }
|
| 259 |
|
| 260 |
.hidden { display: none; }
|
| 261 |
+
|
| 262 |
+
@media (max-width: 768px) {
|
| 263 |
+
.roles-container {
|
| 264 |
+
grid-template-columns: 1fr;
|
| 265 |
+
gap: 1rem;
|
| 266 |
+
}
|
| 267 |
+
}
|
| 268 |
</style>
|
| 269 |
</head>
|
| 270 |
<body>
|
| 271 |
<div class="container">
|
| 272 |
<div class="header">
|
| 273 |
+
<h1 class="title">2-Person Role Play Practice</h1>
|
| 274 |
+
<p class="subtitle">Build fluency through conversation</p>
|
| 275 |
</div>
|
| 276 |
|
| 277 |
<div class="category-selection" id="categorySection">
|
| 278 |
+
<h3 class="category-title">Choose a Scenario Category</h3>
|
| 279 |
<div class="categories">
|
| 280 |
+
<button class="category-btn" data-category="customer">Customer & Service</button>
|
| 281 |
+
<button class="category-btn" data-category="advice">Advice & Guidance</button>
|
| 282 |
+
<button class="category-btn" data-category="conflict">Conflict Resolution</button>
|
| 283 |
+
<button class="category-btn" data-category="social">Social Situations</button>
|
| 284 |
+
<button class="category-btn" data-category="interview">Interview & Persuasion</button>
|
| 285 |
</div>
|
| 286 |
</div>
|
| 287 |
|
| 288 |
<div class="timer-setup">
|
| 289 |
+
<div class="timer-label">Conversation Duration: <span id="durationDisplay">60</span> seconds</div>
|
| 290 |
<input type="range" id="durationSlider" min="30" max="120" step="15" value="60">
|
| 291 |
<div class="range-labels">
|
| 292 |
<span>30s</span>
|
|
|
|
| 297 |
</div>
|
| 298 |
|
| 299 |
<div class="scenario-display hidden" id="scenarioDisplay">
|
| 300 |
+
<div class="roles-container">
|
| 301 |
+
<div class="role-card person1">
|
| 302 |
+
<div class="person-label">Person 1</div>
|
| 303 |
+
<div class="role-description" id="role1"></div>
|
| 304 |
+
</div>
|
| 305 |
+
<div class="role-card person2">
|
| 306 |
+
<div class="person-label">Person 2</div>
|
| 307 |
+
<div class="role-description" id="role2"></div>
|
| 308 |
+
</div>
|
| 309 |
+
</div>
|
| 310 |
+
<div class="timer-display-container">
|
| 311 |
+
<div class="timer-display" id="timerDisplay">1:00</div>
|
| 312 |
+
</div>
|
| 313 |
</div>
|
| 314 |
|
| 315 |
<div class="controls">
|
|
|
|
| 330 |
<div class="instructions">
|
| 331 |
<h3>How to Practice:</h3>
|
| 332 |
<ol>
|
| 333 |
+
<li>Select a scenario category that interests you</li>
|
| 334 |
+
<li>Set your conversation duration (30 seconds to 2 minutes)</li>
|
| 335 |
+
<li>Press Start to receive roles for both people</li>
|
| 336 |
+
<li>Decide who will be Person 1 and who will be Person 2</li>
|
| 337 |
+
<li>Have a conversation using Short-Link-Stop pattern</li>
|
| 338 |
<li>When finished, click Next for another scenario or Reset to change categories</li>
|
| 339 |
</ol>
|
| 340 |
</div>
|
|
|
|
| 342 |
|
| 343 |
<script>
|
| 344 |
const scenarios = {
|
| 345 |
+
customer: [
|
| 346 |
+
{ role1: "Car salesperson explaining features of an electric vehicle", role2: "Person considering buying their first electric car" },
|
| 347 |
+
{ role1: "Restaurant server taking a complicated order", role2: "Customer with food allergies asking detailed questions" },
|
| 348 |
+
{ role1: "Tech store employee explaining smartphone options", role2: "Elderly person buying their first smartphone" },
|
| 349 |
+
{ role1: "Bank representative explaining loan options", role2: "First-time homebuyer asking about mortgages" },
|
| 350 |
+
{ role1: "Travel agent planning a vacation package", role2: "Family planning their dream trip to Europe" },
|
| 351 |
+
{ role1: "Insurance agent explaining policy options", role2: "Young person getting car insurance for the first time" },
|
| 352 |
+
{ role1: "Furniture store salesperson helping with room design", role2: "Customer furnishing a new apartment on a budget" },
|
| 353 |
+
{ role1: "Real estate agent showing a house", role2: "Couple looking for their first home" },
|
| 354 |
+
{ role1: "Hotel front desk handling a guest complaint", role2: "Guest upset about their room not being ready" },
|
| 355 |
+
{ role1: "Airline customer service rebooking a missed flight", role2: "Stressed traveler who missed their connection" },
|
| 356 |
+
{ role1: "Pharmacy technician explaining medication instructions", role2: "Patient picking up a new prescription" },
|
| 357 |
+
{ role1: "Cable company representative solving internet issues", role2: "Frustrated customer with slow internet" },
|
| 358 |
+
{ role1: "Gym membership consultant explaining plans", role2: "Person joining a gym for the first time" },
|
| 359 |
+
{ role1: "Wedding venue coordinator discussing packages", role2: "Engaged couple planning their wedding" },
|
| 360 |
+
{ role1: "Appliance store employee explaining warranty options", role2: "Customer buying a new refrigerator" },
|
| 361 |
+
{ role1: "Pet store employee giving advice on pet supplies", role2: "New puppy owner shopping for supplies" }
|
| 362 |
],
|
| 363 |
+
advice: [
|
| 364 |
+
{ role1: "Career counselor giving professional advice", role2: "Recent graduate unsure about career path" },
|
| 365 |
+
{ role1: "Personal trainer designing a workout plan", role2: "Person wanting to start exercising regularly" },
|
| 366 |
+
{ role1: "Financial advisor discussing retirement planning", role2: "Middle-aged person worried about saving enough" },
|
| 367 |
+
{ role1: "College counselor discussing university options", role2: "High school senior choosing where to apply" },
|
| 368 |
+
{ role1: "Nutritionist creating a meal plan", role2: "Person trying to eat healthier and lose weight" },
|
| 369 |
+
{ role1: "Therapist helping with stress management", role2: "Person overwhelmed with work and life balance" },
|
| 370 |
+
{ role1: "Mechanic explaining necessary car repairs", role2: "Car owner concerned about repair costs" },
|
| 371 |
+
{ role1: "Interior designer suggesting room improvements", role2: "Homeowner wanting to update their living room" },
|
| 372 |
+
{ role1: "Tech expert recommending computer upgrades", role2: "Person whose computer is running very slowly" },
|
| 373 |
+
{ role1: "Gardening expert giving landscaping advice", role2: "New homeowner wanting to improve their yard" },
|
| 374 |
+
{ role1: "Dating coach giving relationship advice", role2: "Single person nervous about getting back into dating" },
|
| 375 |
+
{ role1: "Study skills tutor helping with exam preparation", role2: "Student struggling with time management" },
|
| 376 |
+
{ role1: "Pet trainer addressing behavior problems", role2: "Dog owner whose puppy won't stop barking" },
|
| 377 |
+
{ role1: "Sleep specialist suggesting better sleep habits", role2: "Person dealing with chronic insomnia" },
|
| 378 |
+
{ role1: "Organization expert decluttering a home", role2: "Person overwhelmed by clutter and mess" },
|
| 379 |
+
{ role1: "Social media consultant building online presence", role2: "Small business owner wanting more customers" }
|
| 380 |
],
|
| 381 |
+
conflict: [
|
| 382 |
+
{ role1: "Neighbor with a barking dog", role2: "Neighbor complaining about the noise" },
|
| 383 |
+
{ role1: "Roommate who leaves dishes in the sink", role2: "Roommate frustrated about the mess" },
|
| 384 |
+
{ role1: "Manager giving critical feedback on work performance", role2: "Employee who disagrees with the feedback" },
|
| 385 |
+
{ role1: "Parent setting a curfew for teenager", role2: "Teenager wanting more freedom and independence" },
|
| 386 |
+
{ role1: "Landlord explaining why rent is increasing", role2: "Tenant upset about the rent increase" },
|
| 387 |
+
{ role1: "Coworker who talks loudly on phone calls", role2: "Coworker who needs a quiet workspace" },
|
| 388 |
+
{ role1: "Friend who always cancels plans last minute", role2: "Friend hurt by the frequent cancellations" },
|
| 389 |
+
{ role1: "Passenger with a crying baby on a plane", role2: "Passenger asking them to quiet the baby" },
|
| 390 |
+
{ role1: "Customer demanding a refund", role2: "Store manager following no-refund policy" },
|
| 391 |
+
{ role1: "Sibling who borrowed money and hasn't paid back", role2: "Sibling asking for the money back" },
|
| 392 |
+
{ role1: "Gym member saving equipment for too long", role2: "Gym member waiting to use the equipment" },
|
| 393 |
+
{ role1: "Person playing loud music late at night", role2: "Neighbor trying to sleep" },
|
| 394 |
+
{ role1: "Driver who took someone's parking spot", role2: "Driver who was waiting for that spot" },
|
| 395 |
+
{ role1: "Group project member who didn't do their part", role2: "Team member confronting them about it" },
|
| 396 |
+
{ role1: "Restaurant diner unhappy with their meal", role2: "Chef defending the quality of the food" },
|
| 397 |
+
{ role1: "Wedding guest who brought an uninvited plus-one", role2: "Bride or groom addressing the situation" }
|
| 398 |
],
|
| 399 |
+
social: [
|
| 400 |
+
{ role1: "New neighbor introducing themselves", role2: "Neighbor welcoming them to the neighborhood" },
|
| 401 |
+
{ role1: "Friend inviting someone to a party", role2: "Friend excited to attend and asking details" },
|
| 402 |
+
{ role1: "Coworker making small talk by the coffee machine", role2: "Coworker chatting about weekend plans" },
|
| 403 |
+
{ role1: "Person asking for directions in a new city", role2: "Local giving detailed directions" },
|
| 404 |
+
{ role1: "Friend recommending a great restaurant", role2: "Friend asking about the menu and prices" },
|
| 405 |
+
{ role1: "Dog owner at the park chatting", role2: "Another dog owner whose dog wants to play" },
|
| 406 |
+
{ role1: "Person complimenting someone's outfit", role2: "Person thanking them and sharing where they bought it" },
|
| 407 |
+
{ role1: "Gym member spotting someone lifting weights", role2: "Person grateful for the help and chatting" },
|
| 408 |
+
{ role1: "Book club member discussing the latest read", role2: "Member who had a different interpretation" },
|
| 409 |
+
{ role1: "Parent at school pickup making conversation", role2: "Parent organizing a playdate for the kids" },
|
| 410 |
+
{ role1: "Person asking to borrow a phone charger", role2: "Person happy to help and making conversation" },
|
| 411 |
+
{ role1: "Commuter sharing complaints about traffic", role2: "Fellow commuter agreeing and sharing their experience" },
|
| 412 |
+
{ role1: "Friend suggesting a weekend hiking trip", role2: "Friend discussing what to bring and where to go" },
|
| 413 |
+
{ role1: "Colleague planning a surprise party for coworker", role2: "Colleague helping coordinate the details" },
|
| 414 |
+
{ role1: "Volunteer at charity event meeting another volunteer", role2: "Volunteer discussing why they support the cause" },
|
| 415 |
+
{ role1: "Person recommending their favorite podcast", role2: "Person asking what makes it so interesting" }
|
| 416 |
],
|
| 417 |
+
interview: [
|
| 418 |
+
{ role1: "Hiring manager interviewing for marketing position", role2: "Job candidate highlighting their experience" },
|
| 419 |
+
{ role1: "College admissions interviewer asking about goals", role2: "High school student explaining why they want to attend" },
|
| 420 |
+
{ role1: "Journalist interviewing local business owner", role2: "Business owner sharing their success story" },
|
| 421 |
+
{ role1: "Podcast host interviewing an author about their book", role2: "Author discussing the inspiration behind their work" },
|
| 422 |
+
{ role1: "Salesperson pitching a new product", role2: "Potential client asking skeptical questions" },
|
| 423 |
+
{ role1: "Entrepreneur pitching business idea to investor", role2: "Investor evaluating the opportunity" },
|
| 424 |
+
{ role1: "Politician explaining their platform", role2: "Voter asking tough questions about policies" },
|
| 425 |
+
{ role1: "Parent asking teacher about child's progress", role2: "Teacher sharing both strengths and areas to improve" },
|
| 426 |
+
{ role1: "Realtor negotiating house price with seller", role2: "Homeowner explaining why price is justified" },
|
| 427 |
+
{ role1: "Lawyer questioning a witness", role2: "Witness explaining what they saw" },
|
| 428 |
+
{ role1: "Doctor explaining treatment options", role2: "Patient weighing risks and benefits" },
|
| 429 |
+
{ role1: "Contractor bidding on home renovation", role2: "Homeowner comparing quotes and asking questions" },
|
| 430 |
+
{ role1: "Charity representative asking for donation", role2: "Potential donor asking how money will be used" },
|
| 431 |
+
{ role1: "Dating app match on first meeting", role2: "Other person getting to know them" },
|
| 432 |
+
{ role1: "Professor discussing research opportunity with student", role2: "Student explaining their interest and qualifications" },
|
| 433 |
+
{ role1: "Manager asking employee to take on new project", role2: "Employee negotiating timeline and resources" }
|
| 434 |
]
|
| 435 |
};
|
| 436 |
|
|
|
|
| 449 |
const durationDisplay = document.getElementById('durationDisplay');
|
| 450 |
const placeholderText = document.getElementById('placeholderText');
|
| 451 |
const scenarioDisplay = document.getElementById('scenarioDisplay');
|
| 452 |
+
const role1 = document.getElementById('role1');
|
| 453 |
+
const role2 = document.getElementById('role2');
|
| 454 |
const timerDisplay = document.getElementById('timerDisplay');
|
| 455 |
|
| 456 |
categoryBtns.forEach(btn => {
|
|
|
|
| 519 |
placeholderText.classList.add('hidden');
|
| 520 |
scenarioDisplay.classList.remove('hidden');
|
| 521 |
|
| 522 |
+
role1.textContent = currentScenario.role1;
|
| 523 |
+
role2.textContent = currentScenario.role2;
|
| 524 |
updateTimerDisplay();
|
| 525 |
|
| 526 |
startBtn.classList.add('hidden');
|
|
|
|
| 537 |
remainingSeconds = durationSeconds;
|
| 538 |
currentScenario = getRandomScenario();
|
| 539 |
|
| 540 |
+
role1.textContent = currentScenario.role1;
|
| 541 |
+
role2.textContent = currentScenario.role2;
|
| 542 |
updateTimerDisplay();
|
| 543 |
|
| 544 |
startTimer();
|