2025-01-19 17:35:31 -06:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<title>FumbleUpon</title>
|
|
|
|
<link rel="stylesheet" href="styles.css">
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<header>
|
|
|
|
<div class="logo">FumbleUpon</div>
|
2025-01-19 19:30:51 -06:00
|
|
|
<div class="header-buttons">
|
|
|
|
<button id="darkModeToggle">🌙</button>
|
|
|
|
<button id="fumbleButton">Fumble!</button>
|
|
|
|
</div>
|
2025-01-19 17:35:31 -06:00
|
|
|
</header>
|
|
|
|
<main>
|
|
|
|
<iframe id="contentFrame" src="about:blank" title="Content"></iframe>
|
|
|
|
</main>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
document.getElementById('fumbleButton').addEventListener('click', async () => {
|
|
|
|
const frame = document.getElementById('contentFrame');
|
|
|
|
// Open wiby.me/surprise directly in the iframe
|
|
|
|
frame.src = 'https://wiby.me/surprise/';
|
|
|
|
});
|
2025-01-19 19:30:51 -06:00
|
|
|
|
|
|
|
// Dark mode toggle
|
|
|
|
const darkModeToggle = document.getElementById('darkModeToggle');
|
|
|
|
const body = document.body;
|
|
|
|
|
|
|
|
// Check for saved preference
|
|
|
|
if (localStorage.getItem('darkMode') === 'true') {
|
|
|
|
body.classList.add('dark-mode');
|
|
|
|
darkModeToggle.textContent = '☀️';
|
|
|
|
}
|
|
|
|
|
|
|
|
darkModeToggle.addEventListener('click', () => {
|
|
|
|
body.classList.toggle('dark-mode');
|
|
|
|
const isDark = body.classList.contains('dark-mode');
|
|
|
|
darkModeToggle.textContent = isDark ? '☀️' : '🌙';
|
|
|
|
localStorage.setItem('darkMode', isDark);
|
|
|
|
});
|
2025-01-19 17:35:31 -06:00
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|