Update index.html
Browse files- index.html +30 -11
index.html
CHANGED
|
@@ -124,6 +124,22 @@
|
|
| 124 |
|
| 125 |
.scenario-display.hidden { display: none; }
|
| 126 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 127 |
.roles-container {
|
| 128 |
display: grid;
|
| 129 |
grid-template-columns: 1fr 1fr;
|
|
@@ -286,17 +302,20 @@
|
|
| 286 |
</div>
|
| 287 |
|
| 288 |
<div class="timer-setup">
|
| 289 |
-
<div class="timer-label">Conversation Duration: <span id="durationDisplay">
|
| 290 |
-
<input type="range" id="durationSlider" min="
|
| 291 |
<div class="range-labels">
|
| 292 |
-
<span>30s</span>
|
| 293 |
-
<span>60s</span>
|
| 294 |
-
<span>90s</span>
|
| 295 |
<span>2min</span>
|
|
|
|
|
|
|
| 296 |
</div>
|
| 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>
|
|
@@ -308,7 +327,7 @@
|
|
| 308 |
</div>
|
| 309 |
</div>
|
| 310 |
<div class="timer-display-container">
|
| 311 |
-
<div class="timer-display" id="timerDisplay">
|
| 312 |
</div>
|
| 313 |
</div>
|
| 314 |
|
|
@@ -331,7 +350,7 @@
|
|
| 331 |
<h3>How to Practice:</h3>
|
| 332 |
<ol>
|
| 333 |
<li>Select a scenario category that interests you</li>
|
| 334 |
-
<li>Set your conversation duration (
|
| 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>
|
|
@@ -437,8 +456,8 @@
|
|
| 437 |
let selectedCategory = null;
|
| 438 |
let isRunning = false;
|
| 439 |
let timerInterval = null;
|
| 440 |
-
let remainingSeconds =
|
| 441 |
-
let durationSeconds =
|
| 442 |
let currentScenario = null;
|
| 443 |
|
| 444 |
const categoryBtns = document.querySelectorAll('.category-btn');
|
|
@@ -484,9 +503,9 @@
|
|
| 484 |
timerDisplay.textContent = formatTime(remainingSeconds);
|
| 485 |
|
| 486 |
timerDisplay.classList.remove('warning', 'danger');
|
| 487 |
-
if (remainingSeconds <=
|
| 488 |
timerDisplay.classList.add('danger');
|
| 489 |
-
} else if (remainingSeconds <=
|
| 490 |
timerDisplay.classList.add('warning');
|
| 491 |
}
|
| 492 |
}
|
|
|
|
| 124 |
|
| 125 |
.scenario-display.hidden { display: none; }
|
| 126 |
|
| 127 |
+
.conversation-tip {
|
| 128 |
+
text-align: center;
|
| 129 |
+
margin-bottom: 2rem;
|
| 130 |
+
padding: 1rem;
|
| 131 |
+
background: #fef3c7;
|
| 132 |
+
border: 2px solid #fde68a;
|
| 133 |
+
border-radius: 0.75rem;
|
| 134 |
+
}
|
| 135 |
+
|
| 136 |
+
.conversation-tip p {
|
| 137 |
+
color: #78350f;
|
| 138 |
+
font-weight: 600;
|
| 139 |
+
font-size: 1rem;
|
| 140 |
+
line-height: 1.5;
|
| 141 |
+
}
|
| 142 |
+
|
| 143 |
.roles-container {
|
| 144 |
display: grid;
|
| 145 |
grid-template-columns: 1fr 1fr;
|
|
|
|
| 302 |
</div>
|
| 303 |
|
| 304 |
<div class="timer-setup">
|
| 305 |
+
<div class="timer-label">Conversation Duration: <span id="durationDisplay">120</span> seconds</div>
|
| 306 |
+
<input type="range" id="durationSlider" min="120" max="240" step="30" value="120">
|
| 307 |
<div class="range-labels">
|
|
|
|
|
|
|
|
|
|
| 308 |
<span>2min</span>
|
| 309 |
+
<span>3min</span>
|
| 310 |
+
<span>4min</span>
|
| 311 |
</div>
|
| 312 |
</div>
|
| 313 |
|
| 314 |
<div class="scenario-display hidden" id="scenarioDisplay">
|
| 315 |
+
<div class="conversation-tip">
|
| 316 |
+
<p>Each person should try not to talk more than 30 seconds at a time to encourage back and forth conversation</p>
|
| 317 |
+
</div>
|
| 318 |
+
|
| 319 |
<div class="roles-container">
|
| 320 |
<div class="role-card person1">
|
| 321 |
<div class="person-label">Person 1</div>
|
|
|
|
| 327 |
</div>
|
| 328 |
</div>
|
| 329 |
<div class="timer-display-container">
|
| 330 |
+
<div class="timer-display" id="timerDisplay">2:00</div>
|
| 331 |
</div>
|
| 332 |
</div>
|
| 333 |
|
|
|
|
| 350 |
<h3>How to Practice:</h3>
|
| 351 |
<ol>
|
| 352 |
<li>Select a scenario category that interests you</li>
|
| 353 |
+
<li>Set your conversation duration (2 to 4 minutes)</li>
|
| 354 |
<li>Press Start to receive roles for both people</li>
|
| 355 |
<li>Decide who will be Person 1 and who will be Person 2</li>
|
| 356 |
<li>Have a conversation using Short-Link-Stop pattern</li>
|
|
|
|
| 456 |
let selectedCategory = null;
|
| 457 |
let isRunning = false;
|
| 458 |
let timerInterval = null;
|
| 459 |
+
let remainingSeconds = 120;
|
| 460 |
+
let durationSeconds = 120;
|
| 461 |
let currentScenario = null;
|
| 462 |
|
| 463 |
const categoryBtns = document.querySelectorAll('.category-btn');
|
|
|
|
| 503 |
timerDisplay.textContent = formatTime(remainingSeconds);
|
| 504 |
|
| 505 |
timerDisplay.classList.remove('warning', 'danger');
|
| 506 |
+
if (remainingSeconds <= 30) {
|
| 507 |
timerDisplay.classList.add('danger');
|
| 508 |
+
} else if (remainingSeconds <= 60) {
|
| 509 |
timerDisplay.classList.add('warning');
|
| 510 |
}
|
| 511 |
}
|