Merge branch 'master' of git.bizmatch.net:aknuth/docker
This commit is contained in:
commit
8efc6bfcd2
|
|
@ -1,9 +1,9 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="de">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<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>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/qrcodejs/1.0.0/qrcode.min.js"></script>
|
||||||
<style>
|
<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; }
|
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; }
|
h1 { margin: 0 0 1rem 0; color: #1a1a1a; font-size: 1.8rem; }
|
||||||
p { color: #666; line-height: 1.5; margin-bottom: 2rem; }
|
p { color: #666; line-height: 1.5; margin-bottom: 2rem; }
|
||||||
|
|
||||||
/* Eingabe-Bereich */
|
/* Input Section */
|
||||||
#input-section { transition: opacity 0.3s ease; }
|
#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 { 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; }
|
input:focus { border-color: #007AFF; }
|
||||||
|
|
@ -20,10 +20,10 @@
|
||||||
button:hover { background: #0062cc; }
|
button:hover { background: #0062cc; }
|
||||||
button:active { transform: scale(0.98); }
|
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; }
|
#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 { 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 { font-size: 0.9rem; color: #888; margin-top: 1.5rem; }
|
||||||
.hint strong { color: #333; }
|
.hint strong { color: #333; }
|
||||||
|
|
@ -38,26 +38,26 @@
|
||||||
<img src="/logo.png" alt="Logo" class="logo">
|
<img src="/logo.png" alt="Logo" class="logo">
|
||||||
|
|
||||||
<div id="input-section">
|
<div id="input-section">
|
||||||
<h1>E-Mail Setup</h1>
|
<h1>Email Setup</h1>
|
||||||
<p>Gib deine E-Mail-Adresse ein, um dein iPhone oder iPad automatisch zu konfigurieren.</p>
|
<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">
|
<input type="email" id="email" placeholder="name@company.com" required autocomplete="email">
|
||||||
<button onclick="generateQR()">QR-Code erstellen</button>
|
<button onclick="generateQR()">Generate QR Code</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="qr-section">
|
<div id="qr-section">
|
||||||
<h1>Scanne mich!</h1>
|
<h1>Scan me!</h1>
|
||||||
<p>Öffne die <strong>Kamera-App</strong> auf deinem iPhone und richte sie auf diesen Code.</p>
|
<p>Open the <strong>Camera app</strong> on your iPhone and point it at this code.</p>
|
||||||
|
|
||||||
<div id="qrcode"></div>
|
<div id="qrcode"></div>
|
||||||
|
|
||||||
<p class="hint">
|
<p class="hint">
|
||||||
Tippe auf das Banner, das oben erscheint. <br>
|
Tap the banner that appears at the top.<br>
|
||||||
Klicke auf <strong>"Zulassen"</strong> und gehe dann in die <strong>Einstellungen</strong>, um das Profil zu installieren.
|
Click <strong>"Allow"</strong> and then go to <strong>Settings</strong> to install the profile.
|
||||||
</p>
|
</p>
|
||||||
<button class="back-btn" onclick="resetForm()">Zurück</button>
|
<button class="back-btn" onclick="resetForm()">Back</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -79,15 +79,15 @@
|
||||||
errorMsg.style.display = 'none';
|
errorMsg.style.display = 'none';
|
||||||
|
|
||||||
const domain = email.split('@')[1];
|
const domain = email.split('@')[1];
|
||||||
// Der magische Link
|
// The magic link
|
||||||
const targetUrl = `https://autodiscover.${domain}/apple?email=${email}`;
|
const targetUrl = `https://autodiscover.${domain}/apple?email=${email}`;
|
||||||
|
|
||||||
// Eingabe ausblenden, QR-Bereich einblenden
|
// Hide input, show QR
|
||||||
inputSection.style.display = 'none';
|
inputSection.style.display = 'none';
|
||||||
qrSection.style.display = 'block';
|
qrSection.style.display = 'block';
|
||||||
setTimeout(() => qrSection.style.opacity = '1', 50);
|
setTimeout(() => qrSection.style.opacity = '1', 50);
|
||||||
|
|
||||||
// QR-Code generieren (oder aktualisieren)
|
// Generate (or update) QR Code
|
||||||
if (qrcode === null) {
|
if (qrcode === null) {
|
||||||
qrcode = new QRCode(document.getElementById("qrcode"), {
|
qrcode = new QRCode(document.getElementById("qrcode"), {
|
||||||
text: targetUrl,
|
text: targetUrl,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue