Download index.html from Tuna11/a: direct link, hf CLI and curl.
- Browser
- Download file 26.7 kB
-
https://huggingface.co/spaces/Tuna11/a/resolve/main/index.html
- Command line
-
hf download hf://spaces/Tuna11/a/index.html
-
curl -L -o index.html https://huggingface.co/spaces/Tuna11/a/resolve/main/index.html
26.7 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Better MyAnimeList.net</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> | |
| .theme-blue { | |
| --primary: #3b82f6; | |
| --primary-hover: #2563eb; | |
| --stripes: #1d4ed8; | |
| } | |
| .theme-red { | |
| --primary: #ef4444; | |
| --primary-hover: #dc2626; | |
| --stripes: #b91c1c; | |
| } | |
| .theme-green { | |
| --primary: #10b981; | |
| --primary-hover: #059669; | |
| --stripes: #047857; | |
| } | |
| .theme-yellow { | |
| --primary: #f59e0b; | |
| --primary-hover: #d97706; | |
| --stripes: #b45309; | |
| } | |
| .dark-mode { | |
| --bg-color: #1f2937; | |
| --text-color: #f3f4f6; | |
| --card-bg: #374151; | |
| --input-bg: #4b5563; | |
| } | |
| .light-mode { | |
| --bg-color: #ffffff; | |
| --text-color: #111827; | |
| --card-bg: #f9fafb; | |
| --input-bg: #f3f4f6; | |
| } | |
| body { | |
| background-color: var(--bg-color); | |
| color: var(--text-color); | |
| transition: background-color 0.3s, color 0.3s; | |
| position: relative; | |
| } | |
| body::before, body::after { | |
| content: ''; | |
| position: fixed; | |
| top: 0; | |
| bottom: 0; | |
| width: 12px; | |
| background-color: var(--stripes); | |
| z-index: -1; | |
| } | |
| body::before { | |
| left: 0; | |
| } | |
| body::after { | |
| right: 0; | |
| } | |
| .bg-primary { | |
| background-color: var(--primary); | |
| } | |
| .hover\:bg-primary:hover { | |
| background-color: var(--primary-hover); | |
| } | |
| .text-primary { | |
| color: var(--primary); | |
| } | |
| .border-primary { | |
| border-color: var(--primary); | |
| } | |
| .anime-card { | |
| background-color: var(--card-bg); | |
| font-weight: bold; | |
| border-radius: 12px; | |
| transition: all 0.3s ease; | |
| } | |
| .settings-panel { | |
| transform: translateX(100%); | |
| transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55); | |
| } | |
| .settings-panel.open { | |
| transform: translateX(0); | |
| } | |
| .color-option { | |
| width: 30px; | |
| height: 30px; | |
| border-radius: 50%; | |
| cursor: pointer; | |
| transition: transform 0.2s; | |
| } | |
| .color-option:hover { | |
| transform: scale(1.2); | |
| } | |
| .color-option.selected { | |
| border: 2px solid white; | |
| box-shadow: 0 0 5px rgba(0,0,0,0.3); | |
| } | |
| /* Tag styles */ | |
| .tag { | |
| display: inline-block; | |
| padding: 0.25rem 0.5rem; | |
| border-radius: 9999px; | |
| font-size: 0.75rem; | |
| font-weight: 500; | |
| margin-right: 0.5rem; | |
| margin-bottom: 0.5rem; | |
| cursor: pointer; | |
| transition: all 0.2s; | |
| } | |
| .tag:hover { | |
| transform: translateY(-1px) scale(1.05); | |
| } | |
| .tag.selected { | |
| box-shadow: 0 0 0 2px var(--primary); | |
| } | |
| /* Smooth selection panel */ | |
| .selection-panel { | |
| transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); | |
| border-radius: 12px; | |
| } | |
| /* Modal animation */ | |
| .modal-enter { | |
| opacity: 0; | |
| transform: scale(0.95); | |
| } | |
| .modal-enter-active { | |
| opacity: 1; | |
| transform: scale(1); | |
| transition: opacity 200ms, transform 200ms; | |
| } | |
| .modal-exit { | |
| opacity: 1; | |
| transform: scale(1); | |
| } | |
| .modal-exit-active { | |
| opacity: 0; | |
| transform: scale(0.95); | |
| transition: opacity 200ms, transform 200ms; | |
| } | |
| /* Menu item hover effect */ | |
| .menu-item { | |
| transition: all 0.2s ease; | |
| border-radius: 8px; | |
| padding: 0.5rem 1rem; | |
| } | |
| .menu-item:hover { | |
| background-color: rgba(0,0,0,0.1); | |
| transform: scale(1.05); | |
| } | |
| /* Watched tick */ | |
| .watched-tick { | |
| position: absolute; | |
| top: 0.5rem; | |
| right: 0.5rem; | |
| width: 24px; | |
| height: 24px; | |
| border-radius: 50%; | |
| background-color: var(--primary); | |
| color: white; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| cursor: pointer; | |
| transition: all 0.2s ease; | |
| } | |
| .watched-tick:hover { | |
| transform: scale(1.2); | |
| background-color: var(--primary-hover); | |
| } | |
| /* Anime card hover effect */ | |
| .anime-card:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 0 10px 20px rgba(0,0,0,0.1); | |
| } | |
| /* Form input focus effect */ | |
| .form-input:focus { | |
| box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3); | |
| } | |
| /* Radio button hover effect */ | |
| .radio-option:hover { | |
| transform: scale(1.05); | |
| } | |
| </style> | |
| </head> | |
| <body class="theme-blue light-mode"> | |
| <!-- Settings Button --> | |
| <div class="fixed top-4 right-4 z-50"> | |
| <button id="settingsBtn" class="bg-primary text-white p-3 rounded-full shadow-lg hover:bg-primary-hover transition transform hover:scale-110"> | |
| <i class="fas fa-cog text-xl"></i> | |
| </button> | |
| </div> | |
| <!-- Settings Panel --> | |
| <div id="settingsPanel" class="settings-panel fixed top-0 right-0 h-full w-64 bg-gray-800 text-white p-4 shadow-xl z-40"> | |
| <div class="flex justify-between items-center mb-6"> | |
| <h2 class="text-xl font-bold">Settings</h2> | |
| <button id="closeSettings" class="text-gray-300 hover:text-white transform hover:scale-110"> | |
| <i class="fas fa-times"></i> | |
| </button> | |
| </div> | |
| <div class="mb-6"> | |
| <h3 class="font-semibold mb-2">Theme Mode</h3> | |
| <div class="flex space-x-4"> | |
| <button id="lightModeBtn" class="menu-item px-4 py-2 bg-gray-700 rounded hover:bg-gray-600">Light</button> | |
| <button id="darkModeBtn" class="menu-item px-4 py-2 bg-gray-700 rounded hover:bg-gray-600">Dark</button> | |
| </div> | |
| </div> | |
| <div class="mb-6"> | |
| <h3 class="font-semibold mb-2">Color Theme</h3> | |
| <div class="flex space-x-3"> | |
| <div class="color-option bg-blue-500 selected" data-color="blue"></div> | |
| <div class="color-option bg-red-500" data-color="red"></div> | |
| <div class="color-option bg-green-500" data-color="green"></div> | |
| <div class="color-option bg-yellow-500" data-color="yellow"></div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Overlay --> | |
| <div id="overlay" class="fixed inset-0 bg-black bg-opacity-50 z-30 hidden"></div> | |
| <!-- Main Content --> | |
| <div class="container mx-auto px-4 py-8"> | |
| <header class="text-center mb-12"> | |
| <h1 class="text-4xl font-bold text-primary mb-2">Better MyAnimeList.net</h1> | |
| <p class="text-gray-600 dark:text-gray-300">Your ultimate anime watchlist manager</p> | |
| </header> | |
| <!-- Add Anime Button --> | |
| <div class="flex justify-center mb-12"> | |
| <button id="addAnimeBtn" class="bg-primary hover:bg-primary-hover text-white font-bold py-3 px-6 rounded-full shadow-lg transition flex items-center transform hover:scale-105"> | |
| <i class="fas fa-plus mr-2"></i> Add Anime | |
| </button> | |
| </div> | |
| <!-- Anime List --> | |
| <div id="animeList" class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"> | |
| <!-- Anime cards will be added here --> | |
| </div> | |
| </div> | |
| <!-- Add Anime Modal --> | |
| <div id="addAnimeModal" class="fixed inset-0 flex items-center justify-center z-50 hidden"> | |
| <div class="bg-white dark:bg-gray-700 rounded-lg shadow-xl p-6 w-full max-w-md mx-4 selection-panel transform transition-all duration-300 scale-95 opacity-0"> | |
| <div class="flex justify-between items-center mb-4"> | |
| <h3 class="text-xl font-bold text-primary">Add New Anime</h3> | |
| <button id="closeModal" class="text-gray-500 dark:text-gray-300 hover:text-gray-700 dark:hover:text-gray-100 transform hover:scale-110"> | |
| <i class="fas fa-times"></i> | |
| </button> | |
| </div> | |
| <form id="animeForm" class="space-y-6"> | |
| <div> | |
| <label for="animeTitle" class="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1">Anime Title</label> | |
| <input type="text" id="animeTitle" class="form-input w-full px-4 py-2 border border-gray-300 dark:border-gray-600 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent dark:bg-gray-600 dark:text-white transition" placeholder="Enter anime title" required> | |
| </div> | |
| <div> | |
| <label for="animeEpisodes" class="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1">Total Episodes</label> | |
| <input type="number" id="animeEpisodes" class="form-input w-full px-4 py-2 border border-gray-300 dark:border-gray-600 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent dark:bg-gray-600 dark:text-white transition" placeholder="Number of episodes" min="1" required> | |
| </div> | |
| <div> | |
| <label class="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2">Type</label> | |
| <div class="grid grid-cols-2 gap-3"> | |
| <div> | |
| <input type="radio" id="typeSeries" name="animeType" value="Series" class="hidden peer" checked> | |
| <label for="typeSeries" class="radio-option flex items-center justify-center p-3 border border-gray-300 dark:border-gray-600 rounded-lg cursor-pointer peer-checked:border-primary peer-checked:bg-primary/10 peer-checked:text-primary transition"> | |
| <i class="fas fa-tv mr-2"></i> Series | |
| </label> | |
| </div> | |
| <div> | |
| <input type="radio" id="typeMovie" name="animeType" value="Movie" class="hidden peer"> | |
| <label for="typeMovie" class="radio-option flex items-center justify-center p-3 border border-gray-300 dark:border-gray-600 rounded-lg cursor-pointer peer-checked:border-primary peer-checked:bg-primary/10 peer-checked:text-primary transition"> | |
| <i class="fas fa-film mr-2"></i> Movie | |
| </label> | |
| </div> | |
| </div> | |
| </div> | |
| <div> | |
| <label class="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2">Tags</label> | |
| <div class="flex flex-wrap"> | |
| <input type="checkbox" id="tagComedy" name="tags" value="Comedy" class="hidden"> | |
| <label for="tagComedy" class="tag bg-pink-100 text-pink-800 dark:bg-pink-900 dark:text-pink-200">Comedy</label> | |
| <input type="checkbox" id="tagDrama" name="tags" value="Drama" class="hidden"> | |
| <label for="tagDrama" class="tag bg-purple-100 text-purple-800 dark:bg-purple-900 dark:text-purple-200">Drama</label> | |
| <input type="checkbox" id="tagAction" name="tags" value="Action" class="hidden"> | |
| <label for="tagAction" class="tag bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-200">Action</label> | |
| <input type="checkbox" id="tagMystery" name="tags" value="Mystery" class="hidden"> | |
| <label for="tagMystery" class="tag bg-indigo-100 text-indigo-800 dark:bg-indigo-900 dark:text-indigo-200">Mystery</label> | |
| <input type="checkbox" id="tagRomance" name="tags" value="Romance" class="hidden"> | |
| <label for="tagRomance" class="tag bg-rose-100 text-rose-800 dark:bg-rose-900 dark:text-rose-200">Romance</label> | |
| <input type="checkbox" id="tagFantasy" name="tags" value="Fantasy" class="hidden"> | |
| <label for="tagFantasy" class="tag bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-200">Fantasy</label> | |
| <input type="checkbox" id="tagSciFi" name="tags" value="Science Fiction" class="hidden"> | |
| <label for="tagSciFi" class="tag bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200">Sci-Fi</label> | |
| <input type="checkbox" id="tagSports" name="tags" value="Sports" class="hidden"> | |
| <label for="tagSports" class="tag bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200">Sports</label> | |
| </div> | |
| </div> | |
| <div class="pt-2"> | |
| <button type="submit" class="w-full bg-primary hover:bg-primary-hover text-white font-bold py-3 px-4 rounded-lg focus:outline-none focus:shadow-outline transition flex items-center justify-center transform hover:scale-105"> | |
| <i class="fas fa-plus mr-2"></i> Add Anime | |
| </button> | |
| </div> | |
| </form> | |
| </div> | |
| </div> | |
| <script> | |
| // DOM Elements | |
| const settingsBtn = document.getElementById('settingsBtn'); | |
| const closeSettings = document.getElementById('closeSettings'); | |
| const settingsPanel = document.getElementById('settingsPanel'); | |
| const overlay = document.getElementById('overlay'); | |
| const addAnimeBtn = document.getElementById('addAnimeBtn'); | |
| const addAnimeModal = document.getElementById('addAnimeModal'); | |
| const closeModal = document.getElementById('closeModal'); | |
| const animeForm = document.getElementById('animeForm'); | |
| const animeList = document.getElementById('animeList'); | |
| const lightModeBtn = document.getElementById('lightModeBtn'); | |
| const darkModeBtn = document.getElementById('darkModeBtn'); | |
| const colorOptions = document.querySelectorAll('.color-option'); | |
| // Sample anime data | |
| let animeData = [ | |
| { id: 1, title: "Attack on Titan", episodes: 25, type: "Series", tags: ["Action", "Fantasy"] }, | |
| { id: 2, title: "Demon Slayer", episodes: 26, type: "Series", tags: ["Action", "Fantasy"] }, | |
| { id: 3, title: "Your Name", episodes: 1, type: "Movie", tags: ["Drama", "Romance"] } | |
| ]; | |
| // Initialize the app | |
| function init() { | |
| renderAnimeList(); | |
| loadSettings(); | |
| setupTagSelection(); | |
| } | |
| // Setup tag selection | |
| function setupTagSelection() { | |
| document.querySelectorAll('input[name="tags"]').forEach(checkbox => { | |
| checkbox.addEventListener('change', function() { | |
| const label = document.querySelector(`label[for="${this.id}"]`); | |
| if (this.checked) { | |
| label.classList.add('selected'); | |
| } else { | |
| label.classList.remove('selected'); | |
| } | |
| }); | |
| }); | |
| } | |
| // Render anime list | |
| function renderAnimeList() { | |
| animeList.innerHTML = ''; | |
| if (animeData.length === 0) { | |
| animeList.innerHTML = ` | |
| <div class="col-span-full text-center py-8"> | |
| <p class="text-gray-500 dark:text-gray-400">Your anime list is empty. Add some anime!</p> | |
| </div> | |
| `; | |
| return; | |
| } | |
| animeData.forEach(anime => { | |
| const animeCard = document.createElement('div'); | |
| animeCard.className = 'anime-card rounded-lg shadow-md overflow-hidden transition hover:shadow-lg relative'; | |
| animeCard.innerHTML = ` | |
| <div class="p-4"> | |
| <div class="flex justify-between items-start mb-2"> | |
| <h3 class="text-lg font-semibold">${anime.title}</h3> | |
| <span class="text-xs px-2 py-1 rounded-full ${getTypeColorClass(anime.type)}">${anime.type}</span> | |
| </div> | |
| <p class="text-sm text-gray-600 dark:text-gray-300 mb-3">Episodes: ${anime.episodes}</p> | |
| <div class="flex flex-wrap"> | |
| ${renderTags(anime.tags)} | |
| </div> | |
| </div> | |
| <div class="watched-tick" onclick="markAsWatched(${anime.id})"> | |
| <i class="fas fa-check text-xs"></i> | |
| </div> | |
| `; | |
| animeList.appendChild(animeCard); | |
| }); | |
| } | |
| // Helper function to get type color class | |
| function getTypeColorClass(type) { | |
| return type === 'Movie' | |
| ? 'bg-purple-100 text-purple-800 dark:bg-purple-900 dark:text-purple-200' | |
| : 'bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-200'; | |
| } | |
| // Helper function to render tags | |
| function renderTags(tags) { | |
| if (!tags || tags.length === 0) return ''; | |
| return tags.map(tag => { | |
| const colorClasses = getTagColorClass(tag); | |
| return `<span class="text-xs px-2 py-1 rounded-full ${colorClasses} mr-1 mb-1">${tag}</span>`; | |
| }).join(''); | |
| } | |
| // Helper function to get tag color class | |
| function getTagColorClass(tag) { | |
| switch(tag) { | |
| case 'Comedy': return 'bg-pink-100 text-pink-800 dark:bg-pink-900 dark:text-pink-200'; | |
| case 'Drama': return 'bg-purple-100 text-purple-800 dark:bg-purple-900 dark:text-purple-200'; | |
| case 'Action': return 'bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-200'; | |
| case 'Mystery': return 'bg-indigo-100 text-indigo-800 dark:bg-indigo-900 dark:text-indigo-200'; | |
| case 'Romance': return 'bg-rose-100 text-rose-800 dark:bg-rose-900 dark:text-rose-200'; | |
| case 'Fantasy': return 'bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-200'; | |
| case 'Science Fiction': return 'bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200'; | |
| case 'Sports': return 'bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200'; | |
| default: return 'bg-gray-100 text-gray-800 dark:bg-gray-900 dark:text-gray-200'; | |
| } | |
| } | |
| // Add new anime | |
| function addAnime(event) { | |
| event.preventDefault(); | |
| const title = document.getElementById('animeTitle').value; | |
| const episodes = document.getElementById('animeEpisodes').value; | |
| const type = document.querySelector('input[name="animeType"]:checked').value; | |
| // Get selected tags | |
| const tagCheckboxes = document.querySelectorAll('input[name="tags"]:checked'); | |
| const tags = Array.from(tagCheckboxes).map(cb => cb.value); | |
| const newAnime = { | |
| id: Date.now(), | |
| title, | |
| episodes, | |
| type, | |
| tags | |
| }; | |
| animeData.push(newAnime); | |
| renderAnimeList(); | |
| closeAddAnimeModal(); | |
| resetAnimeForm(); | |
| } | |
| // Mark anime as watched | |
| function markAsWatched(id) { | |
| animeData = animeData.filter(anime => anime.id !== id); | |
| renderAnimeList(); | |
| } | |
| // Reset anime form | |
| function resetAnimeForm() { | |
| animeForm.reset(); | |
| document.querySelectorAll('input[name="tags"]').forEach(checkbox => { | |
| checkbox.checked = false; | |
| const label = document.querySelector(`label[for="${checkbox.id}"]`); | |
| label.classList.remove('selected'); | |
| }); | |
| document.querySelector('input[name="animeType"][value="Series"]').checked = true; | |
| } | |
| // Open settings panel | |
| function openSettings() { | |
| settingsPanel.classList.add('open'); | |
| overlay.classList.remove('hidden'); | |
| document.body.style.overflow = 'hidden'; | |
| } | |
| // Close settings panel | |
| function closeSettingsPanel() { | |
| settingsPanel.classList.remove('open'); | |
| overlay.classList.add('hidden'); | |
| document.body.style.overflow = ''; | |
| } | |
| // Open add anime modal | |
| function openAddAnimeModal() { | |
| addAnimeModal.classList.remove('hidden'); | |
| overlay.classList.remove('hidden'); | |
| document.body.style.overflow = 'hidden'; | |
| // Trigger animation | |
| setTimeout(() => { | |
| addAnimeModal.querySelector('.selection-panel').classList.remove('scale-95', 'opacity-0'); | |
| addAnimeModal.querySelector('.selection-panel').classList.add('scale-100', 'opacity-100'); | |
| }, 10); | |
| } | |
| // Close add anime modal | |
| function closeAddAnimeModal() { | |
| addAnimeModal.querySelector('.selection-panel').classList.remove('scale-100', 'opacity-100'); | |
| addAnimeModal.querySelector('.selection-panel').classList.add('scale-95', 'opacity-0'); | |
| setTimeout(() => { | |
| addAnimeModal.classList.add('hidden'); | |
| overlay.classList.add('hidden'); | |
| document.body.style.overflow = ''; | |
| }, 300); | |
| } | |
| // Toggle dark mode | |
| function toggleDarkMode() { | |
| document.body.classList.remove('light-mode', 'dark-mode'); | |
| document.body.classList.add('dark-mode'); | |
| saveSettings(); | |
| } | |
| // Toggle light mode | |
| function toggleLightMode() { | |
| document.body.classList.remove('light-mode', 'dark-mode'); | |
| document.body.classList.add('light-mode'); | |
| saveSettings(); | |
| } | |
| // Change color theme | |
| function changeColorTheme(color) { | |
| document.body.classList.remove('theme-blue', 'theme-red', 'theme-green', 'theme-yellow'); | |
| document.body.classList.add(`theme-${color}`); | |
| // Update selected color in UI | |
| colorOptions.forEach(option => { | |
| option.classList.remove('selected'); | |
| if (option.dataset.color === color) { | |
| option.classList.add('selected'); | |
| } | |
| }); | |
| saveSettings(); | |
| } | |
| // Save settings to localStorage | |
| function saveSettings() { | |
| const settings = { | |
| theme: document.body.classList.contains('dark-mode') ? 'dark' : 'light', | |
| color: document.body.classList.contains('theme-blue') ? 'blue' : | |
| document.body.classList.contains('theme-red') ? 'red' : | |
| document.body.classList.contains('theme-green') ? 'green' : 'yellow' | |
| }; | |
| localStorage.setItem('betterMalSettings', JSON.stringify(settings)); | |
| } | |
| // Load settings from localStorage | |
| function loadSettings() { | |
| const savedSettings = localStorage.getItem('betterMalSettings'); | |
| if (savedSettings) { | |
| const settings = JSON.parse(savedSettings); | |
| // Apply theme mode | |
| if (settings.theme === 'dark') { | |
| toggleDarkMode(); | |
| } else { | |
| toggleLightMode(); | |
| } | |
| // Apply color theme | |
| changeColorTheme(settings.color); | |
| } | |
| } | |
| // Event Listeners | |
| settingsBtn.addEventListener('click', openSettings); | |
| closeSettings.addEventListener('click', closeSettingsPanel); | |
| overlay.addEventListener('click', closeSettingsPanel); | |
| addAnimeBtn.addEventListener('click', openAddAnimeModal); | |
| closeModal.addEventListener('click', closeAddAnimeModal); | |
| animeForm.addEventListener('submit', addAnime); | |
| lightModeBtn.addEventListener('click', toggleLightMode); | |
| darkModeBtn.addEventListener('click', toggleDarkMode); | |
| colorOptions.forEach(option => { | |
| option.addEventListener('click', () => { | |
| changeColorTheme(option.dataset.color); | |
| }); | |
| }); | |
| // Initialize the app | |
| init(); | |
| </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=Tuna11/a" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |