README angepasst

This commit is contained in:
2026-08-13 09:35:32 +02:00
parent 1533dd7c55
commit 20521febd5
6 changed files with 104 additions and 39 deletions
+21
View File
@@ -171,6 +171,16 @@
<label for="speed">Speed (Basis-Sekunden für 10 Karten)</label>
<input type="number" id="speed" value="200" min="5" max="1000" oninput="generateLink()">
</div>
<div class="form-group">
<label for="fontsize">Schriftgröße</label>
<input type="number" id="fontsize" value="15" min="5" max="70" oninput="generateLink()">
</div>
<div class="form-group">
<label for="height">Höhe des Overlays</label>
<input type="number" id="height" value="12" min="5" max="50" oninput="generateLink()">
</div>
<div class="form-group">
<label for="bg">Hintergrundfarbe (Chroma-Key)</label>
@@ -204,6 +214,11 @@
<input type="checkbox" id="showdivision" onchange="generateLink()">
<label for="showdivision">Divisions-Icon bei jeder Karte anzeigen</label>
</div>
<div class="form-group checkbox-group">
<input type="checkbox" id="showtimes" onchange="generateLink()">
<label for="showtimes">Part-Zeiten ausblenden</label>
</div>
<div class="result-section">
<label>Generierter Link:</label>
@@ -219,11 +234,14 @@
function generateLink() {
const user = document.getElementById('user').value.trim();
const speed = document.getElementById('speed').value;
const fontsize = document.getElementById('fontsize').value;
const height = document.getElementById('height').value;
const bg = document.getElementById('bg').value.replace('#', '');
const framecolor = document.getElementById('framecolor').value.replace('#', '');
const fix = document.getElementById('fix').value;
const fixdivision = document.getElementById('fixdivision').value;
const showdivision = document.getElementById('showdivision').checked;
const showtimes = document.getElementById('showtimes').checked;
// Basis-URL zur ninjiclassic.html im selben Verzeichnis ermitteln
const baseUrl = window.location.href.substring(0, window.location.href.lastIndexOf('/') + 1) + 'ninjiclassic.html';
@@ -231,11 +249,14 @@
const params = new URLSearchParams();
if (user) params.append('user', user);
if (speed && speed !== '240') params.append('speed', speed);
if (height) params.append('height', height);
if (fontsize) params.append('fontsize', fontsize);
if (bg && bg !== '00ff00') params.append('bg', bg);
if (framecolor && framecolor !== '000000') params.append('framecolor', framecolor);
if (fix) params.append('fix', fix);
if (fixdivision) params.append('fixdivision', fixdivision);
if (showdivision) params.append('showdivision', 'true');
if (showtimes) params.append('showtimes', 'false');
const queryString = params.toString();
const finalLink = baseUrl + (queryString ? '?' + queryString : '');