Spaces:
Running
Running
Download index.html from AnotherBar/create-space-1: direct link, hf CLI and curl.
- Browser
- Download file 31.2 kB
-
https://huggingface.co/spaces/AnotherBar/create-space-1/resolve/main/index.html
- Command line
-
hf download hf://spaces/AnotherBar/create-space-1/index.html
-
curl -L -o index.html https://huggingface.co/spaces/AnotherBar/create-space-1/resolve/main/index.html
31.2 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Shadow Guild - Level Up Your Life</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"> | |
| <link href="https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Press+Start+2P&display=swap" rel="stylesheet"> | |
| <style> | |
| :root { | |
| --neon-blue: #00f2ff; | |
| --neon-purple: #9d00ff; | |
| --neon-red: #ff0055; | |
| --dark-bg: #0a0a0a; | |
| } | |
| body { | |
| font-family: 'Orbitron', sans-serif; | |
| background-color: var(--dark-bg); | |
| color: white; | |
| min-height: 100vh; | |
| overflow-x: hidden; | |
| } | |
| .press-start { | |
| font-family: 'Press Start 2P', cursive; | |
| } | |
| .neon-text-blue { | |
| text-shadow: 0 0 5px var(--neon-blue), 0 0 10px var(--neon-blue), 0 0 15px var(--neon-blue); | |
| color: var(--neon-blue); | |
| } | |
| .neon-text-purple { | |
| text-shadow: 0 0 5px var(--neon-purple), 0 0 10px var(--neon-purple), 0 0 15px var(--neon-purple); | |
| color: var(--neon-purple); | |
| } | |
| .neon-text-red { | |
| text-shadow: 0 0 5px var(--neon-red), 0 0 10px var(--neon-red), 0 0 15px var(--neon-red); | |
| color: var(--neon-red); | |
| } | |
| .glow-box { | |
| border: 1px solid rgba(157, 0, 255, 0.3); | |
| box-shadow: 0 0 10px rgba(157, 0, 255, 0.5), inset 0 0 10px rgba(157, 0, 255, 0.3); | |
| background: linear-gradient(145deg, rgba(10,10,10,0.8) 0%, rgba(30,10,40,0.5) 100%); | |
| } | |
| .xp-bar { | |
| height: 12px; | |
| background: linear-gradient(90deg, #0a0a0a 0%, #1a0033 50%, #0a0a0a 100%); | |
| border: 1px solid var(--neon-purple); | |
| box-shadow: 0 0 5px var(--neon-purple); | |
| } | |
| .xp-progress { | |
| height: 100%; | |
| background: linear-gradient(90deg, var(--neon-blue) 0%, var(--neon-purple) 100%); | |
| transition: width 0.5s ease; | |
| } | |
| .quest-item { | |
| border-left: 3px solid var(--neon-blue); | |
| transition: all 0.3s ease; | |
| } | |
| .quest-item:hover { | |
| transform: translateX(5px); | |
| box-shadow: 0 0 15px rgba(0, 242, 255, 0.3); | |
| } | |
| .skill-node { | |
| width: 60px; | |
| height: 60px; | |
| border-radius: 50%; | |
| background: radial-gradient(circle, #1a0033 0%, #0a0a0a 70%); | |
| border: 2px solid var(--neon-purple); | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| position: relative; | |
| transition: all 0.3s ease; | |
| } | |
| .skill-node.active { | |
| border-color: var(--neon-blue); | |
| box-shadow: 0 0 15px var(--neon-blue); | |
| } | |
| .skill-node.locked { | |
| filter: grayscale(80%); | |
| opacity: 0.6; | |
| } | |
| .skill-connector { | |
| height: 2px; | |
| background: linear-gradient(90deg, var(--neon-purple) 0%, transparent 100%); | |
| position: absolute; | |
| top: 50%; | |
| transform: translateY(-50%); | |
| } | |
| .stat-bar { | |
| height: 10px; | |
| background: linear-gradient(90deg, #0a0a0a 0%, #1a0033 50%, #0a0a0a 100%); | |
| border: 1px solid var(--neon-purple); | |
| } | |
| .stat-progress { | |
| height: 100%; | |
| background: linear-gradient(90deg, var(--neon-red) 0%, var(--neon-purple) 100%); | |
| } | |
| .system-message { | |
| animation: pulse 2s infinite; | |
| } | |
| @keyframes pulse { | |
| 0% { box-shadow: 0 0 5px var(--neon-blue); } | |
| 50% { box-shadow: 0 0 20px var(--neon-blue); } | |
| 100% { box-shadow: 0 0 5px var(--neon-blue); } | |
| } | |
| .rune-border { | |
| position: relative; | |
| } | |
| .rune-border::before { | |
| content: ""; | |
| position: absolute; | |
| top: -5px; | |
| left: -5px; | |
| right: -5px; | |
| bottom: -5px; | |
| border: 2px solid var(--neon-blue); | |
| border-radius: 5px; | |
| z-index: -1; | |
| opacity: 0.5; | |
| } | |
| .level-up { | |
| animation: levelUp 1.5s ease-out; | |
| } | |
| @keyframes levelUp { | |
| 0% { transform: scale(1); opacity: 1; } | |
| 50% { transform: scale(1.5); opacity: 0.8; } | |
| 100% { transform: scale(1); opacity: 1; } | |
| } | |
| .cinematic-overlay { | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| background: linear-gradient(rgba(0,0,0,0.9), rgba(0,0,0,0.95)); | |
| z-index: 1000; | |
| display: flex; | |
| flex-direction: column; | |
| justify-content: center; | |
| align-items: center; | |
| } | |
| .dungeon-select { | |
| border: 3px solid var(--neon-purple); | |
| box-shadow: 0 0 30px var(--neon-purple); | |
| transform: perspective(800px) rotateX(20deg); | |
| transition: all 0.5s ease; | |
| } | |
| .dungeon-select:hover { | |
| transform: perspective(800px) rotateX(10deg) scale(1.05); | |
| box-shadow: 0 0 50px var(--neon-purple); | |
| } | |
| .scroll-unlock { | |
| background: linear-gradient(135deg, rgba(10,10,10,0.9) 0%, rgba(30,10,40,0.7) 100%); | |
| border: 1px solid var(--neon-purple); | |
| transform: rotateY(20deg); | |
| transition: all 0.3s ease; | |
| perspective: 1000px; | |
| } | |
| .scroll-unlock:hover { | |
| transform: rotateY(0deg) scale(1.05); | |
| box-shadow: 0 0 20px var(--neon-purple); | |
| } | |
| .scroll-seal { | |
| position: absolute; | |
| top: 50%; | |
| left: 50%; | |
| transform: translate(-50%, -50%); | |
| width: 60px; | |
| height: 60px; | |
| background: radial-gradient(circle, var(--neon-red) 0%, transparent 70%); | |
| border-radius: 50%; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| font-size: 24px; | |
| color: white; | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-black text-white"> | |
| <!-- Cinematic Onboarding --> | |
| <div id="onboarding" class="cinematic-overlay"> | |
| <div class="text-center mb-12"> | |
| <h1 class="text-5xl md:text-7xl font-bold neon-text-purple press-start mb-4">SHADOW GUILD</h1> | |
| <p class="text-xl neon-text-blue">Awaken your potential. Level up your life.</p> | |
| </div> | |
| <div class="grid grid-cols-1 md:grid-cols-3 gap-8 w-full max-w-4xl px-4"> | |
| <div class="dungeon-select p-6 rounded-lg cursor-pointer" onclick="selectDungeon('warrior')"> | |
| <div class="text-center"> | |
| <i class="fas fa-swords neon-text-blue text-4xl mb-4"></i> | |
| <h3 class="text-2xl neon-text-blue mb-2">Warrior's Path</h3> | |
| <p class="text-gray-400">Build discipline and strength through daily challenges</p> | |
| </div> | |
| </div> | |
| <div class="dungeon-select p-6 rounded-lg cursor-pointer" onclick="selectDungeon('mage')"> | |
| <div class="text-center"> | |
| <i class="fas fa-hat-wizard neon-text-purple text-4xl mb-4"></i> | |
| <h3 class="text-2xl neon-text-purple mb-2">Mage's Tower</h3> | |
| <p class="text-gray-400">Develop focus and wisdom through mindful practices</p> | |
| </div> | |
| </div> | |
| <div class="dungeon-select p-6 rounded-lg cursor-pointer" onclick="selectDungeon('rogue')"> | |
| <div class="text-center"> | |
| <i class="fas fa-user-ninja neon-text-red text-4xl mb-4"></i> | |
| <h3 class="text-2xl neon-text-red mb-2">Rogue's Den</h3> | |
| <p class="text-gray-400">Master adaptability with flexible habit systems</p> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="mt-12 text-center"> | |
| <button id="beginQuest" class="px-8 py-3 bg-gradient-to-r from-purple-900 to-blue-900 rounded-full text-white font-bold text-lg hover:from-purple-800 hover:to-blue-800 transition-all duration-300 opacity-0 transform translate-y-10"> | |
| BEGIN YOUR QUEST | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Main App --> | |
| <div id="app" class="container mx-auto px-4 py-8 hidden"> | |
| <!-- Header --> | |
| <header class="flex justify-between items-center mb-8"> | |
| <div> | |
| <h1 class="text-3xl md:text-4xl font-bold neon-text-purple press-start">SHADOW GUILD</h1> | |
| <p class="text-sm text-gray-400">Daily Quest Board</p> | |
| </div> | |
| <div class="text-right"> | |
| <div class="flex items-center justify-end mb-2"> | |
| <span class="text-sm mr-2">Lv. <span id="currentLevel">3</span></span> | |
| <div class="xp-bar w-32 md:w-48"> | |
| <div id="xpProgress" class="xp-progress" style="width: 65%"></div> | |
| </div> | |
| </div> | |
| <p class="text-xs text-gray-400"><span id="currentXP">650</span>/1000 XP</p> | |
| </div> | |
| </header> | |
| <!-- System Message --> | |
| <div id="systemMessage" class="system-message glow-box rounded-lg p-4 mb-8 neon-text-blue border border-blue-500 hidden"> | |
| <div class="flex items-center"> | |
| <i class="fas fa-scroll mr-3 text-xl"></i> | |
| <div> | |
| <p class="font-bold">SYSTEM MESSAGE:</p> | |
| <p id="messageText">You've awakened new power: Focus!</p> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Main Content --> | |
| <div class="grid grid-cols-1 lg:grid-cols-3 gap-8"> | |
| <!-- Quest Board --> | |
| <div class="lg:col-span-2"> | |
| <div class="glow-box rounded-lg p-6 mb-8"> | |
| <div class="flex justify-between items-center mb-6"> | |
| <h2 class="text-2xl neon-text-blue font-bold flex items-center"> | |
| <i class="fas fa-quest mr-3"></i> TODAY'S QUESTS | |
| </h2> | |
| <span class="text-sm text-gray-400">Completion: <span id="questCompletion">40</span>%</span> | |
| </div> | |
| <div class="space-y-4"> | |
| <div class="quest-item glow-box rounded p-4 flex items-center justify-between" data-xp="50"> | |
| <div class="flex items-center"> | |
| <button class="complete-btn w-6 h-6 rounded-full border-2 border-purple-500 mr-4 hover:bg-purple-900 transition-colors"></button> | |
| <div> | |
| <h3 class="font-bold">Morning Meditation</h3> | |
| <p class="text-sm text-gray-400">+50 XP | +5 Willpower</p> | |
| </div> | |
| </div> | |
| <i class="fas fa-scroll text-purple-500"></i> | |
| </div> | |
| <div class="quest-item glow-box rounded p-4 flex items-center justify-between" data-xp="75"> | |
| <div class="flex items-center"> | |
| <button class="complete-btn w-6 h-6 rounded-full border-2 border-blue-500 mr-4 hover:bg-blue-900 transition-colors"></button> | |
| <div> | |
| <h3 class="font-bold">Workout Session</h3> | |
| <p class="text-sm text-gray-400">+75 XP | +10 Strength</p> | |
| </div> | |
| </div> | |
| <i class="fas fa-dumbbell text-blue-500"></i> | |
| </div> | |
| <div class="quest-item glow-box rounded p-4 flex items-center justify-between" data-xp="100"> | |
| <div class="flex items-center"> | |
| <button class="complete-btn w-6 h-6 rounded-full border-2 border-red-500 mr-4 hover:bg-red-900 transition-colors"></button> | |
| <div> | |
| <h3 class="font-bold">Deep Work (2h)</h3> | |
| <p class="text-sm text-gray-400">+100 XP | +15 Focus</p> | |
| </div> | |
| </div> | |
| <i class="fas fa-brain text-red-500"></i> | |
| </div> | |
| <div class="quest-item glow-box rounded p-4 flex items-center justify-between" data-xp="50"> | |
| <div class="flex items-center"> | |
| <button class="complete-btn w-6 h-6 rounded-full border-2 border-purple-500 mr-4 hover:bg-purple-900 transition-colors"></button> | |
| <div> | |
| <h3 class="font-bold">Evening Reflection</h3> | |
| <p class="text-sm text-gray-400">+50 XP | +5 Wisdom</p> | |
| </div> | |
| </div> | |
| <i class="fas fa-moon text-purple-500"></i> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Skill Tree --> | |
| <div class="glow-box rounded-lg p-6"> | |
| <h2 class="text-2xl neon-text-purple font-bold mb-6 flex items-center"> | |
| <i class="fas fa-project-diagram mr-3"></i> ABILITY TREE | |
| </h2> | |
| <div class="grid grid-cols-5 gap-4 text-center"> | |
| <!-- Row 1 --> | |
| <div class="col-start-3"> | |
| <div class="skill-node active"> | |
| <i class="fas fa-medal text-yellow-400"></i> | |
| </div> | |
| </div> | |
| <!-- Row 2 --> | |
| <div class="col-start-2"> | |
| <div class="skill-node active"> | |
| <i class="fas fa-fire text-orange-500"></i> | |
| </div> | |
| <div class="skill-connector w-full" style="width: 100%; left: 50%;"></div> | |
| </div> | |
| <div class="col-start-4"> | |
| <div class="skill-node"> | |
| <i class="fas fa-lock text-gray-400"></i> | |
| </div> | |
| <div class="skill-connector w-full" style="width: 100%; right: 50%;"></div> | |
| </div> | |
| <!-- Row 3 --> | |
| <div class="col-start-1"> | |
| <div class="skill-node active"> | |
| <i class="fas fa-running text-blue-400"></i> | |
| </div> | |
| <div class="skill-connector" style="width: 50%; left: 100%;"></div> | |
| </div> | |
| <div class="col-start-3"> | |
| <div class="skill-node active"> | |
| <i class="fas fa-brain text-purple-400"></i> | |
| </div> | |
| <div class="skill-connector" style="width: 50%; left: 100%;"></div> | |
| <div class="skill-connector" style="width: 50%; right: 100%;"></div> | |
| </div> | |
| <div class="col-start-5"> | |
| <div class="skill-node locked"> | |
| <i class="fas fa-lock text-gray-400"></i> | |
| </div> | |
| </div> | |
| <!-- Row 4 --> | |
| <div class="col-start-2"> | |
| <div class="skill-node"> | |
| <i class="fas fa-lock text-gray-400"></i> | |
| </div> | |
| </div> | |
| <div class="col-start-4"> | |
| <div class="skill-node locked"> | |
| <i class="fas fa-lock text-gray-400"></i> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="mt-8"> | |
| <h3 class="text-lg font-bold mb-3 neon-text-blue">Unlocked Abilities</h3> | |
| <div class="grid grid-cols-1 md:grid-cols-2 gap-4"> | |
| <div class="glow-box rounded p-3 flex items-center"> | |
| <i class="fas fa-fire text-orange-500 mr-3 text-xl"></i> | |
| <div> | |
| <h4 class="font-bold">Discipline Flame</h4> | |
| <p class="text-sm text-gray-400">+10% XP from completed quests</p> | |
| </div> | |
| </div> | |
| <div class="glow-box rounded p-3 flex items-center"> | |
| <i class="fas fa-brain text-purple-400 mr-3 text-xl"></i> | |
| <div> | |
| <h4 class="font-bold">Mental Fortitude</h4> | |
| <p class="text-sm text-gray-400">Reduces distraction chance by 15%</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Stats & Unlockables --> | |
| <div> | |
| <!-- Character Stats --> | |
| <div class="glow-box rounded-lg p-6 mb-8"> | |
| <h2 class="text-2xl neon-text-red font-bold mb-6 flex items-center"> | |
| <i class="fas fa-chart-line mr-3"></i> PLAYER STATS | |
| </h2> | |
| <div class="space-y-4"> | |
| <div> | |
| <div class="flex justify-between mb-1"> | |
| <span>Strength</span> | |
| <span>65/100</span> | |
| </div> | |
| <div class="stat-bar"> | |
| <div class="stat-progress" style="width: 65%"></div> | |
| </div> | |
| </div> | |
| <div> | |
| <div class="flex justify-between mb-1"> | |
| <span>Willpower</span> | |
| <span>45/100</span> | |
| </div> | |
| <div class="stat-bar"> | |
| <div class="stat-progress" style="width: 45%"></div> | |
| </div> | |
| </div> | |
| <div> | |
| <div class="flex justify-between mb-1"> | |
| <span>Focus</span> | |
| <span>70/100</span> | |
| </div> | |
| <div class="stat-bar"> | |
| <div class="stat-progress" style="width: 70%"></div> | |
| </div> | |
| </div> | |
| <div> | |
| <div class="flex justify-between mb-1"> | |
| <span>Wisdom</span> | |
| <span>55/100</span> | |
| </div> | |
| <div class="stat-bar"> | |
| <div class="stat-progress" style="width: 55%"></div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="mt-6 pt-4 border-t border-gray-800"> | |
| <h3 class="text-lg font-bold mb-3 neon-text-purple">Daily Buffs</h3> | |
| <div class="space-y-3"> | |
| <div class="flex items-center"> | |
| <i class="fas fa-bolt text-yellow-400 mr-3"></i> | |
| <span>Morning Energy (+10% Focus until noon)</span> | |
| </div> | |
| <div class="flex items-center"> | |
| <i class="fas fa-moon text-purple-400 mr-3"></i> | |
| <span>Lunar Inspiration (+5 Willpower at night)</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Unlockable Scrolls --> | |
| <div class="glow-box rounded-lg p-6"> | |
| <h2 class="text-2xl neon-text-blue font-bold mb-6 flex items-center"> | |
| <i class="fas fa-scroll mr-3"></i> RUNE SCROLLS | |
| </h2> | |
| <div class="grid grid-cols-1 gap-4"> | |
| <div class="scroll-unlock rounded-lg p-4 relative overflow-hidden"> | |
| <div class="flex"> | |
| <div class="w-16 h-16 bg-purple-900 rounded-lg flex items-center justify-center mr-4"> | |
| <i class="fas fa-spa text-xl text-purple-300"></i> | |
| </div> | |
| <div> | |
| <h3 class="font-bold">Breath of Calm</h3> | |
| <p class="text-sm text-gray-400">5-minute guided meditation</p> | |
| <div class="mt-2"> | |
| <span class="text-xs bg-purple-900 text-purple-300 px-2 py-1 rounded">Unlocked</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="scroll-unlock rounded-lg p-4 relative overflow-hidden"> | |
| <div class="flex"> | |
| <div class="w-16 h-16 bg-blue-900 rounded-lg flex items-center justify-center mr-4"> | |
| <i class="fas fa-bolt text-xl text-blue-300"></i> | |
| </div> | |
| <div> | |
| <h3 class="font-bold">Energy Surge</h3> | |
| <p class="text-sm text-gray-400">Quick energy boost routine</p> | |
| <div class="mt-2"> | |
| <span class="text-xs bg-blue-900 text-blue-300 px-2 py-1 rounded">Unlocked</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="scroll-unlock rounded-lg p-4 relative overflow-hidden"> | |
| <div class="flex"> | |
| <div class="w-16 h-16 bg-gray-800 rounded-lg flex items-center justify-center mr-4"> | |
| <i class="fas fa-lock text-xl text-gray-500"></i> | |
| </div> | |
| <div> | |
| <h3 class="font-bold">Deep Focus Ritual</h3> | |
| <p class="text-sm text-gray-400">45-minute concentration session</p> | |
| <div class="mt-2"> | |
| <span class="text-xs bg-gray-800 text-gray-500 px-2 py-1 rounded">Locked (Lv. 5)</span> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="scroll-seal"> | |
| <i class="fas fa-lock"></i> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="mt-6 pt-4 border-t border-gray-800"> | |
| <button class="w-full py-2 bg-gradient-to-r from-purple-900 to-blue-900 rounded-lg font-bold hover:from-purple-800 hover:to-blue-800 transition-all duration-300"> | |
| CAST A SPELL | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <script> | |
| // Onboarding Animation | |
| setTimeout(() => { | |
| document.getElementById('beginQuest').classList.remove('opacity-0', 'translate-y-10'); | |
| document.getElementById('beginQuest').classList.add('opacity-100', 'translate-y-0'); | |
| }, 1500); | |
| function selectDungeon(type) { | |
| const dungeons = document.querySelectorAll('.dungeon-select'); | |
| dungeons.forEach(d => d.classList.remove('neon-text-blue', 'neon-text-purple', 'neon-text-red')); | |
| if (type === 'warrior') { | |
| dungeons[0].classList.add('neon-text-blue'); | |
| } else if (type === 'mage') { | |
| dungeons[1].classList.add('neon-text-purple'); | |
| } else { | |
| dungeons[2].classList.add('neon-text-red'); | |
| } | |
| } | |
| document.getElementById('beginQuest').addEventListener('click', () => { | |
| document.getElementById('onboarding').style.opacity = '0'; | |
| setTimeout(() => { | |
| document.getElementById('onboarding').style.display = 'none'; | |
| document.getElementById('app').classList.remove('hidden'); | |
| // Show welcome message | |
| showSystemMessage("Welcome, Hunter. Your quest begins now."); | |
| }, 500); | |
| }); | |
| // Quest Completion | |
| const completeButtons = document.querySelectorAll('.complete-btn'); | |
| completeButtons.forEach(button => { | |
| button.addEventListener('click', function() { | |
| const questItem = this.closest('.quest-item'); | |
| const xpValue = parseInt(questItem.getAttribute('data-xp')); | |
| // Mark as completed | |
| this.innerHTML = '<i class="fas fa-check text-green-400"></i>'; | |
| this.classList.remove('border-purple-500', 'border-blue-500', 'border-red-500', 'hover:bg-purple-900', 'hover:bg-blue-900', 'hover:bg-red-900'); | |
| this.classList.add('bg-green-900', 'border-green-400'); | |
| // Update XP | |
| const currentXP = parseInt(document.getElementById('currentXP').textContent); | |
| const newXP = currentXP + xpValue; | |
| document.getElementById('currentXP').textContent = newXP; | |
| // Update progress bar | |
| const xpPercentage = Math.min((newXP / 1000) * 100, 100); | |
| document.getElementById('xpProgress').style.width = `${xpPercentage}%`; | |
| // Update quest completion percentage | |
| updateCompletionPercentage(); | |
| // Check for level up | |
| if (newXP >= 1000) { | |
| levelUp(); | |
| } | |
| // Show random encouragement | |
| const messages = [ | |
| "Quest completed! Your power grows.", | |
| "The shadows acknowledge your progress.", | |
| "Another step toward your awakening.", | |
| "The system records your achievement.", | |
| "Your stats have improved." | |
| ]; | |
| const randomMessage = messages[Math.floor(Math.random() * messages.length)]; | |
| showSystemMessage(randomMessage); | |
| }); | |
| }); | |
| function updateCompletionPercentage() { | |
| const totalQuests = document.querySelectorAll('.quest-item').length; | |
| const completedQuests = document.querySelectorAll('.complete-btn i.fa-check').length; | |
| const percentage = Math.round((completedQuests / totalQuests) * 100); | |
| document.getElementById('questCompletion').textContent = percentage; | |
| } | |
| function levelUp() { | |
| const currentLevel = parseInt(document.getElementById('currentLevel').textContent); | |
| document.getElementById('currentLevel').textContent = currentLevel + 1; | |
| document.getElementById('currentXP').textContent = "0"; | |
| document.getElementById('xpProgress').style.width = "0%"; | |
| // Show level up animation | |
| const levelElement = document.getElementById('currentLevel'); | |
| levelElement.classList.add('level-up'); | |
| setTimeout(() => { | |
| levelElement.classList.remove('level-up'); | |
| }, 1500); | |
| showSystemMessage("LEVEL UP! You've reached level " + (currentLevel + 1) + "!"); | |
| } | |
| function showSystemMessage(message) { | |
| const systemMessage = document.getElementById('systemMessage'); | |
| document.getElementById('messageText').textContent = message; | |
| systemMessage.classList.remove('hidden'); | |
| setTimeout(() => { | |
| systemMessage.classList.add('hidden'); | |
| }, 5000); | |
| } | |
| </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=AnotherBar/create-space-1" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |