Spaces:
Running
Running
Update index.html
Browse files- index.html +234 -270
index.html
CHANGED
|
@@ -3,23 +3,33 @@
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
-
<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, #
|
| 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 {
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
.category-selection {
|
| 20 |
background: white;
|
| 21 |
border-radius: 1rem;
|
| 22 |
-
box-shadow: 0 10px 15px -3px rgba(0,0,0,0.
|
| 23 |
padding: 2rem;
|
| 24 |
margin-bottom: 2rem;
|
| 25 |
}
|
|
@@ -32,7 +42,7 @@ text-align: center;
|
|
| 32 |
}
|
| 33 |
.categories {
|
| 34 |
display: grid;
|
| 35 |
-
grid-template-columns: repeat(auto-fit, minmax(
|
| 36 |
gap: 1rem;
|
| 37 |
}
|
| 38 |
.category-btn {
|
|
@@ -45,6 +55,7 @@ color: #1e40af;
|
|
| 45 |
cursor: pointer;
|
| 46 |
transition: all 0.2s;
|
| 47 |
text-align: center;
|
|
|
|
| 48 |
}
|
| 49 |
.category-btn:hover {
|
| 50 |
background: #dbeafe;
|
|
@@ -56,77 +67,77 @@ background: #3b82f6;
|
|
| 56 |
color: white;
|
| 57 |
border-color: #2563eb;
|
| 58 |
}
|
| 59 |
-
.
|
| 60 |
display: none;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 61 |
background: white;
|
| 62 |
border-radius: 1rem;
|
| 63 |
-
box-shadow: 0 10px 15px -3px rgba(0,0,0,0.
|
| 64 |
padding: 2rem;
|
| 65 |
-
}
|
| 66 |
-
.debate-container.active { display: block; }
|
| 67 |
-
.debate-topic {
|
| 68 |
-
text-align: center;
|
| 69 |
margin-bottom: 2rem;
|
| 70 |
-
|
| 71 |
-
background: linear-gradient(to right, #eff6ff, #fef3c7);
|
| 72 |
-
border-radius: 0.75rem;
|
| 73 |
}
|
| 74 |
-
.
|
| 75 |
font-size: 0.875rem;
|
| 76 |
-
color: #
|
| 77 |
-
font-weight:
|
| 78 |
margin-bottom: 0.5rem;
|
|
|
|
|
|
|
| 79 |
}
|
| 80 |
-
.
|
| 81 |
-
font-size: 1.
|
| 82 |
color: #1e3a8a;
|
| 83 |
font-weight: bold;
|
|
|
|
|
|
|
| 84 |
}
|
| 85 |
-
.
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
gap: 2rem;
|
| 89 |
-
margin-bottom: 2rem;
|
| 90 |
-
}
|
| 91 |
-
@media (max-width: 768px) {
|
| 92 |
-
.roles-container { grid-template-columns: 1fr; }
|
| 93 |
-
}
|
| 94 |
-
.role-card {
|
| 95 |
-
padding: 1.5rem;
|
| 96 |
border-radius: 0.75rem;
|
|
|
|
|
|
|
| 97 |
}
|
| 98 |
-
.
|
| 99 |
-
|
| 100 |
-
border: 2px solid #3b82f6;
|
| 101 |
-
}
|
| 102 |
-
.role-card.con {
|
| 103 |
-
background: linear-gradient(to bottom, #fef3c7, #fde68a);
|
| 104 |
-
border: 2px solid #f59e0b;
|
| 105 |
-
}
|
| 106 |
-
.role-header {
|
| 107 |
-
font-size: 1.25rem;
|
| 108 |
font-weight: bold;
|
| 109 |
-
margin-bottom:
|
| 110 |
-
|
| 111 |
}
|
| 112 |
-
.
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
font-size: 0.875rem;
|
| 116 |
-
font-weight: 600;
|
| 117 |
-
margin-bottom: 0.5rem;
|
| 118 |
}
|
| 119 |
-
.
|
| 120 |
-
|
| 121 |
-
.position-text {
|
| 122 |
-
font-size: 1rem;
|
| 123 |
line-height: 1.5;
|
| 124 |
}
|
| 125 |
-
.role-card.pro .position-text { color: #1e3a8a; }
|
| 126 |
-
.role-card.con .position-text { color: #78350f; }
|
| 127 |
.timer-section {
|
| 128 |
text-align: center;
|
| 129 |
margin-bottom: 2rem;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 130 |
}
|
| 131 |
.timer-label {
|
| 132 |
font-size: 0.875rem;
|
|
@@ -134,17 +145,21 @@ color: #6b7280;
|
|
| 134 |
margin-bottom: 0.5rem;
|
| 135 |
}
|
| 136 |
.timer-display {
|
| 137 |
-
font-size:
|
| 138 |
font-weight: bold;
|
| 139 |
color: #1e3a8a;
|
| 140 |
margin-bottom: 1rem;
|
|
|
|
| 141 |
}
|
|
|
|
|
|
|
| 142 |
.timer-controls {
|
| 143 |
display: flex;
|
| 144 |
gap: 1rem;
|
| 145 |
justify-content: center;
|
| 146 |
align-items: center;
|
| 147 |
margin-bottom: 1rem;
|
|
|
|
| 148 |
}
|
| 149 |
.slider-container {
|
| 150 |
display: flex;
|
|
@@ -219,246 +234,148 @@ background: #6b7280;
|
|
| 219 |
color: white;
|
| 220 |
}
|
| 221 |
.btn-back:hover { background: #4b5563; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 222 |
</style>
|
| 223 |
</head>
|
| 224 |
<body>
|
| 225 |
<div class="container">
|
| 226 |
<header>
|
| 227 |
-
<h1 class="title">
|
| 228 |
-
<p class="subtitle">
|
| 229 |
</header>
|
| 230 |
|
| 231 |
<div class="category-selection" id="categorySelection">
|
| 232 |
-
<h2 class="category-title">Choose
|
| 233 |
<div class="categories">
|
| 234 |
-
<button class="category-btn" data-category="
|
| 235 |
-
<button class="category-btn" data-category="
|
| 236 |
-
<button class="category-btn" data-category="
|
| 237 |
-
<button class="category-btn" data-category="environment">🌱 Environment & Health</button>
|
| 238 |
-
<button class="category-btn" data-category="entertainment">🎬 Entertainment & Lifestyle</button>
|
| 239 |
-
<button class="category-btn" data-category="fun">🎪 Fun & Weird</button>
|
| 240 |
</div>
|
| 241 |
</div>
|
| 242 |
|
| 243 |
-
<div class="
|
| 244 |
-
<div class="
|
| 245 |
-
<div class="topic-label">DEBATE TOPIC</div>
|
| 246 |
-
<div class="topic-text" id="topicText"></div>
|
| 247 |
-
</div>
|
| 248 |
|
| 249 |
-
<div class="
|
| 250 |
-
<div class="
|
| 251 |
-
<div class="
|
| 252 |
-
<div class="position-label">Your Position:</div>
|
| 253 |
-
<div class="position-text" id="proPosition"></div>
|
| 254 |
</div>
|
| 255 |
|
| 256 |
-
<div class="
|
| 257 |
-
<
|
| 258 |
-
<
|
| 259 |
-
<
|
| 260 |
-
</
|
|
|
|
|
|
|
|
|
|
|
|
|
| 261 |
</div>
|
| 262 |
|
| 263 |
<div class="timer-section">
|
| 264 |
-
<div class="timer-label">
|
| 265 |
-
<div class="timer-display" id="timerDisplay">
|
| 266 |
<div class="timer-controls">
|
| 267 |
<div class="slider-container">
|
| 268 |
<span class="duration-label">Duration:</span>
|
| 269 |
-
<input type="range" min="
|
| 270 |
-
<span class="duration-label" id="durationLabel">
|
| 271 |
</div>
|
| 272 |
</div>
|
| 273 |
</div>
|
| 274 |
|
| 275 |
<div class="controls">
|
| 276 |
-
<button class="btn btn-start" id="startBtn">▶️ Start</button>
|
| 277 |
-
<button class="btn btn-next" id="nextBtn">⏭️ Next
|
| 278 |
<button class="btn btn-reset" id="resetBtn">🔄 Reset</button>
|
| 279 |
<button class="btn btn-back" id="backBtn">⬅️ Back to Categories</button>
|
| 280 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 281 |
</div>
|
| 282 |
</div>
|
| 283 |
|
| 284 |
<script>
|
| 285 |
-
const
|
| 286 |
-
|
| 287 |
-
|
| 288 |
-
|
| 289 |
-
|
| 290 |
-
|
| 291 |
-
|
| 292 |
-
|
| 293 |
-
|
| 294 |
-
|
| 295 |
-
|
| 296 |
-
|
| 297 |
-
|
| 298 |
-
|
| 299 |
-
|
| 300 |
-
|
| 301 |
-
|
| 302 |
-
{
|
| 303 |
-
topic: "Self-driving cars should replace human drivers",
|
| 304 |
-
pro: "Argue that autonomous vehicles reduce accidents, traffic, and emissions. Discuss accessibility for elderly and disabled.",
|
| 305 |
-
con: "Argue about job losses, hacking risks, ethical dilemmas, and the value of human judgment in complex situations."
|
| 306 |
-
},
|
| 307 |
-
{
|
| 308 |
-
topic: "Technology companies have too much power and should be broken up",
|
| 309 |
-
pro: "Argue about monopolistic practices, privacy violations, and stifling of competition and innovation.",
|
| 310 |
-
con: "Argue that large companies drive innovation, provide free services, and breaking them up would harm consumers and the economy."
|
| 311 |
-
}
|
| 312 |
-
],
|
| 313 |
-
education: [
|
| 314 |
-
{
|
| 315 |
-
topic: "Homework should be banned in schools",
|
| 316 |
-
pro: "Argue that homework causes stress, reduces family time, and doesn't improve learning outcomes. Discuss inequality in home support.",
|
| 317 |
-
con: "Argue that homework reinforces learning, builds discipline and time management, and prepares students for higher education."
|
| 318 |
-
},
|
| 319 |
-
{
|
| 320 |
-
topic: "College education should be completely free for everyone",
|
| 321 |
-
pro: "Argue that education is a right, reduces inequality, and benefits society. Discuss student debt crisis and economic mobility.",
|
| 322 |
-
con: "Argue about taxpayer burden, devaluation of degrees, and that free doesn't mean quality. Discuss alternative funding models."
|
| 323 |
-
},
|
| 324 |
-
{
|
| 325 |
-
topic: "Standardized testing does more harm than good",
|
| 326 |
-
pro: "Argue that tests create stress, don't measure real learning, favor privileged students, and narrow curriculum focus.",
|
| 327 |
-
con: "Argue that tests provide objective measures, ensure accountability, identify struggling students, and maintain educational standards."
|
| 328 |
-
},
|
| 329 |
-
{
|
| 330 |
-
topic: "Students should be allowed to use AI tools like ChatGPT for schoolwork",
|
| 331 |
-
pro: "Argue that AI is a tool like calculators, prepares students for the future, and can enhance learning when used properly.",
|
| 332 |
-
con: "Argue that it prevents critical thinking, enables cheating, and students won't develop essential writing and research skills."
|
| 333 |
-
},
|
| 334 |
-
{
|
| 335 |
-
topic: "Schools should teach life skills instead of traditional academic subjects",
|
| 336 |
-
pro: "Argue that students need practical skills like budgeting, cooking, and emotional intelligence more than algebra or history.",
|
| 337 |
-
con: "Argue that academic subjects develop critical thinking, cultural literacy, and provide foundation for specialized careers."
|
| 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 |
-
topic: "Cultural appropriation is a serious problem that needs to be addressed",
|
| 363 |
-
pro: "Argue that it disrespects cultures, profits from marginalized groups, and perpetuates stereotypes and power imbalances.",
|
| 364 |
-
con: "Argue that cultural exchange is natural and positive, the concept is too vague, and it can prevent appreciation and learning."
|
| 365 |
-
}
|
| 366 |
-
],
|
| 367 |
-
environment: [
|
| 368 |
-
{
|
| 369 |
-
topic: "Eating meat should be banned to save the environment",
|
| 370 |
-
pro: "Argue about livestock's carbon footprint, deforestation, water use, and animal welfare. Discuss plant-based alternatives.",
|
| 371 |
-
con: "Argue about nutritional needs, cultural traditions, economic impact on farmers, and that technology can make meat sustainable."
|
| 372 |
-
},
|
| 373 |
-
{
|
| 374 |
-
topic: "Individual actions matter more than corporate responsibility in fighting climate change",
|
| 375 |
-
pro: "Argue that consumer choices drive markets, individual actions inspire others, and personal responsibility is essential.",
|
| 376 |
-
con: "Argue that corporations cause most emissions, individuals have limited impact, and systemic change requires policy and regulation."
|
| 377 |
-
},
|
| 378 |
-
{
|
| 379 |
-
topic: "Nuclear energy is the best solution to climate change",
|
| 380 |
-
pro: "Argue that nuclear is clean, reliable, and efficient. Discuss modern safety and waste management improvements.",
|
| 381 |
-
con: "Argue about disaster risks, waste storage problems, high costs, and that renewables are safer and increasingly cheaper."
|
| 382 |
-
},
|
| 383 |
-
{
|
| 384 |
-
topic: "Plastic should be completely banned worldwide",
|
| 385 |
-
pro: "Argue about ocean pollution, microplastics in food chain, and that alternatives exist for most uses.",
|
| 386 |
-
con: "Argue about medical uses, food preservation, cost of alternatives, and that better recycling and innovation are the answer."
|
| 387 |
-
},
|
| 388 |
-
{
|
| 389 |
-
topic: "Mental health days should be treated the same as sick days at work and school",
|
| 390 |
-
pro: "Argue that mental health equals physical health, reduces burnout, improves productivity, and reduces stigma.",
|
| 391 |
-
con: "Argue about potential abuse, difficulty verifying, and that it might encourage avoidance rather than addressing root problems."
|
| 392 |
-
}
|
| 393 |
-
],
|
| 394 |
-
entertainment: [
|
| 395 |
-
{
|
| 396 |
-
topic: "Video games do more harm than good",
|
| 397 |
-
pro: "Argue about addiction, violence, social isolation, and negative effects on physical health and academic performance.",
|
| 398 |
-
con: "Argue that games improve problem-solving, hand-eye coordination, social connections, and provide stress relief and creativity."
|
| 399 |
-
},
|
| 400 |
-
{
|
| 401 |
-
topic: "Reality TV has a negative impact on society",
|
| 402 |
-
pro: "Argue that it promotes drama, superficiality, and unrealistic expectations. Discuss exploitation and dumbing down of culture.",
|
| 403 |
-
con: "Argue that it's harmless entertainment, provides opportunities for ordinary people, and reflects real human behavior and diversity."
|
| 404 |
-
},
|
| 405 |
-
{
|
| 406 |
-
topic: "Professional athletes are paid too much money",
|
| 407 |
-
pro: "Argue about income inequality, that teachers and nurses deserve more, and that sports salaries are excessive and unjustified.",
|
| 408 |
-
con: "Argue about market value, short careers, revenue generation, and that they're paid what the market determines they're worth."
|
| 409 |
-
},
|
| 410 |
-
{
|
| 411 |
-
topic: "Streaming services are better than traditional cable TV",
|
| 412 |
-
pro: "Argue about on-demand convenience, no commercials, better content, lower cost, and personalized recommendations.",
|
| 413 |
-
con: "Argue about subscription fatigue, content fragmentation, loss of shared cultural moments, and that cable offers live sports and news."
|
| 414 |
-
},
|
| 415 |
-
{
|
| 416 |
-
topic: "Social media has ruined travel experiences",
|
| 417 |
-
pro: "Argue that people travel for photos not experiences, overcrowding at Instagram spots, and inauthenticity in travel.",
|
| 418 |
-
con: "Argue that social media inspires travel, helps discover hidden gems, connects travelers, and documents memories meaningfully."
|
| 419 |
-
}
|
| 420 |
-
],
|
| 421 |
-
fun: [
|
| 422 |
-
{
|
| 423 |
-
topic: "Pineapple belongs on pizza",
|
| 424 |
-
pro: "Argue that sweet and savory combinations are delicious, it's a valid personal preference, and food gatekeeping is silly.",
|
| 425 |
-
con: "Argue that it's a crime against Italian cuisine, the texture is wrong, and some food combinations are objectively bad."
|
| 426 |
-
},
|
| 427 |
-
{
|
| 428 |
-
topic: "Cats are better pets than dogs",
|
| 429 |
-
pro: "Argue that cats are independent, clean, quiet, don't need walks, and are perfect for busy people and small spaces.",
|
| 430 |
-
con: "Argue that dogs are loyal, trainable, protective, more interactive, and provide better companionship and emotional support."
|
| 431 |
-
},
|
| 432 |
-
{
|
| 433 |
-
topic: "Time travel to the past would be better than time travel to the future",
|
| 434 |
-
pro: "Argue about experiencing history firsthand, meeting historical figures, and that the past is known while the future is uncertain.",
|
| 435 |
-
con: "Argue about seeing technological advances, avoiding past diseases and hardships, and that you can't change the past anyway."
|
| 436 |
-
},
|
| 437 |
-
{
|
| 438 |
-
topic: "Aliens have definitely visited Earth",
|
| 439 |
-
pro: "Argue about UFO sightings, ancient structures, government cover-ups, and the statistical probability of other intelligent life.",
|
| 440 |
-
con: "Argue about lack of concrete evidence, that extraordinary claims need extraordinary proof, and alternative explanations exist."
|
| 441 |
-
},
|
| 442 |
-
{
|
| 443 |
-
topic: "Breakfast is the most overrated meal of the day",
|
| 444 |
-
pro: "Argue that breakfast foods are just marketing, intermittent fasting is healthy, and people should eat when hungry not by schedule.",
|
| 445 |
-
con: "Argue that breakfast provides energy, improves focus, kickstarts metabolism, and breakfast foods are objectively the best foods."
|
| 446 |
-
}
|
| 447 |
]
|
| 448 |
};
|
| 449 |
|
| 450 |
let currentCategory = null;
|
| 451 |
-
let
|
|
|
|
| 452 |
let timerInterval = null;
|
| 453 |
-
let timeRemaining =
|
| 454 |
-
let duration =
|
| 455 |
let isRunning = false;
|
| 456 |
|
| 457 |
const categorySelection = document.getElementById('categorySelection');
|
| 458 |
-
const
|
| 459 |
-
const
|
| 460 |
-
const proPosition = document.getElementById('proPosition');
|
| 461 |
-
const conPosition = document.getElementById('conPosition');
|
| 462 |
const timerDisplay = document.getElementById('timerDisplay');
|
| 463 |
const durationSlider = document.getElementById('durationSlider');
|
| 464 |
const durationLabel = document.getElementById('durationLabel');
|
|
@@ -466,26 +383,51 @@ const startBtn = document.getElementById('startBtn');
|
|
| 466 |
const nextBtn = document.getElementById('nextBtn');
|
| 467 |
const resetBtn = document.getElementById('resetBtn');
|
| 468 |
const backBtn = document.getElementById('backBtn');
|
|
|
|
| 469 |
|
| 470 |
document.querySelectorAll('.category-btn').forEach(btn => {
|
| 471 |
btn.addEventListener('click', () => {
|
| 472 |
currentCategory = btn.dataset.category;
|
| 473 |
-
|
| 474 |
-
|
|
|
|
| 475 |
});
|
| 476 |
});
|
| 477 |
|
| 478 |
-
function
|
| 479 |
categorySelection.style.display = 'none';
|
| 480 |
-
|
| 481 |
-
loadDebate();
|
| 482 |
}
|
| 483 |
|
| 484 |
-
function
|
| 485 |
-
|
| 486 |
-
|
| 487 |
-
|
| 488 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 489 |
reset();
|
| 490 |
}
|
| 491 |
|
|
@@ -493,6 +435,14 @@ function updateTimerDisplay() {
|
|
| 493 |
const minutes = Math.floor(timeRemaining / 60);
|
| 494 |
const seconds = timeRemaining % 60;
|
| 495 |
timerDisplay.textContent = `${minutes}:${seconds.toString().padStart(2, '0')}`;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 496 |
}
|
| 497 |
|
| 498 |
function start() {
|
|
@@ -515,9 +465,7 @@ durationSlider.disabled = false;
|
|
| 515 |
}
|
| 516 |
|
| 517 |
function next() {
|
| 518 |
-
|
| 519 |
-
currentDebateIndex = availableIndices[Math.floor(Math.random() * availableIndices.length)];
|
| 520 |
-
loadDebate();
|
| 521 |
}
|
| 522 |
|
| 523 |
function reset() {
|
|
@@ -532,8 +480,8 @@ durationSlider.disabled = false;
|
|
| 532 |
durationSlider.addEventListener('input', (e) => {
|
| 533 |
duration = parseInt(e.target.value);
|
| 534 |
timeRemaining = duration;
|
| 535 |
-
const
|
| 536 |
-
durationLabel.textContent =
|
| 537 |
updateTimerDisplay();
|
| 538 |
});
|
| 539 |
|
|
@@ -541,11 +489,27 @@ startBtn.addEventListener('click', start);
|
|
| 541 |
nextBtn.addEventListener('click', next);
|
| 542 |
resetBtn.addEventListener('click', reset);
|
| 543 |
backBtn.addEventListener('click', () => {
|
| 544 |
-
|
| 545 |
categorySelection.style.display = 'block';
|
| 546 |
reset();
|
| 547 |
});
|
| 548 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 549 |
updateTimerDisplay();
|
| 550 |
</script>
|
| 551 |
</body>
|
|
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Hot Seat Headlines - News Anchor Challenge</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, #1e3a8a, #3b82f6);
|
| 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 {
|
| 18 |
+
font-size: 2.5rem;
|
| 19 |
+
color: #fbbf24;
|
| 20 |
+
font-weight: bold;
|
| 21 |
+
margin-bottom: 0.5rem;
|
| 22 |
+
text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
|
| 23 |
+
}
|
| 24 |
+
.subtitle {
|
| 25 |
+
color: #fef3c7;
|
| 26 |
+
font-size: 1.125rem;
|
| 27 |
+
text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
|
| 28 |
+
}
|
| 29 |
.category-selection {
|
| 30 |
background: white;
|
| 31 |
border-radius: 1rem;
|
| 32 |
+
box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3);
|
| 33 |
padding: 2rem;
|
| 34 |
margin-bottom: 2rem;
|
| 35 |
}
|
|
|
|
| 42 |
}
|
| 43 |
.categories {
|
| 44 |
display: grid;
|
| 45 |
+
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
| 46 |
gap: 1rem;
|
| 47 |
}
|
| 48 |
.category-btn {
|
|
|
|
| 55 |
cursor: pointer;
|
| 56 |
transition: all 0.2s;
|
| 57 |
text-align: center;
|
| 58 |
+
font-size: 1rem;
|
| 59 |
}
|
| 60 |
.category-btn:hover {
|
| 61 |
background: #dbeafe;
|
|
|
|
| 67 |
color: white;
|
| 68 |
border-color: #2563eb;
|
| 69 |
}
|
| 70 |
+
.news-container {
|
| 71 |
display: none;
|
| 72 |
+
}
|
| 73 |
+
.news-container.active { display: block; }
|
| 74 |
+
.breaking-banner {
|
| 75 |
+
background: #dc2626;
|
| 76 |
+
color: white;
|
| 77 |
+
padding: 0.5rem 1rem;
|
| 78 |
+
font-weight: bold;
|
| 79 |
+
font-size: 1.125rem;
|
| 80 |
+
text-align: center;
|
| 81 |
+
margin-bottom: 1rem;
|
| 82 |
+
border-radius: 0.5rem;
|
| 83 |
+
animation: pulse 2s infinite;
|
| 84 |
+
box-shadow: 0 4px 6px -1px rgba(0,0,0,0.3);
|
| 85 |
+
}
|
| 86 |
+
@keyframes pulse {
|
| 87 |
+
0%, 100% { opacity: 1; }
|
| 88 |
+
50% { opacity: 0.8; }
|
| 89 |
+
}
|
| 90 |
+
.headline-card {
|
| 91 |
background: white;
|
| 92 |
border-radius: 1rem;
|
| 93 |
+
box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3);
|
| 94 |
padding: 2rem;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 95 |
margin-bottom: 2rem;
|
| 96 |
+
border-left: 6px solid #dc2626;
|
|
|
|
|
|
|
| 97 |
}
|
| 98 |
+
.headline-label {
|
| 99 |
font-size: 0.875rem;
|
| 100 |
+
color: #dc2626;
|
| 101 |
+
font-weight: 700;
|
| 102 |
margin-bottom: 0.5rem;
|
| 103 |
+
text-transform: uppercase;
|
| 104 |
+
letter-spacing: 1px;
|
| 105 |
}
|
| 106 |
+
.headline-text {
|
| 107 |
+
font-size: 1.75rem;
|
| 108 |
color: #1e3a8a;
|
| 109 |
font-weight: bold;
|
| 110 |
+
line-height: 1.4;
|
| 111 |
+
margin-bottom: 1rem;
|
| 112 |
}
|
| 113 |
+
.instructions {
|
| 114 |
+
background: #fef3c7;
|
| 115 |
+
border: 2px solid #fbbf24;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 116 |
border-radius: 0.75rem;
|
| 117 |
+
padding: 1.5rem;
|
| 118 |
+
margin-bottom: 2rem;
|
| 119 |
}
|
| 120 |
+
.instructions h3 {
|
| 121 |
+
color: #92400e;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 122 |
font-weight: bold;
|
| 123 |
+
margin-bottom: 0.75rem;
|
| 124 |
+
font-size: 1.125rem;
|
| 125 |
}
|
| 126 |
+
.instructions ol {
|
| 127 |
+
margin-left: 1.5rem;
|
| 128 |
+
color: #78350f;
|
|
|
|
|
|
|
|
|
|
| 129 |
}
|
| 130 |
+
.instructions li {
|
| 131 |
+
margin-bottom: 0.5rem;
|
|
|
|
|
|
|
| 132 |
line-height: 1.5;
|
| 133 |
}
|
|
|
|
|
|
|
| 134 |
.timer-section {
|
| 135 |
text-align: center;
|
| 136 |
margin-bottom: 2rem;
|
| 137 |
+
background: white;
|
| 138 |
+
padding: 2rem;
|
| 139 |
+
border-radius: 1rem;
|
| 140 |
+
box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
|
| 141 |
}
|
| 142 |
.timer-label {
|
| 143 |
font-size: 0.875rem;
|
|
|
|
| 145 |
margin-bottom: 0.5rem;
|
| 146 |
}
|
| 147 |
.timer-display {
|
| 148 |
+
font-size: 3.5rem;
|
| 149 |
font-weight: bold;
|
| 150 |
color: #1e3a8a;
|
| 151 |
margin-bottom: 1rem;
|
| 152 |
+
font-family: 'Courier New', monospace;
|
| 153 |
}
|
| 154 |
+
.timer-display.warning { color: #f59e0b; }
|
| 155 |
+
.timer-display.danger { color: #dc2626; }
|
| 156 |
.timer-controls {
|
| 157 |
display: flex;
|
| 158 |
gap: 1rem;
|
| 159 |
justify-content: center;
|
| 160 |
align-items: center;
|
| 161 |
margin-bottom: 1rem;
|
| 162 |
+
flex-wrap: wrap;
|
| 163 |
}
|
| 164 |
.slider-container {
|
| 165 |
display: flex;
|
|
|
|
| 234 |
color: white;
|
| 235 |
}
|
| 236 |
.btn-back:hover { background: #4b5563; }
|
| 237 |
+
.news-ticker {
|
| 238 |
+
background: #1e3a8a;
|
| 239 |
+
color: white;
|
| 240 |
+
padding: 0.5rem;
|
| 241 |
+
font-size: 0.875rem;
|
| 242 |
+
overflow: hidden;
|
| 243 |
+
white-space: nowrap;
|
| 244 |
+
border-radius: 0.5rem;
|
| 245 |
+
margin-top: 2rem;
|
| 246 |
+
}
|
| 247 |
+
.ticker-content {
|
| 248 |
+
display: inline-block;
|
| 249 |
+
padding-left: 100%;
|
| 250 |
+
animation: ticker 30s linear infinite;
|
| 251 |
+
}
|
| 252 |
+
@keyframes ticker {
|
| 253 |
+
0% { transform: translate(0, 0); }
|
| 254 |
+
100% { transform: translate(-100%, 0); }
|
| 255 |
+
}
|
| 256 |
+
@media (max-width: 768px) {
|
| 257 |
+
.title { font-size: 2rem; }
|
| 258 |
+
.headline-text { font-size: 1.5rem; }
|
| 259 |
+
.timer-display { font-size: 2.5rem; }
|
| 260 |
+
}
|
| 261 |
</style>
|
| 262 |
</head>
|
| 263 |
<body>
|
| 264 |
<div class="container">
|
| 265 |
<header>
|
| 266 |
+
<h1 class="title">📺 Hot Seat Headlines</h1>
|
| 267 |
+
<p class="subtitle">News Anchor Challenge - Improvise Under Pressure!</p>
|
| 268 |
</header>
|
| 269 |
|
| 270 |
<div class="category-selection" id="categorySelection">
|
| 271 |
+
<h2 class="category-title">Choose Your News Category</h2>
|
| 272 |
<div class="categories">
|
| 273 |
+
<button class="category-btn" data-category="breaking">🔴 Breaking News</button>
|
| 274 |
+
<button class="category-btn" data-category="ridiculous">🤪 Ridiculous Headlines</button>
|
| 275 |
+
<button class="category-btn" data-category="mixed">🎲 Mixed Mode</button>
|
|
|
|
|
|
|
|
|
|
| 276 |
</div>
|
| 277 |
</div>
|
| 278 |
|
| 279 |
+
<div class="news-container" id="newsContainer">
|
| 280 |
+
<div class="breaking-banner">🔴 BREAKING NEWS 🔴</div>
|
|
|
|
|
|
|
|
|
|
| 281 |
|
| 282 |
+
<div class="headline-card">
|
| 283 |
+
<div class="headline-label">LIVE FROM THE NEWSROOM</div>
|
| 284 |
+
<div class="headline-text" id="headlineText"></div>
|
|
|
|
|
|
|
| 285 |
</div>
|
| 286 |
|
| 287 |
+
<div class="instructions">
|
| 288 |
+
<h3>📋 Your Mission as News Anchor:</h3>
|
| 289 |
+
<ol>
|
| 290 |
+
<li><strong>Read the headline</strong> clearly and confidently</li>
|
| 291 |
+
<li><strong>Improvise 30-60 seconds</strong> of "reporting" on the story (make up details!)</li>
|
| 292 |
+
<li><strong>Stay in character</strong> as a professional news anchor</li>
|
| 293 |
+
<li><strong>Hit "Next Headline"</strong> mid-report to practice smooth transitions</li>
|
| 294 |
+
<li><strong>Have fun!</strong> The absurdity is part of the practice</li>
|
| 295 |
+
</ol>
|
| 296 |
</div>
|
| 297 |
|
| 298 |
<div class="timer-section">
|
| 299 |
+
<div class="timer-label">Report Timer</div>
|
| 300 |
+
<div class="timer-display" id="timerDisplay">0:30</div>
|
| 301 |
<div class="timer-controls">
|
| 302 |
<div class="slider-container">
|
| 303 |
<span class="duration-label">Duration:</span>
|
| 304 |
+
<input type="range" min="30" max="90" value="30" step="15" class="slider" id="durationSlider">
|
| 305 |
+
<span class="duration-label" id="durationLabel">30 sec</span>
|
| 306 |
</div>
|
| 307 |
</div>
|
| 308 |
</div>
|
| 309 |
|
| 310 |
<div class="controls">
|
| 311 |
+
<button class="btn btn-start" id="startBtn">▶️ Start Report</button>
|
| 312 |
+
<button class="btn btn-next" id="nextBtn">⏭️ Next Headline</button>
|
| 313 |
<button class="btn btn-reset" id="resetBtn">🔄 Reset</button>
|
| 314 |
<button class="btn btn-back" id="backBtn">⬅️ Back to Categories</button>
|
| 315 |
</div>
|
| 316 |
+
|
| 317 |
+
<div class="news-ticker">
|
| 318 |
+
<div class="ticker-content" id="tickerContent">
|
| 319 |
+
Breaking: Practice makes perfect • Stay calm under pressure • Improvisation builds fluency • You're doing great! •
|
| 320 |
+
</div>
|
| 321 |
+
</div>
|
| 322 |
</div>
|
| 323 |
</div>
|
| 324 |
|
| 325 |
<script>
|
| 326 |
+
const headlines = {
|
| 327 |
+
breaking: [
|
| 328 |
+
"Local Mayor Announces Surprise City-Wide Pizza Party This Friday",
|
| 329 |
+
"Scientists Discover New Species of Butterfly in Downtown Park",
|
| 330 |
+
"Traffic Delays Expected Due to Unexpected Parade of Ducks",
|
| 331 |
+
"City Council Votes to Make Tuesdays 'Casual Dress Day' for Everyone",
|
| 332 |
+
"Breaking: Local Library Introduces 24-Hour Book Vending Machine",
|
| 333 |
+
"Weather Alert: Unusually Perfect Weather Expected All Week",
|
| 334 |
+
"New Study Shows Napping Increases Productivity by 200%",
|
| 335 |
+
"Local Hero Saves Cat Stuck in Tree Using Elaborate Pulley System",
|
| 336 |
+
"City Announces Plans for World's Largest Community Garden",
|
| 337 |
+
"Breaking: Local Coffee Shop Introduces 'Pay What You Feel' Policy",
|
| 338 |
+
"Transportation Department Unveils Plans for Underground Bike Lanes",
|
| 339 |
+
"Local School Wins National Award for Creative Lunch Menu",
|
| 340 |
+
"City Park to Host First-Ever Outdoor Silent Disco This Weekend",
|
| 341 |
+
"Breaking: Neighborhood Watch Reports Suspicious Amount of Kindness",
|
| 342 |
+
"Local Business Owner Gives All Employees Surprise Day Off"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 343 |
],
|
| 344 |
+
ridiculous: [
|
| 345 |
+
"Local Man Discovers Pizza-Flavored Ice Cream, Divides Nation",
|
| 346 |
+
"Scientists Confirm Cats Actually Do Understand Us, Just Don't Care",
|
| 347 |
+
"Breaking: Squirrels Organize First-Ever Acorn Summit Downtown",
|
| 348 |
+
"City Council Debates Mandatory Nap Time for All Adults",
|
| 349 |
+
"Local Woman Teaches Dog to Use Smartphone, Regrets It Immediately",
|
| 350 |
+
"Breaking: Time Traveler from 2050 Says We're Doing Great",
|
| 351 |
+
"Pigeons Form Union, Demand Better Bread Crumbs",
|
| 352 |
+
"Local Man Claims He Can Communicate with Houseplants",
|
| 353 |
+
"Breaking: Scientists Discover Socks Actually Do Disappear in Dryer Portal",
|
| 354 |
+
"Neighborhood Cat Elected as Honorary Mayor by Landslide",
|
| 355 |
+
"Local Gym Introduces 'Netflix and Actually Chill' Workout Class",
|
| 356 |
+
"Breaking: Man Finds Meaning of Life, Forgets to Write It Down",
|
| 357 |
+
"Aliens Land, Ask for Directions to Nearest Coffee Shop",
|
| 358 |
+
"Local Woman's Sourdough Starter Gains Sentience, Demands Rights",
|
| 359 |
+
"Breaking: Researchers Prove Monday is Actually Unnecessary",
|
| 360 |
+
"Bigfoot Spotted at Local Grocery Store, Buying Organic Vegetables",
|
| 361 |
+
"Local Man's Dad Jokes Reach Critical Mass, Create Black Hole",
|
| 362 |
+
"Breaking: Scientists Invent Machine That Folds Fitted Sheets Perfectly",
|
| 363 |
+
"Neighborhood Dogs Hold Secret Meeting, Humans Not Invited",
|
| 364 |
+
"Local Teen Discovers Adults Have Been Making It Up All Along"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 365 |
]
|
| 366 |
};
|
| 367 |
|
| 368 |
let currentCategory = null;
|
| 369 |
+
let currentHeadlineIndex = 0;
|
| 370 |
+
let usedHeadlines = [];
|
| 371 |
let timerInterval = null;
|
| 372 |
+
let timeRemaining = 30;
|
| 373 |
+
let duration = 30;
|
| 374 |
let isRunning = false;
|
| 375 |
|
| 376 |
const categorySelection = document.getElementById('categorySelection');
|
| 377 |
+
const newsContainer = document.getElementById('newsContainer');
|
| 378 |
+
const headlineText = document.getElementById('headlineText');
|
|
|
|
|
|
|
| 379 |
const timerDisplay = document.getElementById('timerDisplay');
|
| 380 |
const durationSlider = document.getElementById('durationSlider');
|
| 381 |
const durationLabel = document.getElementById('durationLabel');
|
|
|
|
| 383 |
const nextBtn = document.getElementById('nextBtn');
|
| 384 |
const resetBtn = document.getElementById('resetBtn');
|
| 385 |
const backBtn = document.getElementById('backBtn');
|
| 386 |
+
const tickerContent = document.getElementById('tickerContent');
|
| 387 |
|
| 388 |
document.querySelectorAll('.category-btn').forEach(btn => {
|
| 389 |
btn.addEventListener('click', () => {
|
| 390 |
currentCategory = btn.dataset.category;
|
| 391 |
+
usedHeadlines = [];
|
| 392 |
+
showNews();
|
| 393 |
+
loadHeadline();
|
| 394 |
});
|
| 395 |
});
|
| 396 |
|
| 397 |
+
function showNews() {
|
| 398 |
categorySelection.style.display = 'none';
|
| 399 |
+
newsContainer.classList.add('active');
|
|
|
|
| 400 |
}
|
| 401 |
|
| 402 |
+
function getRandomHeadline() {
|
| 403 |
+
let pool = [];
|
| 404 |
+
if (currentCategory === 'mixed') {
|
| 405 |
+
pool = [...headlines.breaking, ...headlines.ridiculous];
|
| 406 |
+
} else {
|
| 407 |
+
pool = headlines[currentCategory];
|
| 408 |
+
}
|
| 409 |
+
|
| 410 |
+
// Filter out used headlines
|
| 411 |
+
let availableHeadlines = pool.filter((h, i) => !usedHeadlines.includes(i));
|
| 412 |
+
|
| 413 |
+
// Reset if all used
|
| 414 |
+
if (availableHeadlines.length === 0) {
|
| 415 |
+
usedHeadlines = [];
|
| 416 |
+
availableHeadlines = pool;
|
| 417 |
+
}
|
| 418 |
+
|
| 419 |
+
// Get random headline
|
| 420 |
+
const randomIndex = Math.floor(Math.random() * availableHeadlines.length);
|
| 421 |
+
const headline = availableHeadlines[randomIndex];
|
| 422 |
+
const originalIndex = pool.indexOf(headline);
|
| 423 |
+
usedHeadlines.push(originalIndex);
|
| 424 |
+
|
| 425 |
+
return headline;
|
| 426 |
+
}
|
| 427 |
+
|
| 428 |
+
function loadHeadline() {
|
| 429 |
+
const headline = getRandomHeadline();
|
| 430 |
+
headlineText.textContent = headline;
|
| 431 |
reset();
|
| 432 |
}
|
| 433 |
|
|
|
|
| 435 |
const minutes = Math.floor(timeRemaining / 60);
|
| 436 |
const seconds = timeRemaining % 60;
|
| 437 |
timerDisplay.textContent = `${minutes}:${seconds.toString().padStart(2, '0')}`;
|
| 438 |
+
|
| 439 |
+
// Color changes
|
| 440 |
+
timerDisplay.classList.remove('warning', 'danger');
|
| 441 |
+
if (timeRemaining <= 10) {
|
| 442 |
+
timerDisplay.classList.add('danger');
|
| 443 |
+
} else if (timeRemaining <= 20) {
|
| 444 |
+
timerDisplay.classList.add('warning');
|
| 445 |
+
}
|
| 446 |
}
|
| 447 |
|
| 448 |
function start() {
|
|
|
|
| 465 |
}
|
| 466 |
|
| 467 |
function next() {
|
| 468 |
+
loadHeadline();
|
|
|
|
|
|
|
| 469 |
}
|
| 470 |
|
| 471 |
function reset() {
|
|
|
|
| 480 |
durationSlider.addEventListener('input', (e) => {
|
| 481 |
duration = parseInt(e.target.value);
|
| 482 |
timeRemaining = duration;
|
| 483 |
+
const label = duration >= 60 ? `${duration / 60} min` : `${duration} sec`;
|
| 484 |
+
durationLabel.textContent = label;
|
| 485 |
updateTimerDisplay();
|
| 486 |
});
|
| 487 |
|
|
|
|
| 489 |
nextBtn.addEventListener('click', next);
|
| 490 |
resetBtn.addEventListener('click', reset);
|
| 491 |
backBtn.addEventListener('click', () => {
|
| 492 |
+
newsContainer.classList.remove('active');
|
| 493 |
categorySelection.style.display = 'block';
|
| 494 |
reset();
|
| 495 |
});
|
| 496 |
|
| 497 |
+
// Update ticker
|
| 498 |
+
function updateTicker() {
|
| 499 |
+
const tips = [
|
| 500 |
+
"Breaking: Practice makes perfect",
|
| 501 |
+
"Stay calm under pressure",
|
| 502 |
+
"Improvisation builds fluency",
|
| 503 |
+
"You're doing great!",
|
| 504 |
+
"Make up details confidently",
|
| 505 |
+
"Smooth transitions matter",
|
| 506 |
+
"Have fun with it!",
|
| 507 |
+
"Every report is practice"
|
| 508 |
+
];
|
| 509 |
+
tickerContent.textContent = tips.join(' • ') + ' • ';
|
| 510 |
+
}
|
| 511 |
+
|
| 512 |
+
updateTicker();
|
| 513 |
updateTimerDisplay();
|
| 514 |
</script>
|
| 515 |
</body>
|