v12
This commit is contained in:
parent
0eddf2b322
commit
7af32ca038
2 changed files with 19 additions and 2 deletions
|
|
@ -970,6 +970,12 @@ const STATION_ARTEFAKT = {
|
||||||
const GATE_PRODUCES = { tr_12:"A8" };
|
const GATE_PRODUCES = { tr_12:"A8" };
|
||||||
// Geforderte Artefakte je Gate (HARTE Kopplung).
|
// Geforderte Artefakte je Gate (HARTE Kopplung).
|
||||||
const GATE_REQ = { tr_01:["A2","A3","A4"], tr_09:["A6","A7"], tr_12:["A6","A7","A2"] };
|
const GATE_REQ = { tr_01:["A2","A3","A4"], tr_09:["A6","A7"], tr_12:["A6","A7","A2"] };
|
||||||
|
// Stationen ohne eigenes Akte-Artefakt: Ergebnis fliesst in dieses A-Artefakt ein
|
||||||
|
// (nur dokumentierte Faelle; alle uebrigen Nicht-Akte-Stationen ohne Zuordnung).
|
||||||
|
const FOLDS_INTO = {
|
||||||
|
op_02:"A6", op_05:"A9", op_07:"A11",
|
||||||
|
sp_03:"A10", sp_04:"A10", sp_05:"A10", sp_06:"A10", sp_08:"A10", sp_10:"A11"
|
||||||
|
};
|
||||||
|
|
||||||
function addArtefakt(a){ if(a){ S.akte = S.akte || {}; S.akte[a] = true; } }
|
function addArtefakt(a){ if(a){ S.akte = S.akte || {}; S.akte[a] = true; } }
|
||||||
// Beim Start nach Einstiegspunkt vorbefuellen: alles, was VOR der Einstiegs-Station
|
// Beim Start nach Einstiegspunkt vorbefuellen: alles, was VOR der Einstiegs-Station
|
||||||
|
|
@ -1368,11 +1374,17 @@ function renderActivity(st){
|
||||||
const isLast = i === steps.length-1;
|
const isLast = i === steps.length-1;
|
||||||
const arteId = STATION_ARTEFAKT[st.id]; // A-Nummer, falls diese Station eine erzeugt
|
const arteId = STATION_ARTEFAKT[st.id]; // A-Nummer, falls diese Station eine erzeugt
|
||||||
const isArteChoice = step.artefakt && arteId; // Artefakt-Schritt mit echter Choice
|
const isArteChoice = step.artefakt && arteId; // Artefakt-Schritt mit echter Choice
|
||||||
|
const isNonAkte = step.artefakt && !arteId; // Station ohne eigenes Akte-Artefakt
|
||||||
|
const fold = FOLDS_INTO[st.id];
|
||||||
|
|
||||||
|
const frageHtml = isNonAkte
|
||||||
|
? `Was ist das <b>Arbeitsergebnis</b> dieser Station? <span style="color:var(--muted)">(Hier geht kein eigenes Artefakt in die Service-Akte.)</span>`
|
||||||
|
: step.frage;
|
||||||
|
|
||||||
let html = `<div class="tourProg">Schritt ${i+1}/${steps.length} · ${step.label}</div>
|
let html = `<div class="tourProg">Schritt ${i+1}/${steps.length} · ${step.label}</div>
|
||||||
<div class="frageBox" style="border-left-color:${phaseColor}">
|
<div class="frageBox" style="border-left-color:${phaseColor}">
|
||||||
<div class="frageLabel">Aufgabe ${i+1}</div>
|
<div class="frageLabel">Aufgabe ${i+1}</div>
|
||||||
${step.frage}
|
${frageHtml}
|
||||||
</div>`;
|
</div>`;
|
||||||
if(step.legend) html += step.legend;
|
if(step.legend) html += step.legend;
|
||||||
|
|
||||||
|
|
@ -1390,6 +1402,11 @@ function renderActivity(st){
|
||||||
<h4 class="aufH">Was umfasst es?</h4><p style="margin:0 0 10px">${A.was}</p>
|
<h4 class="aufH">Was umfasst es?</h4><p style="margin:0 0 10px">${A.was}</p>
|
||||||
<h4 class="aufH">Warum brauchen wir es?</h4><p style="margin:0">${A.warum}</p>
|
<h4 class="aufH">Warum brauchen wir es?</h4><p style="margin:0">${A.warum}</p>
|
||||||
</div>`;
|
</div>`;
|
||||||
|
} else if(isNonAkte){
|
||||||
|
html += `<div class="aufBox">
|
||||||
|
<h4 class="aufH">Arbeitsergebnis</h4><p style="margin:0 0 8px"><b>${st.artefakt}</b></p>
|
||||||
|
<p style="margin:0;color:var(--muted)">ℹ️ Kein eigenes Akte-Artefakt${fold?` — fließt in <b>${fold} ${ARTEFAKTE[fold].name}</b> ein`:``}.</p>
|
||||||
|
</div>`;
|
||||||
} else {
|
} else {
|
||||||
html += `<div class="aufBox">${step.auf}</div>`;
|
html += `<div class="aufBox">${step.auf}</div>`;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/* Service Worker — SLC-Workshop Companion (App-Shell, offline-first) */
|
/* Service Worker — SLC-Workshop Companion (App-Shell, offline-first) */
|
||||||
const CACHE = "slc-companion-v11";
|
const CACHE = "slc-companion-v12";
|
||||||
const SHELL = ["./", "index.html", "manifest.webmanifest", "icon.svg"];
|
const SHELL = ["./", "index.html", "manifest.webmanifest", "icon.svg"];
|
||||||
// Action-Card-Grafiken (cards/s<service>-c<change>.png) fuer Offline vorab cachen (alle 30).
|
// Action-Card-Grafiken (cards/s<service>-c<change>.png) fuer Offline vorab cachen (alle 30).
|
||||||
const CARDS = [];
|
const CARDS = [];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue