diff --git a/website/app.js b/website/app.js index 40040c3..cebdb32 100644 --- a/website/app.js +++ b/website/app.js @@ -70,14 +70,16 @@ document.addEventListener('DOMContentLoaded', () => { const isFirefox = navigator.userAgent.includes('Firefox'); if (isFirefox) { actions.innerHTML = ` - - Firefox - GET IT ON MOZILLA ADD-ONSIM FIREFOX ADD-ON STORE HERUNTERLADEN - - - - Download via GitHubÜber GitHub herunterladen - +
+ + Firefox + GET IT ON MOZILLA ADD-ONSIM FIREFOX ADD-ON STORE HERUNTERLADEN + + + + Download via GitHubÜber GitHub herunterladen + +

The extension is required to join and sync videos. Die Erweiterung ist erforderlich, um beizutreten und Videos zu synchronisieren. @@ -85,21 +87,23 @@ document.addEventListener('DOMContentLoaded', () => { `; } else { actions.innerHTML = ` - - Chrome - GET IT ON CHROME WEBSTOREIM CHROME WEB STORE HERUNTERLADEN - - - - Download via GitHubÜber GitHub herunterladen - +

+ + Chrome + GET IT ON CHROME WEBSTOREIM CHROME WEB STORE HERUNTERLADEN + + + + Download via GitHubÜber GitHub herunterladen + +

The extension is required to join and sync videos. Die Erweiterung ist erforderlich, um beizutreten und Videos zu synchronisieren.

`; } - } else { + } } else { actions.innerHTML = `
@@ -185,20 +189,25 @@ document.addEventListener('DOMContentLoaded', () => { const title = document.getElementById('join-title'); const actions = document.getElementById('join-actions'); const desc = document.getElementById('join-desc'); + const ring = document.getElementById('status-ring'); if (success) { - if (icon) icon.textContent = '✅'; + if (ring) ring.classList.remove('active-pulse'); + if (icon) { + icon.textContent = '✅'; + icon.style.transform = 'scale(1.2)'; + } const isDE = document.documentElement.classList.contains('lang-de'); title.textContent = isDE ? 'Erfolgreich!' : 'Success!'; desc.innerHTML = isDE - ? 'Verbunden!
W\u00e4hle jetzt einen Video-Tab in der Erweiterung aus.' + ? 'Verbunden!
Wähle jetzt einen Video-Tab in der Erweiterung aus.' : 'Connected!
Now select a video tab in the extension.'; let count = 3; const updateCountdown = () => { if (count <= 0) { window.close(); - desc.textContent = isDE ? 'Beitritt erfolgreich! Du kannst diesen Tab jetzt manuell schlie\u00dfen.' : 'Joined successfully! You can close this tab manually.'; + desc.textContent = isDE ? 'Beitritt erfolgreich! Du kannst diesen Tab jetzt manuell schließen.' : 'Joined successfully! You can close this tab manually.'; } else { count--; setTimeout(updateCountdown, 1000); @@ -207,14 +216,26 @@ document.addEventListener('DOMContentLoaded', () => { setTimeout(updateCountdown, 1000); const closeLabel = isDE ? 'TAB JETZT SCHLIESSEN' : 'CLOSE TAB NOW'; - actions.innerHTML = ``; + actions.innerHTML = ` +
+ +
+ `; } else { - if (icon) icon.textContent = '❌'; + if (ring) ring.classList.remove('active-pulse'); + if (icon) { + icon.textContent = '❌'; + icon.style.transform = 'scale(1.2)'; + } const isDE = document.documentElement.classList.contains('lang-de'); title.textContent = isDE ? 'Fehler' : 'Error'; desc.textContent = isDE ? `Beitritt fehlgeschlagen: ${message}` : `Join failed: ${message}`; const retryLabel = isDE ? 'ERNEUT VERSUCHEN' : 'TRY AGAIN'; - actions.innerHTML = ``; + actions.innerHTML = ` +
+ +
+ `; } } else { const banner = document.getElementById('koala-banner'); diff --git a/website/join.html b/website/join.html index 3a0283c..5d91def 100644 --- a/website/join.html +++ b/website/join.html @@ -38,8 +38,15 @@
-