Download index.html from Taallion/ztpause: direct link, hf CLI and curl.
- Browser
- Download file 30.4 kB
-
https://huggingface.co/spaces/Taallion/ztpause/resolve/main/index.html
- Command line
-
hf download hf://spaces/Taallion/ztpause/index.html
-
curl -L -o index.html https://huggingface.co/spaces/Taallion/ztpause/resolve/main/index.html
30.4 kB
| <html lang="fr"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>ZenTech Pause - Votre espace de relaxation</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> | |
| .breathing-text { | |
| animation: breathing 8s ease-in-out infinite; | |
| } | |
| @keyframes breathing { | |
| 0% { | |
| transform: scale(0.95); | |
| opacity: 0.8; | |
| } | |
| 50% { | |
| transform: scale(1.05); | |
| opacity: 1; | |
| } | |
| 100% { | |
| transform: scale(0.95); | |
| opacity: 0.8; | |
| } | |
| } | |
| .breath-instruction { | |
| transition: all 0.5s; | |
| } | |
| .sound-btn { | |
| transition: all 0.3s; | |
| } | |
| .sound-btn:hover { | |
| transform: translateY(-3px); | |
| box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); | |
| } | |
| .sound-btn.active { | |
| transform: translateY(-3px); | |
| box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); | |
| border: 2px solid #3b82f6; | |
| } | |
| .bubble { | |
| position: absolute; | |
| border-radius: 50%; | |
| cursor: pointer; | |
| transition: transform 0.2s, opacity 0.2s; | |
| } | |
| .bubble:hover { | |
| transform: scale(1.1); | |
| } | |
| .bubble:active { | |
| opacity: 0; | |
| transform: scale(1.5); | |
| } | |
| .stretch-card { | |
| transition: all 0.3s; | |
| } | |
| .stretch-card:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1); | |
| } | |
| .tab-content { | |
| display: none; | |
| } | |
| .tab-content.active { | |
| display: block; | |
| animation: fadeIn 0.5s; | |
| } | |
| @keyframes fadeIn { | |
| from { opacity: 0; } | |
| to { opacity: 1; } | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-white font-sans min-h-screen flex flex-col"> | |
| <!-- Header --> | |
| <header class="bg-white shadow-sm py-4"> | |
| <div class="container mx-auto px-4 flex justify-between items-center"> | |
| <h1 class="text-2xl font-bold text-gray-800">Zen<span class="text-blue-500">Tech</span> Pause</h1> | |
| <nav> | |
| <ul class="flex space-x-6"> | |
| <li><button onclick="showTab('home')" class="text-gray-600 hover:text-blue-500 font-medium">Accueil</button></li> | |
| <li><button onclick="showTab('pause')" class="text-gray-600 hover:text-blue-500 font-medium">Pause</button></li> | |
| <li><button onclick="showTab('game')" class="text-gray-600 hover:text-blue-500 font-medium">Mini-jeu</button></li> | |
| <li><button onclick="showTab('tips')" class="text-gray-600 hover:text-blue-500 font-medium">Astuces</button></li> | |
| </ul> | |
| </nav> | |
| </div> | |
| </header> | |
| <!-- Main Content --> | |
| <main class="flex-grow container mx-auto px-4 py-8"> | |
| <!-- Home Tab --> | |
| <div id="home" class="tab-content active"> | |
| <section class="text-center py-16"> | |
| <div class="max-w-3xl mx-auto"> | |
| <h2 class="text-4xl md:text-5xl font-bold text-gray-800 mb-8 breathing-text">Faites une vraie pause.</h2> | |
| <div class="flex flex-col items-center justify-center mb-12"> | |
| <div id="breath-instruction" class="text-2xl font-medium text-blue-500 mb-4 breath-instruction">Inspirez...</div> | |
| <div class="w-40 h-40 bg-blue-100 rounded-full flex items-center justify-center mb-4"> | |
| <div id="breath-circle" class="w-20 h-20 bg-blue-500 rounded-full transition-all duration-4000"></div> | |
| </div> | |
| <p class="text-gray-600 max-w-md">Prenez un moment pour vous détendre. Suivez l'animation pour une respiration consciente.</p> | |
| </div> | |
| <button onclick="showTab('pause')" class="bg-blue-500 hover:bg-blue-600 text-white font-medium py-3 px-8 rounded-full transition-all duration-300 transform hover:scale-105"> | |
| Commencer ma pause | |
| </button> | |
| </div> | |
| </section> | |
| </div> | |
| <!-- Pause Tab --> | |
| <div id="pause" class="tab-content"> | |
| <section class="py-8"> | |
| <h2 class="text-3xl font-bold text-gray-800 mb-8 text-center">Choisissez votre pause</h2> | |
| <!-- Sounds Section --> | |
| <div class="mb-12"> | |
| <h3 class="text-xl font-semibold text-gray-700 mb-6 flex items-center"> | |
| <i class="fas fa-music mr-2 text-blue-500"></i> Sons relaxants | |
| </h3> | |
| <div class="grid grid-cols-1 md:grid-cols-3 gap-6"> | |
| <button onclick="playSound('tibetan')" class="sound-btn bg-white rounded-xl p-6 shadow-md border-2 border-transparent flex flex-col items-center"> | |
| <div class="w-20 h-20 bg-blue-50 rounded-full flex items-center justify-center mb-4"> | |
| <i class="fas fa-spa text-blue-500 text-3xl"></i> | |
| </div> | |
| <h4 class="font-medium text-gray-800 mb-2">Bol tibétain</h4> | |
| <p class="text-gray-600 text-sm text-center">Son pur et résonnant pour calmer l'esprit</p> | |
| <audio id="tibetan-sound" src="https://assets.mixkit.co/sfx/preview/mixkit-singing-bowl-1683.mp3"></audio> | |
| </button> | |
| <button onclick="playSound('waves')" class="sound-btn bg-white rounded-xl p-6 shadow-md border-2 border-transparent flex flex-col items-center"> | |
| <div class="w-20 h-20 bg-blue-50 rounded-full flex items-center justify-center mb-4"> | |
| <i class="fas fa-water text-blue-500 text-3xl"></i> | |
| </div> | |
| <h4 class="font-medium text-gray-800 mb-2">Vagues océanes</h4> | |
| <p class="text-gray-600 text-sm text-center">Bruit apaisant des vagues sur le rivage</p> | |
| <audio id="waves-sound" src="https://assets.mixkit.co/sfx/preview/mixkit-waves-on-the-beach-1183.mp3"></audio> | |
| </button> | |
| <button onclick="playSound('wind')" class="sound-btn bg-white rounded-xl p-6 shadow-md border-2 border-transparent flex flex-col items-center"> | |
| <div class="w-20 h-20 bg-blue-50 rounded-full flex items-center justify-center mb-4"> | |
| <i class="fas fa-wind text-blue-500 text-3xl"></i> | |
| </div> | |
| <h4 class="font-medium text-gray-800 mb-2">Vent dans les arbres</h4> | |
| <p class="text-gray-600 text-sm text-center">Douce brise à travers les feuilles</p> | |
| <audio id="wind-sound" src="https://assets.mixkit.co/sfx/preview/mixkit-wind-in-the-trees-1681.mp3"></audio> | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Stretches Section --> | |
| <div> | |
| <h3 class="text-xl font-semibold text-gray-700 mb-6 flex items-center"> | |
| <i class="fas fa-running mr-2 text-green-500"></i> Étirements rapides | |
| </h3> | |
| <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6"> | |
| <div class="stretch-card bg-white rounded-xl p-6 shadow-md border border-gray-100"> | |
| <div class="w-full h-40 bg-green-50 rounded-lg flex items-center justify-center mb-4"> | |
| <i class="fas fa-hands text-green-500 text-5xl"></i> | |
| </div> | |
| <h4 class="font-medium text-gray-800 mb-2">Étirement des bras</h4> | |
| <p class="text-gray-600 text-sm mb-3">Levez les bras, croisez les doigts et étirez-vous vers le haut pendant 15 secondes.</p> | |
| <div class="flex items-center text-green-500 text-sm"> | |
| <i class="fas fa-clock mr-1"></i> | |
| <span>15 secondes</span> | |
| </div> | |
| </div> | |
| <div class="stretch-card bg-white rounded-xl p-6 shadow-md border border-gray-100"> | |
| <div class="w-full h-40 bg-green-50 rounded-lg flex items-center justify-center mb-4"> | |
| <i class="fas fa-user text-green-500 text-5xl"></i> | |
| </div> | |
| <h4 class="font-medium text-gray-800 mb-2">Rotation du cou</h4> | |
| <p class="text-gray-600 text-sm mb-3">Tournez lentement la tête d'un côté à l'autre, puis faites des cercles pendant 20 secondes.</p> | |
| <div class="flex items-center text-green-500 text-sm"> | |
| <i class="fas fa-clock mr-1"></i> | |
| <span>20 secondes</span> | |
| </div> | |
| </div> | |
| <div class="stretch-card bg-white rounded-xl p-6 shadow-md border border-gray-100"> | |
| <div class="w-full h-40 bg-green-50 rounded-lg flex items-center justify-center mb-4"> | |
| <i class="fas fa-hand-paper text-green-500 text-5xl"></i> | |
| </div> | |
| <h4 class="font-medium text-gray-800 mb-2">Étirement des poignets</h4> | |
| <p class="text-gray-600 text-sm mb-3">Tirez doucement chaque main vers l'arrière pendant 10 secondes de chaque côté.</p> | |
| <div class="flex items-center text-green-500 text-sm"> | |
| <i class="fas fa-clock mr-1"></i> | |
| <span>10 secondes par main</span> | |
| </div> | |
| </div> | |
| <div class="stretch-card bg-white rounded-xl p-6 shadow-md border border-gray-100"> | |
| <div class="w-full h-40 bg-green-50 rounded-lg flex items-center justify-center mb-4"> | |
| <i class="fas fa-eye text-green-500 text-5xl"></i> | |
| </div> | |
| <h4 class="font-medium text-gray-800 mb-2">Pause visuelle</h4> | |
| <p class="text-gray-600 text-sm mb-3">Fermez les yeux et couvrez-les avec vos paumes pendant 30 secondes pour reposer vos yeux.</p> | |
| <div class="flex items-center text-green-500 text-sm"> | |
| <i class="fas fa-clock mr-1"></i> | |
| <span>30 secondes</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| </div> | |
| <!-- Game Tab --> | |
| <div id="game" class="tab-content"> | |
| <section class="py-8"> | |
| <h2 class="text-3xl font-bold text-gray-800 mb-2 text-center">Bubbles Burst</h2> | |
| <p class="text-gray-600 text-center mb-8">Cliquez sur les bulles pour les faire éclater et vous détendre</p> | |
| <div class="flex justify-center mb-6"> | |
| <div class="bg-white rounded-full px-6 py-3 shadow-md flex items-center"> | |
| <i class="fas fa-bullseye text-blue-500 mr-2"></i> | |
| <span class="font-medium text-gray-800">Bulles éclatées: </span> | |
| <span id="bubble-counter" class="font-bold text-blue-500 ml-1">0</span> | |
| </div> | |
| </div> | |
| <div id="bubble-container" class="relative w-full h-96 bg-white rounded-xl shadow-inner border border-gray-200 overflow-hidden"> | |
| <div class="absolute inset-0 flex items-center justify-center"> | |
| <p class="text-gray-400">Cliquez n'importe où pour commencer</p> | |
| </div> | |
| </div> | |
| <div class="flex justify-center mt-6"> | |
| <button onclick="resetBubbleGame()" class="bg-gray-100 hover:bg-gray-200 text-gray-800 font-medium py-2 px-6 rounded-full transition-all duration-300"> | |
| <i class="fas fa-redo mr-2"></i> Recommencer | |
| </button> | |
| </div> | |
| </section> | |
| </div> | |
| <!-- Tips Tab --> | |
| <div id="tips" class="tab-content"> | |
| <section class="py-8"> | |
| <h2 class="text-3xl font-bold text-gray-800 mb-8 text-center">Astuces pour assistants techniques</h2> | |
| <div class="grid grid-cols-1 md:grid-cols-2 gap-8"> | |
| <!-- Raccourcis clavier --> | |
| <div class="bg-white rounded-xl p-6 shadow-md border border-gray-100"> | |
| <div class="flex items-center mb-4"> | |
| <div class="w-10 h-10 bg-blue-50 rounded-full flex items-center justify-center mr-4"> | |
| <i class="fas fa-keyboard text-blue-500"></i> | |
| </div> | |
| <h3 class="text-xl font-semibold text-gray-800">Raccourcis clavier</h3> | |
| </div> | |
| <ul class="space-y-3"> | |
| <li class="flex items-start"> | |
| <span class="bg-blue-100 text-blue-800 text-xs font-medium px-2 py-1 rounded mr-3">Win + L</span> | |
| <span>Verrouiller rapidement votre poste</span> | |
| </li> | |
| <li class="flex items-start"> | |
| <span class="bg-blue-100 text-blue-800 text-xs font-medium px-2 py-1 rounded mr-3">Ctrl + Shift + Esc</span> | |
| <span>Ouvrir directement le gestionnaire des tâches</span> | |
| </li> | |
| <li class="flex items-start"> | |
| <span class="bg-blue-100 text-blue-800 text-xs font-medium px-2 py-1 rounded mr-3">Win + V</span> | |
| <span>Historique du presse-papiers (Windows 10+)</span> | |
| </li> | |
| <li class="flex items-start"> | |
| <span class="bg-blue-100 text-blue-800 text-xs font-medium px-2 py-1 rounded mr-3">Win + .</span> | |
| <span>Ouvrir l'émoticône et le sélecteur de symboles</span> | |
| </li> | |
| </ul> | |
| </div> | |
| <!-- Outils utiles --> | |
| <div class="bg-white rounded-xl p-6 shadow-md border border-gray-100"> | |
| <div class="flex items-center mb-4"> | |
| <div class="w-10 h-10 bg-green-50 rounded-full flex items-center justify-center mr-4"> | |
| <i class="fas fa-tools text-green-500"></i> | |
| </div> | |
| <h3 class="text-xl font-semibold text-gray-800">Outils utiles</h3> | |
| </div> | |
| <ul class="space-y-3"> | |
| <li class="flex items-start"> | |
| <span class="bg-green-100 text-green-800 text-xs font-medium px-2 py-1 rounded mr-3">Process Explorer</span> | |
| <span>Alternative avancée au gestionnaire des tâches</span> | |
| </li> | |
| <li class="flex items-start"> | |
| <span class="bg-green-100 text-green-800 text-xs font-medium px-2 py-1 rounded mr-3">Wireshark</span> | |
| <span>Analyseur de paquets réseau</span> | |
| </li> | |
| <li class="flex items-start"> | |
| <span class="bg-green-100 text-green-800 text-xs font-medium px-2 py-1 rounded mr-3">Everything</span> | |
| <span>Recherche ultra-rapide de fichiers</span> | |
| </li> | |
| <li class="flex items-start"> | |
| <span class="bg-green-100 text-green-800 text-xs font-medium px-2 py-1 rounded mr-3">Greenshot</span> | |
| <span>Outil de capture d'écran léger et efficace</span> | |
| </li> | |
| </ul> | |
| </div> | |
| <!-- Bonnes pratiques --> | |
| <div class="bg-white rounded-xl p-6 shadow-md border border-gray-100"> | |
| <div class="flex items-center mb-4"> | |
| <div class="w-10 h-10 bg-purple-50 rounded-full flex items-center justify-center mr-4"> | |
| <i class="fas fa-check-circle text-purple-500"></i> | |
| </div> | |
| <h3 class="text-xl font-semibold text-gray-800">Bonnes pratiques</h3> | |
| </div> | |
| <ul class="space-y-3"> | |
| <li class="flex items-start"> | |
| <span class="bg-purple-100 text-purple-800 text-xs font-medium px-2 py-1 rounded mr-3">1</span> | |
| <span>Documentez chaque intervention, même mineure</span> | |
| </li> | |
| <li class="flex items-start"> | |
| <span class="bg-purple-100 text-purple-800 text-xs font-medium px-2 py-1 rounded mr-3">2</span> | |
| <span>Faites des sauvegardes avant toute modification importante</span> | |
| </li> | |
| <li class="flex items-start"> | |
| <span class="bg-purple-100 text-purple-800 text-xs font-medium px-2 py-1 rounded mr-3">3</span> | |
| <span>Planifiez des pauses régulières pour maintenir votre concentration</span> | |
| </li> | |
| <li class="flex items-start"> | |
| <span class="bg-purple-100 text-purple-800 text-xs font-medium px-2 py-1 rounded mr-3">4</span> | |
| <span>Restez à jour avec les nouvelles technologies et vulnérabilités</span> | |
| </li> | |
| </ul> | |
| </div> | |
| <!-- Gestion du stress --> | |
| <div class="bg-white rounded-xl p-6 shadow-md border border-gray-100"> | |
| <div class="flex items-center mb-4"> | |
| <div class="w-10 h-10 bg-yellow-50 rounded-full flex items-center justify-center mr-4"> | |
| <i class="fas fa-heart text-yellow-500"></i> | |
| </div> | |
| <h3 class="text-xl font-semibold text-gray-800">Gestion du stress</h3> | |
| </div> | |
| <ul class="space-y-3"> | |
| <li class="flex items-start"> | |
| <span class="bg-yellow-100 text-yellow-800 text-xs font-medium px-2 py-1 rounded mr-3">1</span> | |
| <span>Priorisez les tâches et décomposez les problèmes complexes</span> | |
| </li> | |
| <li class="flex items-start"> | |
| <span class="bg-yellow-100 text-yellow-800 text-xs font-medium px-2 py-1 rounded mr-3">2</span> | |
| <span>Communiquez clairement les délais réalistes aux utilisateurs</span> | |
| </li> | |
| <li class="flex items-start"> | |
| <span class="bg-yellow-100 text-yellow-800 text-xs font-medium px-2 py-1 rounded mr-3">3</span> | |
| <span>Apprenez à dire non quand la charge de travail est trop importante</span> | |
| </li> | |
| <li class="flex items-start"> | |
| <span class="bg-yellow-100 text-yellow-800 text-xs font-medium px-2 py-1 rounded mr-3">4</span> | |
| <span>Pratiquez la respiration consciente lors des situations stressantes</span> | |
| </li> | |
| </ul> | |
| </div> | |
| </div> | |
| </section> | |
| </div> | |
| </main> | |
| <!-- Footer --> | |
| <footer class="bg-gray-50 py-8 border-t border-gray-200"> | |
| <div class="container mx-auto px-4"> | |
| <div class="flex flex-col md:flex-row justify-between items-center"> | |
| <div class="mb-4 md:mb-0"> | |
| <h2 class="text-xl font-bold text-gray-800">Zen<span class="text-blue-500">Tech</span> Pause</h2> | |
| <p class="text-gray-600 text-sm">Votre espace de relaxation pour assistants techniques</p> | |
| </div> | |
| <div class="flex space-x-4"> | |
| <a href="#" class="text-gray-500 hover:text-blue-500 transition-colors"> | |
| <i class="fab fa-twitter text-xl"></i> | |
| </a> | |
| <a href="#" class="text-gray-500 hover:text-blue-500 transition-colors"> | |
| <i class="fab fa-linkedin text-xl"></i> | |
| </a> | |
| <a href="#" class="text-gray-500 hover:text-blue-500 transition-colors"> | |
| <i class="fab fa-github text-xl"></i> | |
| </a> | |
| </div> | |
| </div> | |
| <div class="mt-8 pt-8 border-t border-gray-200 text-center text-sm text-gray-500"> | |
| <p>© 2023 ZenTech Pause. Un projet de <a href="#" class="text-blue-500 hover:underline">TechAssist Lab</a>.</p> | |
| <p class="mt-2">Conçu pour aider les professionnels de l'informatique à gérer leur stress et prévenir l'épuisement.</p> | |
| </div> | |
| </div> | |
| </footer> | |
| <script> | |
| // Tab navigation | |
| function showTab(tabId) { | |
| // Hide all tabs | |
| document.querySelectorAll('.tab-content').forEach(tab => { | |
| tab.classList.remove('active'); | |
| }); | |
| // Show selected tab | |
| document.getElementById(tabId).classList.add('active'); | |
| // If showing game tab, start bubble game | |
| if (tabId === 'game') { | |
| setTimeout(() => { | |
| startBubbleGame(); | |
| }, 500); | |
| } | |
| // If showing home tab, start breathing animation | |
| if (tabId === 'home') { | |
| startBreathingAnimation(); | |
| } else { | |
| stopBreathingAnimation(); | |
| } | |
| // Stop any playing sounds when switching tabs | |
| stopAllSounds(); | |
| } | |
| // Breathing animation | |
| let breathingInterval; | |
| let isInhaling = true; | |
| function startBreathingAnimation() { | |
| const breathCircle = document.getElementById('breath-circle'); | |
| const breathInstruction = document.getElementById('breath-instruction'); | |
| breathCircle.style.transform = 'scale(1)'; | |
| breathInstruction.textContent = 'Inspirez...'; | |
| isInhaling = true; | |
| breathingInterval = setInterval(() => { | |
| if (isInhaling) { | |
| // Exhale | |
| breathCircle.style.transform = 'scale(0.5)'; | |
| breathInstruction.textContent = 'Expirez...'; | |
| isInhaling = false; | |
| } else { | |
| // Inhale | |
| breathCircle.style.transform = 'scale(1)'; | |
| breathInstruction.textContent = 'Inspirez...'; | |
| isInhaling = true; | |
| } | |
| }, 8000); // 8 seconds total (4 in, 4 out) | |
| } | |
| function stopBreathingAnimation() { | |
| clearInterval(breathingInterval); | |
| } | |
| // Sound controls | |
| let currentSound = null; | |
| function playSound(soundType) { | |
| // Stop any currently playing sound | |
| stopAllSounds(); | |
| // Get the sound element | |
| const soundElement = document.getElementById(`${soundType}-sound`); | |
| // Play the sound | |
| soundElement.currentTime = 0; | |
| soundElement.play(); | |
| currentSound = soundElement; | |
| // Highlight the active button | |
| document.querySelectorAll('.sound-btn').forEach(btn => { | |
| btn.classList.remove('active'); | |
| }); | |
| // Find the button that was clicked and add active class | |
| const buttons = document.querySelectorAll('.sound-btn'); | |
| buttons.forEach(btn => { | |
| if (btn.getAttribute('onclick').includes(soundType)) { | |
| btn.classList.add('active'); | |
| } | |
| }); | |
| } | |
| function stopAllSounds() { | |
| if (currentSound) { | |
| currentSound.pause(); | |
| currentSound.currentTime = 0; | |
| currentSound = null; | |
| } | |
| // Remove active class from all sound buttons | |
| document.querySelectorAll('.sound-btn').forEach(btn => { | |
| btn.classList.remove('active'); | |
| }); | |
| } | |
| // Bubble game | |
| let bubbleCount = 0; | |
| let bubbleInterval; | |
| function startBubbleGame() { | |
| const container = document.getElementById('bubble-container'); | |
| container.innerHTML = ''; // Clear any existing bubbles | |
| // Start creating bubbles | |
| bubbleInterval = setInterval(createBubble, 800); | |
| // Click handler for bubbles | |
| container.addEventListener('click', function(e) { | |
| // If clicking directly on a bubble, the event will bubble up | |
| if (e.target.classList.contains('bubble')) { | |
| popBubble(e.target); | |
| } | |
| }); | |
| } | |
| function createBubble() { | |
| const container = document.getElementById('bubble-container'); | |
| const containerRect = container.getBoundingClientRect(); | |
| const size = Math.random() * 50 + 30; // 30-80px | |
| const x = Math.random() * (containerRect.width - size); | |
| const y = Math.random() * (containerRect.height - size); | |
| const colors = ['bg-blue-400', 'bg-green-400', 'bg-purple-400', 'bg-yellow-400', 'bg-pink-400']; | |
| const color = colors[Math.floor(Math.random() * colors.length)]; | |
| const bubble = document.createElement('div'); | |
| bubble.className = `bubble ${color} opacity-90`; | |
| bubble.style.width = `${size}px`; | |
| bubble.style.height = `${size}px`; | |
| bubble.style.left = `${x}px`; | |
| bubble.style.top = `${y}px`; | |
| container.appendChild(bubble); | |
| // Remove bubble after some time if not popped | |
| setTimeout(() => { | |
| if (bubble.parentNode === container) { | |
| bubble.style.opacity = '0'; | |
| bubble.style.transform = 'scale(0.5)'; | |
| setTimeout(() => { | |
| if (bubble.parentNode === container) { | |
| container.removeChild(bubble); | |
| } | |
| }, 200); | |
| } | |
| }, 5000); | |
| } | |
| function popBubble(bubble) { | |
| bubble.style.opacity = '0'; | |
| bubble.style.transform = 'scale(1.5)'; | |
| // Remove bubble after animation | |
| setTimeout(() => { | |
| if (bubble.parentNode) { | |
| bubble.parentNode.removeChild(bubble); | |
| } | |
| }, 200); | |
| // Increment counter | |
| bubbleCount++; | |
| document.getElementById('bubble-counter').textContent = bubbleCount; | |
| } | |
| function resetBubbleGame() { | |
| clearInterval(bubbleInterval); | |
| bubbleCount = 0; | |
| document.getElementById('bubble-counter').textContent = '0'; | |
| startBubbleGame(); | |
| } | |
| // Initialize the page with home tab | |
| document.addEventListener('DOMContentLoaded', function() { | |
| startBreathingAnimation(); | |
| }); | |
| </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=Taallion/ztpause" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |