Debates / index.html
rrr257's picture
Update index.html
e654671 verified
Raw History Blame Contribute Delete
19.8 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Debates Practice</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
background: linear-gradient(to bottom right, #dbeafe, #bfdbfe);
min-height: 100vh;
padding: 2rem;
}
.container { max-width: 64rem; margin: 0 auto; }
header { text-align: center; margin-bottom: 2rem; }
.title { font-size: 2.5rem; color: #1e3a8a; font-weight: bold; margin-bottom: 0.5rem; }
.subtitle { color: #1e40af; font-size: 1.125rem; }
.category-selection {
background: white;
border-radius: 1rem;
box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
padding: 2rem;
margin-bottom: 2rem;
}
.category-title {
font-size: 1.25rem;
font-weight: 600;
color: #1e3a8a;
margin-bottom: 1rem;
text-align: center;
}
.categories {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 1rem;
}
.category-btn {
padding: 1.25rem;
background: #eff6ff;
border: 2px solid #bfdbfe;
border-radius: 0.75rem;
font-weight: 600;
color: #1e40af;
cursor: pointer;
transition: all 0.2s;
text-align: center;
}
.category-btn:hover {
background: #dbeafe;
border-color: #93c5fd;
transform: translateY(-2px);
}
.category-btn.active {
background: #3b82f6;
color: white;
border-color: #2563eb;
}
.debate-container {
display: none;
background: white;
border-radius: 1rem;
box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
padding: 2rem;
}
.debate-container.active { display: block; }
.debate-topic {
text-align: center;
margin-bottom: 2rem;
padding: 1.5rem;
background: linear-gradient(to right, #eff6ff, #fef3c7);
border-radius: 0.75rem;
}
.topic-label {
font-size: 0.875rem;
color: #78350f;
font-weight: 600;
margin-bottom: 0.5rem;
}
.topic-text {
font-size: 1.5rem;
color: #1e3a8a;
font-weight: bold;
}
.roles-container {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 2rem;
margin-bottom: 2rem;
}
@media (max-width: 768px) {
.roles-container { grid-template-columns: 1fr; }
}
.role-card {
padding: 1.5rem;
border-radius: 0.75rem;
}
.role-card.pro {
background: linear-gradient(to bottom, #dbeafe, #bfdbfe);
border: 2px solid #3b82f6;
}
.role-card.con {
background: linear-gradient(to bottom, #fef3c7, #fde68a);
border: 2px solid #f59e0b;
}
.role-header {
font-size: 1.25rem;
font-weight: bold;
margin-bottom: 1rem;
text-align: center;
}
.role-card.pro .role-header { color: #1e40af; }
.role-card.con .role-header { color: #92400e; }
.position-label {
font-size: 0.875rem;
font-weight: 600;
margin-bottom: 0.5rem;
}
.role-card.pro .position-label { color: #1e40af; }
.role-card.con .position-label { color: #92400e; }
.position-text {
font-size: 1rem;
line-height: 1.5;
}
.role-card.pro .position-text { color: #1e3a8a; }
.role-card.con .position-text { color: #78350f; }
.timer-section {
text-align: center;
margin-bottom: 2rem;
}
.timer-label {
font-size: 0.875rem;
color: #6b7280;
margin-bottom: 0.5rem;
}
.timer-display {
font-size: 3rem;
font-weight: bold;
color: #1e3a8a;
margin-bottom: 1rem;
}
.timer-controls {
display: flex;
gap: 1rem;
justify-content: center;
align-items: center;
margin-bottom: 1rem;
}
.slider-container {
display: flex;
align-items: center;
gap: 1rem;
}
.slider {
width: 200px;
height: 8px;
border-radius: 4px;
background: #e5e7eb;
outline: none;
}
.slider::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 20px;
height: 20px;
border-radius: 50%;
background: #3b82f6;
cursor: pointer;
}
.slider::-moz-range-thumb {
width: 20px;
height: 20px;
border-radius: 50%;
background: #3b82f6;
cursor: pointer;
border: none;
}
.duration-label {
font-size: 0.875rem;
color: #6b7280;
min-width: 80px;
}
.controls {
display: flex;
gap: 1rem;
justify-content: center;
flex-wrap: wrap;
}
.btn {
padding: 0.75rem 2rem;
border: none;
border-radius: 0.5rem;
font-weight: 600;
cursor: pointer;
transition: all 0.2s;
font-size: 1rem;
}
.btn-start {
background: #10b981;
color: white;
}
.btn-start:hover { background: #059669; }
.btn-start:disabled {
background: #d1d5db;
cursor: not-allowed;
}
.btn-next {
background: #3b82f6;
color: white;
}
.btn-next:hover { background: #2563eb; }
.btn-reset {
background: #ef4444;
color: white;
}
.btn-reset:hover { background: #dc2626; }
.btn-back {
background: #6b7280;
color: white;
}
.btn-back:hover { background: #4b5563; }
</style>
</head>
<body>
<div class="container">
<header>
<h1 class="title">🎭 Debates Practice</h1>
<p class="subtitle">Practice debating skills with structured topics</p>
</header>
<div class="category-selection" id="categorySelection">
<h2 class="category-title">Choose a Debate Category</h2>
<div class="categories">
<button class="category-btn" data-category="technology">💻 Technology & Innovation</button>
<button class="category-btn" data-category="education">📚 Education & Learning</button>
<button class="category-btn" data-category="society">🌍 Society & Culture</button>
<button class="category-btn" data-category="environment">🌱 Environment & Health</button>
<button class="category-btn" data-category="entertainment">🎬 Entertainment & Lifestyle</button>
<button class="category-btn" data-category="fun">🎪 Fun & Weird</button>
</div>
</div>
<div class="debate-container" id="debateContainer">
<div class="debate-topic">
<div class="topic-label">DEBATE TOPIC</div>
<div class="topic-text" id="topicText"></div>
</div>
<div class="roles-container">
<div class="role-card pro">
<div class="role-header">👤 Person 1 (PRO/FOR)</div>
<div class="position-label">Your Position:</div>
<div class="position-text" id="proPosition"></div>
</div>
<div class="role-card con">
<div class="role-header">👤 Person 2 (CON/AGAINST)</div>
<div class="position-label">Your Position:</div>
<div class="position-text" id="conPosition"></div>
</div>
</div>
<div class="timer-section">
<div class="timer-label">Debate Timer</div>
<div class="timer-display" id="timerDisplay">2:00</div>
<div class="timer-controls">
<div class="slider-container">
<span class="duration-label">Duration:</span>
<input type="range" min="120" max="240" value="120" step="30" class="slider" id="durationSlider">
<span class="duration-label" id="durationLabel">2 min</span>
</div>
</div>
</div>
<div class="controls">
<button class="btn btn-start" id="startBtn">▶️ Start</button>
<button class="btn btn-next" id="nextBtn">⏭️ Next Topic</button>
<button class="btn btn-reset" id="resetBtn">🔄 Reset</button>
<button class="btn btn-back" id="backBtn">⬅️ Back to Categories</button>
</div>
</div>
</div>
<script>
const debates = {
technology: [
{
topic: "Artificial Intelligence will do more harm than good to society",
pro: "Argue that AI threatens jobs, privacy, and human autonomy. Discuss risks of bias, surveillance, and loss of human skills.",
con: "Argue that AI improves healthcare, productivity, and solves complex problems. Emphasize proper regulation and human oversight."
},
{
topic: "Social media platforms should be held legally responsible for user content",
pro: "Argue that platforms profit from harmful content and have the power to moderate. Discuss misinformation and mental health impacts.",
con: "Argue that this threatens free speech and innovation. Emphasize user responsibility and the impossibility of monitoring billions of posts."
},
{
topic: "Smartphones have made us less connected to each other",
pro: "Argue that face-to-face interaction has decreased, people are distracted, and relationships are more superficial.",
con: "Argue that smartphones enable global connections, help maintain long-distance relationships, and provide access to communities."
},
{
topic: "Self-driving cars should replace human drivers",
pro: "Argue that autonomous vehicles reduce accidents, traffic, and emissions. Discuss accessibility for elderly and disabled.",
con: "Argue about job losses, hacking risks, ethical dilemmas, and the value of human judgment in complex situations."
},
{
topic: "Technology companies have too much power and should be broken up",
pro: "Argue about monopolistic practices, privacy violations, and stifling of competition and innovation.",
con: "Argue that large companies drive innovation, provide free services, and breaking them up would harm consumers and the economy."
}
],
education: [
{
topic: "Homework should be banned in schools",
pro: "Argue that homework causes stress, reduces family time, and doesn't improve learning outcomes. Discuss inequality in home support.",
con: "Argue that homework reinforces learning, builds discipline and time management, and prepares students for higher education."
},
{
topic: "College education should be completely free for everyone",
pro: "Argue that education is a right, reduces inequality, and benefits society. Discuss student debt crisis and economic mobility.",
con: "Argue about taxpayer burden, devaluation of degrees, and that free doesn't mean quality. Discuss alternative funding models."
},
{
topic: "Standardized testing does more harm than good",
pro: "Argue that tests create stress, don't measure real learning, favor privileged students, and narrow curriculum focus.",
con: "Argue that tests provide objective measures, ensure accountability, identify struggling students, and maintain educational standards."
},
{
topic: "Students should be allowed to use AI tools like ChatGPT for schoolwork",
pro: "Argue that AI is a tool like calculators, prepares students for the future, and can enhance learning when used properly.",
con: "Argue that it prevents critical thinking, enables cheating, and students won't develop essential writing and research skills."
},
{
topic: "Schools should teach life skills instead of traditional academic subjects",
pro: "Argue that students need practical skills like budgeting, cooking, and emotional intelligence more than algebra or history.",
con: "Argue that academic subjects develop critical thinking, cultural literacy, and provide foundation for specialized careers."
}
],
society: [
{
topic: "Social media influencers have a positive impact on society",
pro: "Argue that influencers democratize media, create jobs, raise awareness for causes, and provide relatable role models.",
con: "Argue that influencers promote materialism, unrealistic standards, spread misinformation, and prioritize profit over authenticity."
},
{
topic: "Cancel culture does more harm than good",
pro: "Argue that it destroys lives over mistakes, prevents growth and forgiveness, and creates fear of speaking honestly.",
con: "Argue that it holds powerful people accountable, gives voice to marginalized groups, and is just consequences for harmful actions."
},
{
topic: "Traditional gender roles are outdated and harmful",
pro: "Argue that rigid roles limit individual potential, perpetuate inequality, and don't reflect modern society's diversity.",
con: "Argue that traditional roles provide structure, reflect biological differences, and have worked for generations in many cultures."
},
{
topic: "Wealthy individuals should be required to give away most of their fortune",
pro: "Argue about extreme inequality, moral obligation to help others, and that no one needs billions while others starve.",
con: "Argue about property rights, that wealth is earned, forced giving reduces incentive, and voluntary philanthropy is better."
},
{
topic: "Cultural appropriation is a serious problem that needs to be addressed",
pro: "Argue that it disrespects cultures, profits from marginalized groups, and perpetuates stereotypes and power imbalances.",
con: "Argue that cultural exchange is natural and positive, the concept is too vague, and it can prevent appreciation and learning."
}
],
environment: [
{
topic: "Eating meat should be banned to save the environment",
pro: "Argue about livestock's carbon footprint, deforestation, water use, and animal welfare. Discuss plant-based alternatives.",
con: "Argue about nutritional needs, cultural traditions, economic impact on farmers, and that technology can make meat sustainable."
},
{
topic: "Individual actions matter more than corporate responsibility in fighting climate change",
pro: "Argue that consumer choices drive markets, individual actions inspire others, and personal responsibility is essential.",
con: "Argue that corporations cause most emissions, individuals have limited impact, and systemic change requires policy and regulation."
},
{
topic: "Nuclear energy is the best solution to climate change",
pro: "Argue that nuclear is clean, reliable, and efficient. Discuss modern safety and waste management improvements.",
con: "Argue about disaster risks, waste storage problems, high costs, and that renewables are safer and increasingly cheaper."
},
{
topic: "Plastic should be completely banned worldwide",
pro: "Argue about ocean pollution, microplastics in food chain, and that alternatives exist for most uses.",
con: "Argue about medical uses, food preservation, cost of alternatives, and that better recycling and innovation are the answer."
},
{
topic: "Mental health days should be treated the same as sick days at work and school",
pro: "Argue that mental health equals physical health, reduces burnout, improves productivity, and reduces stigma.",
con: "Argue about potential abuse, difficulty verifying, and that it might encourage avoidance rather than addressing root problems."
}
],
entertainment: [
{
topic: "Video games do more harm than good",
pro: "Argue about addiction, violence, social isolation, and negative effects on physical health and academic performance.",
con: "Argue that games improve problem-solving, hand-eye coordination, social connections, and provide stress relief and creativity."
},
{
topic: "Reality TV has a negative impact on society",
pro: "Argue that it promotes drama, superficiality, and unrealistic expectations. Discuss exploitation and dumbing down of culture.",
con: "Argue that it's harmless entertainment, provides opportunities for ordinary people, and reflects real human behavior and diversity."
},
{
topic: "Professional athletes are paid too much money",
pro: "Argue about income inequality, that teachers and nurses deserve more, and that sports salaries are excessive and unjustified.",
con: "Argue about market value, short careers, revenue generation, and that they're paid what the market determines they're worth."
},
{
topic: "Streaming services are better than traditional cable TV",
pro: "Argue about on-demand convenience, no commercials, better content, lower cost, and personalized recommendations.",
con: "Argue about subscription fatigue, content fragmentation, loss of shared cultural moments, and that cable offers live sports and news."
},
{
topic: "Social media has ruined travel experiences",
pro: "Argue that people travel for photos not experiences, overcrowding at Instagram spots, and inauthenticity in travel.",
con: "Argue that social media inspires travel, helps discover hidden gems, connects travelers, and documents memories meaningfully."
}
],
fun: [
{
topic: "Pineapple belongs on pizza",
pro: "Argue that sweet and savory combinations are delicious, it's a valid personal preference, and food gatekeeping is silly.",
con: "Argue that it's a crime against Italian cuisine, the texture is wrong, and some food combinations are objectively bad."
},
{
topic: "Cats are better pets than dogs",
pro: "Argue that cats are independent, clean, quiet, don't need walks, and are perfect for busy people and small spaces.",
con: "Argue that dogs are loyal, trainable, protective, more interactive, and provide better companionship and emotional support."
},
{
topic: "Time travel to the past would be better than time travel to the future",
pro: "Argue about experiencing history firsthand, meeting historical figures, and that the past is known while the future is uncertain.",
con: "Argue about seeing technological advances, avoiding past diseases and hardships, and that you can't change the past anyway."
},
{
topic: "Aliens have definitely visited Earth",
pro: "Argue about UFO sightings, ancient structures, government cover-ups, and the statistical probability of other intelligent life.",
con: "Argue about lack of concrete evidence, that extraordinary claims need extraordinary proof, and alternative explanations exist."
},
{
topic: "Breakfast is the most overrated meal of the day",
pro: "Argue that breakfast foods are just marketing, intermittent fasting is healthy, and people should eat when hungry not by schedule.",
con: "Argue that breakfast provides energy, improves focus, kickstarts metabolism, and breakfast foods are objectively the best foods."
}
]
};
let currentCategory = null;
let currentDebateIndex = 0;
let timerInterval = null;
let timeRemaining = 120;
let duration = 120;
let isRunning = false;
const categorySelection = document.getElementById('categorySelection');
const debateContainer = document.getElementById('debateContainer');
const topicText = document.getElementById('topicText');
const proPosition = document.getElementById('proPosition');
const conPosition = document.getElementById('conPosition');
const timerDisplay = document.getElementById('timerDisplay');
const durationSlider = document.getElementById('durationSlider');
const durationLabel = document.getElementById('durationLabel');
const startBtn = document.getElementById('startBtn');
const nextBtn = document.getElementById('nextBtn');
const resetBtn = document.getElementById('resetBtn');
const backBtn = document.getElementById('backBtn');
document.querySelectorAll('.category-btn').forEach(btn => {
btn.addEventListener('click', () => {
currentCategory = btn.dataset.category;
currentDebateIndex = Math.floor(Math.random() * debates[currentCategory].length);
showDebate();
});
});
function showDebate() {
categorySelection.style.display = 'none';
debateContainer.classList.add('active');
loadDebate();
}
function loadDebate() {
const debate = debates[currentCategory][currentDebateIndex];
topicText.textContent = debate.topic;
proPosition.textContent = debate.pro;
conPosition.textContent = debate.con;
reset();
}
function updateTimerDisplay() {
const minutes = Math.floor(timeRemaining / 60);
const seconds = timeRemaining % 60;
timerDisplay.textContent = `${minutes}:${seconds.toString().padStart(2, '0')}`;
}
function start() {
if (isRunning) return;
isRunning = true;
startBtn.disabled = true;
durationSlider.disabled = true;
timerInterval = setInterval(() => {
timeRemaining--;
updateTimerDisplay();
if (timeRemaining <= 0) {
clearInterval(timerInterval);
isRunning = false;
startBtn.disabled = false;
durationSlider.disabled = false;
}
}, 1000);
}
function next() {
const availableIndices = debates[currentCategory].map((_, i) => i).filter(i => i !== currentDebateIndex);
currentDebateIndex = availableIndices[Math.floor(Math.random() * availableIndices.length)];
loadDebate();
}
function reset() {
clearInterval(timerInterval);
isRunning = false;
timeRemaining = duration;
updateTimerDisplay();
startBtn.disabled = false;
durationSlider.disabled = false;
}
durationSlider.addEventListener('input', (e) => {
duration = parseInt(e.target.value);
timeRemaining = duration;
const minutes = duration / 60;
durationLabel.textContent = `${minutes} min`;
updateTimerDisplay();
});
startBtn.addEventListener('click', start);
nextBtn.addEventListener('click', next);
resetBtn.addEventListener('click', reset);
backBtn.addEventListener('click', () => {
debateContainer.classList.remove('active');
categorySelection.style.display = 'block';
reset();
});
updateTimerDisplay();
</script>
<!-- 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>
</body>
</html>