Auto-Aktivierung per URL-Parameter + Start-Datei pro Chapter
index.html liest jetzt ?chapter=<code> aus der URL und aktiviert das Chapter automatisch, ohne dass der Lizenzcode manuell eingegeben werden muss. start-helios.html ist ein Beispiel: eine kleine Redirect-Datei, die man statt index.html verschickt/öffnet und die direkt zum aktivierten Steuerpult des jeweiligen Chapters führt.
This commit is contained in:
@@ -5857,6 +5857,13 @@ async function showCoordinatorReport() {
|
|||||||
// ============================================================
|
// ============================================================
|
||||||
initChannel();
|
initChannel();
|
||||||
if (activeChapter) applyChapterUI(activeChapter.config);
|
if (activeChapter) applyChapterUI(activeChapter.config);
|
||||||
|
if (!activeChapter) {
|
||||||
|
const urlChapterCode = new URLSearchParams(window.location.search).get('chapter');
|
||||||
|
if (urlChapterCode) {
|
||||||
|
document.getElementById('activation-code-input').value = urlChapterCode;
|
||||||
|
activateChapter();
|
||||||
|
}
|
||||||
|
}
|
||||||
renderCurrentView();
|
renderCurrentView();
|
||||||
updateTimerDisplays();
|
updateTimerDisplays();
|
||||||
checkLicenseAndUpdates();
|
checkLicenseAndUpdates();
|
||||||
|
|||||||
11
start-helios.html
Normal file
11
start-helios.html
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta http-equiv="refresh" content="0; url=index.html?chapter=helios-2cbws6">
|
||||||
|
<title>BNI Chapter Helios – Steuerpult</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<p>Öffne das Steuerpult für BNI Chapter Helios… Falls sich nichts tut, <a href="index.html?chapter=helios-2cbws6">hier klicken</a>.</p>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Reference in New Issue
Block a user