mastermath3ieme / index.html
jcitf's picture
Add 3 files
45ea51a verified
Raw History Blame Contribute Delete
34.9 kB
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MathMaster 3e - Exercices de Mathématiques</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
.math-equation {
font-family: 'Times New Roman', Times, serif;
font-size: 1.2rem;
line-height: 1.6;
}
.exercise-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.progress-ring__circle {
transition: stroke-dashoffset 0.35s;
transform: rotate(-90deg);
transform-origin: 50% 50%;
}
@keyframes pulse {
0% { transform: scale(1); }
50% { transform: scale(1.05); }
100% { transform: scale(1); }
}
.pulse-animation {
animation: pulse 2s infinite;
}
</style>
</head>
<body class="bg-gray-50 font-sans">
<!-- Header -->
<header class="bg-blue-600 text-white shadow-lg">
<div class="container mx-auto px-4 py-6">
<div class="flex flex-col md:flex-row justify-between items-center">
<div class="flex items-center mb-4 md:mb-0">
<i class="fas fa-square-root-alt text-3xl mr-3"></i>
<h1 class="text-2xl md:text-3xl font-bold">MathMaster 3e</h1>
</div>
<div class="flex items-center space-x-4">
<div class="relative">
<input type="text" placeholder="Rechercher un exercice..." class="px-4 py-2 rounded-full text-gray-800 w-full md:w-64 focus:outline-none focus:ring-2 focus:ring-blue-300">
<button class="absolute right-3 top-2 text-gray-500">
<i class="fas fa-search"></i>
</button>
</div>
<button id="theme-toggle" class="p-2 rounded-full bg-blue-500 hover:bg-blue-400 transition">
<i class="fas fa-moon"></i>
</button>
</div>
</div>
</div>
</header>
<!-- Main Content -->
<main class="container mx-auto px-4 py-8">
<!-- Hero Section -->
<section class="bg-gradient-to-r from-blue-500 to-purple-600 rounded-xl p-8 text-white mb-10 shadow-lg">
<div class="flex flex-col md:flex-row items-center">
<div class="md:w-2/3 mb-6 md:mb-0">
<h2 class="text-3xl md:text-4xl font-bold mb-4">Maîtrisez les mathématiques en 3ème</h2>
<p class="text-lg mb-6">Découvrez des exercices interactifs pour progresser en algèbre, géométrie et calcul. Adapté au programme scolaire français.</p>
<div class="flex flex-wrap gap-3">
<button class="bg-white text-blue-600 px-6 py-2 rounded-full font-semibold hover:bg-gray-100 transition flex items-center">
<i class="fas fa-play mr-2"></i> Démarrer
</button>
<button class="border-2 border-white px-6 py-2 rounded-full font-semibold hover:bg-white hover:text-blue-600 transition flex items-center">
<i class="fas fa-info-circle mr-2"></i> En savoir plus
</button>
</div>
</div>
<div class="md:w-1/3 flex justify-center">
<div class="relative">
<div class="w-48 h-48 bg-white bg-opacity-20 rounded-full flex items-center justify-center">
<i class="fas fa-calculator text-6xl"></i>
</div>
<div class="absolute -bottom-4 -right-4 bg-yellow-400 text-gray-800 px-4 py-2 rounded-full font-bold shadow-lg pulse-animation">
Nouveau !
</div>
</div>
</div>
</div>
</section>
<!-- Progress Section -->
<section class="mb-10 bg-white rounded-xl p-6 shadow-md">
<h2 class="text-2xl font-bold mb-6 text-gray-800 flex items-center">
<i class="fas fa-chart-line mr-3 text-blue-500"></i> Votre progression
</h2>
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
<div class="bg-gray-50 p-4 rounded-lg flex items-center">
<div class="relative w-16 h-16 mr-4">
<svg class="w-full h-full" viewBox="0 0 36 36">
<path
d="M18 2.0845
a 15.9155 15.9155 0 0 1 0 31.831
a 15.9155 15.9155 0 0 1 0 -31.831"
fill="none"
stroke="#e6e6e6"
stroke-width="3"
/>
<path
class="progress-ring__circle"
d="M18 2.0845
a 15.9155 15.9155 0 0 1 0 31.831
a 15.9155 15.9155 0 0 1 0 -31.831"
fill="none"
stroke="#4CAF50"
stroke-width="3"
stroke-dasharray="100, 100"
id="exercises-progress"
/>
</svg>
<div class="absolute inset-0 flex items-center justify-center">
<span class="text-sm font-bold">75%</span>
</div>
</div>
<div>
<h3 class="font-semibold text-gray-700">Exercices complétés</h3>
<p class="text-sm text-gray-500">45/60 exercices</p>
</div>
</div>
<div class="bg-gray-50 p-4 rounded-lg flex items-center">
<div class="relative w-16 h-16 mr-4">
<svg class="w-full h-full" viewBox="0 0 36 36">
<path
d="M18 2.0845
a 15.9155 15.9155 0 0 1 0 31.831
a 15.9155 15.9155 0 0 1 0 -31.831"
fill="none"
stroke="#e6e6e6"
stroke-width="3"
/>
<path
class="progress-ring__circle"
d="M18 2.0845
a 15.9155 15.9155 0 0 1 0 31.831
a 15.9155 15.9155 0 0 1 0 -31.831"
fill="none"
stroke="#FF9800"
stroke-width="3"
stroke-dasharray="60, 100"
id="accuracy-progress"
/>
</svg>
<div class="absolute inset-0 flex items-center justify-center">
<span class="text-sm font-bold">60%</span>
</div>
</div>
<div>
<h3 class="font-semibold text-gray-700">Précision</h3>
<p class="text-sm text-gray-500">Moyenne des réponses</p>
</div>
</div>
<div class="bg-gray-50 p-4 rounded-lg flex items-center">
<div class="relative w-16 h-16 mr-4">
<svg class="w-full h-full" viewBox="0 0 36 36">
<path
d="M18 2.0845
a 15.9155 15.9155 0 0 1 0 31.831
a 15.9155 15.9155 0 0 1 0 -31.831"
fill="none"
stroke="#e6e6e6"
stroke-width="3"
/>
<path
class="progress-ring__circle"
d="M18 2.0845
a 15.9155 15.9155 0 0 1 0 31.831
a 15.9155 15.9155 0 0 1 0 -31.831"
fill="none"
stroke="#2196F3"
stroke-width="3"
stroke-dasharray="90, 100"
id="streak-progress"
/>
</svg>
<div class="absolute inset-0 flex items-center justify-center">
<span class="text-sm font-bold">90%</span>
</div>
</div>
<div>
<h3 class="font-semibold text-gray-700">Série actuelle</h3>
<p class="text-sm text-gray-500">9 jours consécutifs</p>
</div>
</div>
</div>
</section>
<!-- Categories Section -->
<section class="mb-10">
<h2 class="text-2xl font-bold mb-6 text-gray-800 flex items-center">
<i class="fas fa-layer-group mr-3 text-blue-500"></i> Catégories d'exercices
</h2>
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4">
<div class="category-card bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition cursor-pointer border-l-4 border-blue-500">
<div class="flex items-center mb-3">
<div class="w-10 h-10 bg-blue-100 rounded-full flex items-center justify-center mr-3">
<i class="fas fa-superscript text-blue-500"></i>
</div>
<h3 class="font-bold text-gray-800">Algèbre</h3>
</div>
<p class="text-gray-600 text-sm mb-3">Équations, inéquations, fonctions et expressions algébriques.</p>
<div class="flex justify-between items-center">
<span class="text-xs bg-blue-100 text-blue-600 px-2 py-1 rounded-full">12 exercices</span>
<button class="text-blue-500 hover:text-blue-700">
<i class="fas fa-arrow-right"></i>
</button>
</div>
</div>
<div class="category-card bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition cursor-pointer border-l-4 border-green-500">
<div class="flex items-center mb-3">
<div class="w-10 h-10 bg-green-100 rounded-full flex items-center justify-center mr-3">
<i class="fas fa-shapes text-green-500"></i>
</div>
<h3 class="font-bold text-gray-800">Géométrie</h3>
</div>
<p class="text-gray-600 text-sm mb-3">Théorèmes, configurations, calculs d'aires et volumes.</p>
<div class="flex justify-between items-center">
<span class="text-xs bg-green-100 text-green-600 px-2 py-1 rounded-full">15 exercices</span>
<button class="text-green-500 hover:text-green-700">
<i class="fas fa-arrow-right"></i>
</button>
</div>
</div>
<div class="category-card bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition cursor-pointer border-l-4 border-purple-500">
<div class="flex items-center mb-3">
<div class="w-10 h-10 bg-purple-100 rounded-full flex items-center justify-center mr-3">
<i class="fas fa-chart-pie text-purple-500"></i>
</div>
<h3 class="font-bold text-gray-800">Statistiques</h3>
</div>
<p class="text-gray-600 text-sm mb-3">Moyennes, médianes, probabilités et représentations graphiques.</p>
<div class="flex justify-between items-center">
<span class="text-xs bg-purple-100 text-purple-600 px-2 py-1 rounded-full">8 exercices</span>
<button class="text-purple-500 hover:text-purple-700">
<i class="fas fa-arrow-right"></i>
</button>
</div>
</div>
<div class="category-card bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition cursor-pointer border-l-4 border-yellow-500">
<div class="flex items-center mb-3">
<div class="w-10 h-10 bg-yellow-100 rounded-full flex items-center justify-center mr-3">
<i class="fas fa-calculator text-yellow-500"></i>
</div>
<h3 class="font-bold text-gray-800">Calcul numérique</h3>
</div>
<p class="text-gray-600 text-sm mb-3">Fractions, puissances, racines carrées et calcul littéral.</p>
<div class="flex justify-between items-center">
<span class="text-xs bg-yellow-100 text-yellow-600 px-2 py-1 rounded-full">10 exercices</span>
<button class="text-yellow-500 hover:text-yellow-700">
<i class="fas fa-arrow-right"></i>
</button>
</div>
</div>
</div>
</section>
<!-- Featured Exercises -->
<section class="mb-10">
<div class="flex justify-between items-center mb-6">
<h2 class="text-2xl font-bold text-gray-800 flex items-center">
<i class="fas fa-star mr-3 text-yellow-500"></i> Exercices recommandés
</h2>
<div class="flex space-x-2">
<button class="px-3 py-1 bg-gray-200 rounded-full text-sm hover:bg-gray-300 transition">
<i class="fas fa-random mr-1"></i> Aléatoire
</button>
<button class="px-3 py-1 bg-blue-100 text-blue-600 rounded-full text-sm hover:bg-blue-200 transition">
<i class="fas fa-redo mr-1"></i> Rafraîchir
</button>
</div>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
<!-- Exercise Card 1 -->
<div class="exercise-card bg-white rounded-xl shadow-md overflow-hidden transition duration-300 hover:shadow-lg">
<div class="p-6">
<div class="flex justify-between items-start mb-3">
<span class="bg-blue-100 text-blue-600 text-xs px-2 py-1 rounded-full">Algèbre</span>
<div class="flex items-center text-yellow-400">
<i class="fas fa-star"></i>
<span class="ml-1 text-gray-600 text-sm">4.8</span>
</div>
</div>
<h3 class="font-bold text-lg mb-3 text-gray-800">Résolution d'équations</h3>
<div class="math-equation mb-4 bg-gray-50 p-3 rounded-lg">
Résoudre l'équation: 2x + 5 = 3x - 2
</div>
<div class="flex justify-between items-center">
<span class="text-sm text-gray-500">Difficulté: Moyenne</span>
<button class="bg-blue-500 hover:bg-blue-600 text-white px-4 py-2 rounded-full text-sm transition flex items-center">
Essayer <i class="fas fa-arrow-right ml-2"></i>
</button>
</div>
</div>
</div>
<!-- Exercise Card 2 -->
<div class="exercise-card bg-white rounded-xl shadow-md overflow-hidden transition duration-300 hover:shadow-lg">
<div class="p-6">
<div class="flex justify-between items-start mb-3">
<span class="bg-green-100 text-green-600 text-xs px-2 py-1 rounded-full">Géométrie</span>
<div class="flex items-center text-yellow-400">
<i class="fas fa-star"></i>
<span class="ml-1 text-gray-600 text-sm">4.5</span>
</div>
</div>
<h3 class="font-bold text-lg mb-3 text-gray-800">Théorème de Pythagore</h3>
<div class="math-equation mb-4 bg-gray-50 p-3 rounded-lg">
ABC est un triangle rectangle en A. AB = 6 cm, AC = 8 cm. Calculer BC.
</div>
<div class="flex justify-between items-center">
<span class="text-sm text-gray-500">Difficulté: Facile</span>
<button class="bg-blue-500 hover:bg-blue-600 text-white px-4 py-2 rounded-full text-sm transition flex items-center">
Essayer <i class="fas fa-arrow-right ml-2"></i>
</button>
</div>
</div>
</div>
<!-- Exercise Card 3 -->
<div class="exercise-card bg-white rounded-xl shadow-md overflow-hidden transition duration-300 hover:shadow-lg">
<div class="p-6">
<div class="flex justify-between items-start mb-3">
<span class="bg-purple-100 text-purple-600 text-xs px-2 py-1 rounded-full">Statistiques</span>
<div class="flex items-center text-yellow-400">
<i class="fas fa-star"></i>
<span class="ml-1 text-gray-600 text-sm">4.2</span>
</div>
</div>
<h3 class="font-bold text-lg mb-3 text-gray-800">Calcul de moyenne</h3>
<div class="math-equation mb-4 bg-gray-50 p-3 rounded-lg">
Calculer la moyenne des notes: 12, 15, 8, 14, 11
</div>
<div class="flex justify-between items-center">
<span class="text-sm text-gray-500">Difficulté: Très facile</span>
<button class="bg-blue-500 hover:bg-blue-600 text-white px-4 py-2 rounded-full text-sm transition flex items-center">
Essayer <i class="fas fa-arrow-right ml-2"></i>
</button>
</div>
</div>
</div>
</div>
</section>
<!-- Interactive Exercise Demo -->
<section class="mb-10 bg-white rounded-xl shadow-md p-6">
<h2 class="text-2xl font-bold mb-6 text-gray-800 flex items-center">
<i class="fas fa-play-circle mr-3 text-blue-500"></i> Essayez un exercice interactif
</h2>
<div class="bg-gray-50 rounded-lg p-6 mb-6">
<div class="math-equation mb-6 text-center text-lg font-semibold">
Résolvez l'équation: 3(x + 2) = 2x + 11
</div>
<div class="mb-6">
<label for="answer" class="block text-sm font-medium text-gray-700 mb-2">Votre réponse:</label>
<input type="text" id="answer" placeholder="Entrez la valeur de x" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
</div>
<div class="flex justify-between items-center">
<button id="hint-btn" class="text-blue-500 hover:text-blue-700 flex items-center">
<i class="fas fa-lightbulb mr-2"></i> Indice
</button>
<button id="check-answer" class="bg-blue-500 hover:bg-blue-600 text-white px-6 py-2 rounded-lg transition flex items-center">
<i class="fas fa-check mr-2"></i> Vérifier
</button>
</div>
<div id="feedback" class="mt-4 hidden">
<div id="correct-feedback" class="bg-green-100 border-l-4 border-green-500 text-green-700 p-4 hidden">
<div class="flex items-center">
<i class="fas fa-check-circle mr-2 text-green-500"></i>
<p class="font-medium">Correct ! x = 5 est bien la solution.</p>
</div>
</div>
<div id="wrong-feedback" class="bg-red-100 border-l-4 border-red-500 text-red-700 p-4 hidden">
<div class="flex items-center">
<i class="fas fa-times-circle mr-2 text-red-500"></i>
<p class="font-medium">Incorrect. Essayez encore !</p>
</div>
</div>
<div id="hint-content" class="bg-blue-50 border-l-4 border-blue-500 text-blue-700 p-4 mt-2 hidden">
<div class="flex items-start">
<i class="fas fa-info-circle mr-2 mt-1 text-blue-500"></i>
<div>
<p class="font-medium mb-1">Indice:</p>
<p>Commencez par développer le membre de gauche: 3(x + 2) = 3x + 6</p>
<p>Puis regroupez les termes en x d'un côté et les constantes de l'autre.</p>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Testimonials -->
<section class="mb-10">
<h2 class="text-2xl font-bold mb-6 text-gray-800 flex items-center">
<i class="fas fa-quote-left mr-3 text-blue-500"></i> Témoignages
</h2>
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
<div class="bg-white p-6 rounded-xl shadow-md">
<div class="flex items-center mb-4">
<div class="w-12 h-12 bg-blue-100 rounded-full flex items-center justify-center mr-3">
<i class="fas fa-user text-blue-500"></i>
</div>
<div>
<h4 class="font-semibold">Élève de 3ème</h4>
<div class="flex text-yellow-400 text-sm">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
</div>
</div>
</div>
<p class="text-gray-600 italic">"Grâce à MathMaster, j'ai enfin compris comment résoudre les équations. Les explications sont claires et les exercices progressifs."</p>
</div>
<div class="bg-white p-6 rounded-xl shadow-md">
<div class="flex items-center mb-4">
<div class="w-12 h-12 bg-green-100 rounded-full flex items-center justify-center mr-3">
<i class="fas fa-user-tie text-green-500"></i>
</div>
<div>
<h4 class="font-semibold">Professeur</h4>
<div class="flex text-yellow-400 text-sm">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star-half-alt"></i>
</div>
</div>
</div>
<p class="text-gray-600 italic">"J'utilise MathMaster pour compléter mes cours. Les élèves apprécient particulièrement les exercices interactifs et les feedbacks immédiats."</p>
</div>
<div class="bg-white p-6 rounded-xl shadow-md">
<div class="flex items-center mb-4">
<div class="w-12 h-12 bg-purple-100 rounded-full flex items-center justify-center mr-3">
<i class="fas fa-user-graduate text-purple-500"></i>
</div>
<div>
<h4 class="font-semibold">Parent</h4>
<div class="flex text-yellow-400 text-sm">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
</div>
</div>
</div>
<p class="text-gray-600 italic">"Mon enfant a progressé rapidement en mathématiques depuis qu'il utilise ce site. L'interface est intuitive et motivante."</p>
</div>
</div>
</section>
</main>
<!-- Footer -->
<footer class="bg-gray-800 text-white py-10">
<div class="container mx-auto px-4">
<div class="grid grid-cols-1 md:grid-cols-4 gap-8">
<div>
<h3 class="text-xl font-bold mb-4 flex items-center">
<i class="fas fa-square-root-alt mr-2"></i> MathMaster 3e
</h3>
<p class="text-gray-400">Plateforme d'apprentissage des mathématiques pour les élèves de troisième, conforme au programme de l'Éducation Nationale.</p>
</div>
<div>
<h4 class="font-semibold mb-4">Ressources</h4>
<ul class="space-y-2">
<li><a href="#" class="text-gray-400 hover:text-white transition">Exercices</a></li>
<li><a href="#" class="text-gray-400 hover:text-white transition">Cours</a></li>
<li><a href="#" class="text-gray-400 hover:text-white transition">Méthodes</a></li>
<li><a href="#" class="text-gray-400 hover:text-white transition">Annales</a></li>
</ul>
</div>
<div>
<h4 class="font-semibold mb-4">Aide</h4>
<ul class="space-y-2">
<li><a href="#" class="text-gray-400 hover:text-white transition">FAQ</a></li>
<li><a href="#" class="text-gray-400 hover:text-white transition">Contact</a></li>
<li><a href="#" class="text-gray-400 hover:text-white transition">Guide d'utilisation</a></li>
<li><a href="#" class="text-gray-400 hover:text-white transition">Accessibilité</a></li>
</ul>
</div>
<div>
<h4 class="font-semibold mb-4">Newsletter</h4>
<p class="text-gray-400 mb-3">Abonnez-vous pour recevoir des exercices hebdomadaires.</p>
<div class="flex">
<input type="email" placeholder="Votre email" class="px-4 py-2 rounded-l-lg text-gray-800 w-full focus:outline-none">
<button class="bg-blue-500 hover:bg-blue-600 px-4 py-2 rounded-r-lg transition">
<i class="fas fa-paper-plane"></i>
</button>
</div>
<div class="flex space-x-4 mt-4">
<a href="#" class="text-gray-400 hover:text-white transition"><i class="fab fa-facebook-f"></i></a>
<a href="#" class="text-gray-400 hover:text-white transition"><i class="fab fa-twitter"></i></a>
<a href="#" class="text-gray-400 hover:text-white transition"><i class="fab fa-instagram"></i></a>
<a href="#" class="text-gray-400 hover:text-white transition"><i class="fab fa-youtube"></i></a>
</div>
</div>
</div>
<div class="border-t border-gray-700 mt-8 pt-8 flex flex-col md:flex-row justify-between items-center">
<p class="text-gray-400 text-sm mb-4 md:mb-0">© 2023 MathMaster 3e. Tous droits réservés.</p>
<div class="flex space-x-6">
<a href="#" class="text-gray-400 hover:text-white transition text-sm">Mentions légales</a>
<a href="#" class="text-gray-400 hover:text-white transition text-sm">Confidentialité</a>
<a href="#" class="text-gray-400 hover:text-white transition text-sm">Conditions d'utilisation</a>
</div>
</div>
</div>
</footer>
<!-- Back to Top Button -->
<button id="back-to-top" class="fixed bottom-6 right-6 bg-blue-500 text-white p-3 rounded-full shadow-lg opacity-0 invisible transition-all duration-300 hover:bg-blue-600">
<i class="fas fa-arrow-up"></i>
</button>
<script>
// Dark mode toggle
const themeToggle = document.getElementById('theme-toggle');
const html = document.documentElement;
themeToggle.addEventListener('click', () => {
html.classList.toggle('dark');
if (html.classList.contains('dark')) {
themeToggle.innerHTML = '<i class="fas fa-sun"></i>';
localStorage.setItem('theme', 'dark');
} else {
themeToggle.innerHTML = '<i class="fas fa-moon"></i>';
localStorage.setItem('theme', 'light');
}
});
// Check for saved theme preference
if (localStorage.getItem('theme') === 'dark') {
html.classList.add('dark');
themeToggle.innerHTML = '<i class="fas fa-sun"></i>';
}
// Interactive exercise functionality
const checkAnswerBtn = document.getElementById('check-answer');
const hintBtn = document.getElementById('hint-btn');
const answerInput = document.getElementById('answer');
const feedback = document.getElementById('feedback');
const correctFeedback = document.getElementById('correct-feedback');
const wrongFeedback = document.getElementById('wrong-feedback');
const hintContent = document.getElementById('hint-content');
checkAnswerBtn.addEventListener('click', () => {
const userAnswer = answerInput.value.trim();
if (userAnswer === '5') {
correctFeedback.classList.remove('hidden');
wrongFeedback.classList.add('hidden');
} else {
correctFeedback.classList.add('hidden');
wrongFeedback.classList.remove('hidden');
}
feedback.classList.remove('hidden');
});
hintBtn.addEventListener('click', () => {
hintContent.classList.toggle('hidden');
});
// Back to top button
const backToTopBtn = document.getElementById('back-to-top');
window.addEventListener('scroll', () => {
if (window.pageYOffset > 300) {
backToTopBtn.classList.remove('opacity-0', 'invisible');
backToTopBtn.classList.add('opacity-100', 'visible');
} else {
backToTopBtn.classList.remove('opacity-100', 'visible');
backToTopBtn.classList.add('opacity-0', 'invisible');
}
});
backToTopBtn.addEventListener('click', () => {
window.scrollTo({
top: 0,
behavior: 'smooth'
});
});
// Animate progress rings
document.addEventListener('DOMContentLoaded', () => {
const exercisesProgress = document.getElementById('exercises-progress');
const accuracyProgress = document.getElementById('accuracy-progress');
const streakProgress = document.getElementById('streak-progress');
setTimeout(() => {
exercisesProgress.style.strokeDashoffset = '25'; // 75% complete
accuracyProgress.style.strokeDashoffset = '40'; // 60% complete
streakProgress.style.strokeDashoffset = '10'; // 90% complete
}, 500);
});
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=jcitf/mastermath3ieme" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>