flash_dl: Darkmode
This commit is contained in:
parent
f705d8b9d9
commit
abc0b88fa8
@ -9,6 +9,21 @@
|
||||
:root {
|
||||
--primary: #2c3e50;
|
||||
--secondary: #3498db;
|
||||
--bg-color: #f8f9fa;
|
||||
--main-bg: white;
|
||||
--text-color: #2c3e50;
|
||||
--input-border: #ddd;
|
||||
--info-bg: #f8f9fa;
|
||||
--info-color: #666;
|
||||
}
|
||||
|
||||
.dark-mode {
|
||||
--bg-color: #1a1a1a;
|
||||
--main-bg: #2d2d2d;
|
||||
--text-color: #ffffff;
|
||||
--input-border: #444;
|
||||
--info-bg: #333;
|
||||
--info-color: #ddd;
|
||||
}
|
||||
|
||||
body {
|
||||
@ -16,27 +31,50 @@
|
||||
line-height: 1.6;
|
||||
margin: 0;
|
||||
min-height: 100vh;
|
||||
background: #f8f9fa;
|
||||
background: var(--bg-color);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
color: var(--text-color);
|
||||
}
|
||||
|
||||
main {
|
||||
width: 90%;
|
||||
max-width: 500px;
|
||||
padding: 2rem;
|
||||
background: white;
|
||||
background: var(--main-bg);
|
||||
border-radius: 10px;
|
||||
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
|
||||
}
|
||||
|
||||
.theme-toggle {
|
||||
position: fixed;
|
||||
top: 20px;
|
||||
right: 20px;
|
||||
background: var(--main-bg);
|
||||
border: none;
|
||||
border-radius: 50%;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
cursor: pointer;
|
||||
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 1.2em;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.theme-toggle:hover {
|
||||
transform: scale(1.1);
|
||||
}
|
||||
|
||||
.downloader {
|
||||
margin: 2rem 0;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: var(--primary);
|
||||
color: var(--text-color);
|
||||
text-align: center;
|
||||
margin: 0 0 2rem 0;
|
||||
}
|
||||
@ -48,11 +86,13 @@
|
||||
|
||||
input[type="text"] {
|
||||
padding: 0.8rem;
|
||||
border: 2px solid #ddd;
|
||||
border: 2px solid var(--input-border);
|
||||
border-radius: 5px;
|
||||
font-size: 1rem;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
background: var(--main-bg);
|
||||
color: var(--text-color);
|
||||
}
|
||||
|
||||
button {
|
||||
@ -71,15 +111,38 @@
|
||||
}
|
||||
|
||||
.example {
|
||||
color: #666;
|
||||
color: var(--info-color);
|
||||
font-size: 0.9rem;
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
.info {
|
||||
background: var(--info-bg);
|
||||
padding: 1rem;
|
||||
border-radius: 5px;
|
||||
margin: 1rem 0;
|
||||
font-size: 0.9rem;
|
||||
color: var(--info-color);
|
||||
}
|
||||
|
||||
.info a {
|
||||
color: var(--secondary);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.info a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<button class="theme-toggle" onclick="toggleTheme()">🌙</button>
|
||||
<main>
|
||||
<h1>Flash Downloader</h1>
|
||||
|
||||
<div class="info">
|
||||
Die Flash-Dateien können mit <a href="https://ruffle.rs/" target="_blank">Ruffle</a> abgespielt werden.
|
||||
</div>
|
||||
|
||||
<div class="downloader">
|
||||
<form onsubmit="downloadFusRoga(event)">
|
||||
@ -91,7 +154,7 @@
|
||||
required
|
||||
>
|
||||
<button type="submit">FUS RO GA Download</button>
|
||||
<div class="example">Beispiel: 6194 (von http://fusro.ga/6194)</div>
|
||||
<div class="example">Beispiel: 6194 (von https://fusro.ga/6194)</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@ -105,23 +168,49 @@
|
||||
required
|
||||
>
|
||||
<button type="submit">Z0R Download</button>
|
||||
<div class="example">Beispiel: 17 (von http://z0r.de/17)</div>
|
||||
<div class="example">Beispiel: 17 (von https://z0r.de/17)</div>
|
||||
</form>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<script>
|
||||
// Dark Mode Toggle
|
||||
function toggleTheme() {
|
||||
document.body.classList.toggle('dark-mode');
|
||||
const btn = document.querySelector('.theme-toggle');
|
||||
btn.textContent = document.body.classList.contains('dark-mode') ? '☀️' : '🌙';
|
||||
|
||||
// Speichern der Präferenz
|
||||
const isDark = document.body.classList.contains('dark-mode');
|
||||
localStorage.setItem('theme', isDark ? 'dark' : 'light');
|
||||
}
|
||||
|
||||
// Theme initialisieren
|
||||
function initTheme() {
|
||||
const prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
|
||||
const savedTheme = localStorage.getItem('theme');
|
||||
|
||||
if (savedTheme === 'dark' || (!savedTheme && prefersDark)) {
|
||||
document.body.classList.add('dark-mode');
|
||||
document.querySelector('.theme-toggle').textContent = '☀️';
|
||||
}
|
||||
}
|
||||
|
||||
// Download Funktionen
|
||||
function downloadFusRoga(e) {
|
||||
e.preventDefault();
|
||||
const id = e.target.id.value;
|
||||
window.location.href = `http://fusro.ga/loop/${id}.swf`;
|
||||
window.location.href = `https://fusro.ga/loop/${id}.swf`;
|
||||
}
|
||||
|
||||
function downloadZ0r(e) {
|
||||
e.preventDefault();
|
||||
const id = e.target.id.value;
|
||||
window.location.href = `http://z0r.de/L/z0r-de_${id}.swf`;
|
||||
window.location.href = `https://z0r.de/L/z0r-de_${id}.swf`;
|
||||
}
|
||||
|
||||
// Beim Laden ausführen
|
||||
initTheme();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -194,7 +194,7 @@
|
||||
</a>
|
||||
<a href="https://tools.ponywave.de/flash_dl" class="tool-bubble">
|
||||
<h2 class="tool-title">Flash Downloader</h2>
|
||||
<p class="tool-description">Downloade Flash-Dateien von Z0R und FUS RO GA</p>
|
||||
<p class="tool-description">Downloade Flash-Dateien von Z0R und FUS RO GA (mit Ruffle abspielbar)</p>
|
||||
</a>
|
||||
<a href="https://tools.ponywave.de/kemonogen" class="tool-bubble">
|
||||
<h2 class="tool-title">Kemono Friends Logo Generator</h2>
|
||||
|
Loading…
x
Reference in New Issue
Block a user