
- Move dark mode detection to inline script in HTML head - Prevents white flash in Firefox by applying theme before render - Clean up redundant code in dark-mode.js - Apply fix to all HTML pages for consistent behavior 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
49 lines
2.1 KiB
HTML
49 lines
2.1 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Playground - Feature Showcase</title>
|
|
<link rel="stylesheet" href="styles.css">
|
|
<script>
|
|
// Apply dark mode immediately to prevent flash
|
|
if (localStorage.getItem('theme') === 'dark') {
|
|
document.documentElement.setAttribute('data-theme', 'dark');
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<button class="dark-mode-toggle" onclick="toggleDarkMode()">🌙</button>
|
|
<h1>Playground - Feature Showcase</h1>
|
|
<p>Welcome to the development playground! Click on any feature below to test it:</p>
|
|
|
|
<ul class="feature-list">
|
|
<li>
|
|
<a href="random.html">Random Number Generator</a>
|
|
<div class="description">Displays a random number and allows you to generate new ones with a button click.</div>
|
|
</li>
|
|
<li>
|
|
<a href="ajax.html">AJAX Demo</a>
|
|
<div class="description">Demonstrates asynchronous loading with immediate UI and delayed API response (1 second delay).</div>
|
|
</li>
|
|
<li>
|
|
<a href="echo-test.html">Echo Test</a>
|
|
<div class="description">Text input form that sends data to the /echo API endpoint and displays the response.</div>
|
|
</li>
|
|
<li>
|
|
<a href="items.html">Items Management</a>
|
|
<div class="description">Full CRUD demo with SQLite database - create, view, and delete items with persistent storage.</div>
|
|
</li>
|
|
<li>
|
|
<a href="account.html">Account Information</a>
|
|
<div class="description">Authentication test page - displays user info and headers from Authelia (requires authentication).</div>
|
|
</li>
|
|
<li>
|
|
<a href="mining.html">Mining Resources</a>
|
|
<div class="description">Background resource production demo - displays live-calculated mining values with automatic database updates every minute.</div>
|
|
</li>
|
|
</ul>
|
|
|
|
<script src="dark-mode.js"></script>
|
|
</body>
|
|
</html>
|