flash_dl: Darkmode
This commit is contained in:
@@ -9,6 +9,21 @@
|
|||||||
:root {
|
:root {
|
||||||
--primary: #2c3e50;
|
--primary: #2c3e50;
|
||||||
--secondary: #3498db;
|
--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 {
|
body {
|
||||||
@@ -16,27 +31,50 @@
|
|||||||
line-height: 1.6;
|
line-height: 1.6;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
background: #f8f9fa;
|
background: var(--bg-color);
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
color: var(--text-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
main {
|
main {
|
||||||
width: 90%;
|
width: 90%;
|
||||||
max-width: 500px;
|
max-width: 500px;
|
||||||
padding: 2rem;
|
padding: 2rem;
|
||||||
background: white;
|
background: var(--main-bg);
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
|
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 {
|
.downloader {
|
||||||
margin: 2rem 0;
|
margin: 2rem 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
color: var(--primary);
|
color: var(--text-color);
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin: 0 0 2rem 0;
|
margin: 0 0 2rem 0;
|
||||||
}
|
}
|
||||||
@@ -48,11 +86,13 @@
|
|||||||
|
|
||||||
input[type="text"] {
|
input[type="text"] {
|
||||||
padding: 0.8rem;
|
padding: 0.8rem;
|
||||||
border: 2px solid #ddd;
|
border: 2px solid var(--input-border);
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
background: var(--main-bg);
|
||||||
|
color: var(--text-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
button {
|
button {
|
||||||
@@ -71,15 +111,38 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.example {
|
.example {
|
||||||
color: #666;
|
color: var(--info-color);
|
||||||
font-size: 0.9rem;
|
font-size: 0.9rem;
|
||||||
margin-top: 0.5rem;
|
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>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<button class="theme-toggle" onclick="toggleTheme()">🌙</button>
|
||||||
<main>
|
<main>
|
||||||
<h1>Flash Downloader</h1>
|
<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">
|
<div class="downloader">
|
||||||
<form onsubmit="downloadFusRoga(event)">
|
<form onsubmit="downloadFusRoga(event)">
|
||||||
@@ -91,7 +154,7 @@
|
|||||||
required
|
required
|
||||||
>
|
>
|
||||||
<button type="submit">FUS RO GA Download</button>
|
<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>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -105,23 +168,49 @@
|
|||||||
required
|
required
|
||||||
>
|
>
|
||||||
<button type="submit">Z0R Download</button>
|
<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>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<script>
|
<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) {
|
function downloadFusRoga(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
const id = e.target.id.value;
|
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) {
|
function downloadZ0r(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
const id = e.target.id.value;
|
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>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@@ -194,7 +194,7 @@
|
|||||||
</a>
|
</a>
|
||||||
<a href="https://tools.ponywave.de/flash_dl" class="tool-bubble">
|
<a href="https://tools.ponywave.de/flash_dl" class="tool-bubble">
|
||||||
<h2 class="tool-title">Flash Downloader</h2>
|
<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>
|
||||||
<a href="https://tools.ponywave.de/kemonogen" class="tool-bubble">
|
<a href="https://tools.ponywave.de/kemonogen" class="tool-bubble">
|
||||||
<h2 class="tool-title">Kemono Friends Logo Generator</h2>
|
<h2 class="tool-title">Kemono Friends Logo Generator</h2>
|
||||||
|
Reference in New Issue
Block a user