This commit is contained in:
Andreas Knuth 2026-01-28 16:48:15 -06:00
parent 5e8559ec97
commit 7fcc380b0f
1 changed files with 18 additions and 18 deletions

View File

@ -1,9 +1,9 @@
<!DOCTYPE html>
<html lang="de">
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>E-Mail Einrichtung</title>
<title>Email Setup</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/qrcodejs/1.0.0/qrcode.min.js"></script>
<style>
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background: #f2f2f7; display: flex; justify-content: center; align-items: center; min-height: 100vh; margin: 0; padding: 20px; box-sizing: border-box; }
@ -12,7 +12,7 @@
h1 { margin: 0 0 1rem 0; color: #1a1a1a; font-size: 1.8rem; }
p { color: #666; line-height: 1.5; margin-bottom: 2rem; }
/* Eingabe-Bereich */
/* Input Section */
#input-section { transition: opacity 0.3s ease; }
input { width: 100%; padding: 16px; margin-bottom: 16px; border: 2px solid #eee; border-radius: 14px; font-size: 16px; box-sizing: border-box; transition: border-color 0.2s; outline: none; }
input:focus { border-color: #007AFF; }
@ -20,10 +20,10 @@
button:hover { background: #0062cc; }
button:active { transform: scale(0.98); }
/* QR-Code Bereich (initial versteckt) */
/* QR Section (initially hidden) */
#qr-section { display: none; opacity: 0; transition: opacity 0.5s ease; }
#qrcode { margin: 2rem auto; padding: 15px; background: white; border-radius: 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); display: inline-block; }
#qrcode img { margin: auto; } /* Zentriert den generierten QR-Code */
#qrcode img { margin: auto; } /* Centers the generated QR code */
.hint { font-size: 0.9rem; color: #888; margin-top: 1.5rem; }
.hint strong { color: #333; }
@ -38,26 +38,26 @@
<img src="/logo.png" alt="Logo" class="logo">
<div id="input-section">
<h1>E-Mail Setup</h1>
<p>Gib deine E-Mail-Adresse ein, um dein iPhone oder iPad automatisch zu konfigurieren.</p>
<h1>Email Setup</h1>
<p>Enter your email address to automatically configure your iPhone or iPad.</p>
<div id="error-msg" class="error">Bitte eine gültige E-Mail-Adresse eingeben.</div>
<div id="error-msg" class="error">Please enter a valid email address.</div>
<input type="email" id="email" placeholder="name@firma.de" required autocomplete="email">
<button onclick="generateQR()">QR-Code erstellen</button>
<input type="email" id="email" placeholder="name@company.com" required autocomplete="email">
<button onclick="generateQR()">Generate QR Code</button>
</div>
<div id="qr-section">
<h1>Scanne mich!</h1>
<p>Öffne die <strong>Kamera-App</strong> auf deinem iPhone und richte sie auf diesen Code.</p>
<h1>Scan me!</h1>
<p>Open the <strong>Camera app</strong> on your iPhone and point it at this code.</p>
<div id="qrcode"></div>
<p class="hint">
Tippe auf das Banner, das oben erscheint. <br>
Klicke auf <strong>"Zulassen"</strong> und gehe dann in die <strong>Einstellungen</strong>, um das Profil zu installieren.
Tap the banner that appears at the top.<br>
Click <strong>"Allow"</strong> and then go to <strong>Settings</strong> to install the profile.
</p>
<button class="back-btn" onclick="resetForm()">Zurück</button>
<button class="back-btn" onclick="resetForm()">Back</button>
</div>
</div>
@ -79,15 +79,15 @@
errorMsg.style.display = 'none';
const domain = email.split('@')[1];
// Der magische Link
// The magic link
const targetUrl = `https://autodiscover.${domain}/apple?email=${email}`;
// Eingabe ausblenden, QR-Bereich einblenden
// Hide input, show QR
inputSection.style.display = 'none';
qrSection.style.display = 'block';
setTimeout(() => qrSection.style.opacity = '1', 50);
// QR-Code generieren (oder aktualisieren)
// Generate (or update) QR Code
if (qrcode === null) {
qrcode = new QRCode(document.getElementById("qrcode"), {
text: targetUrl,