//Dichiarazione CONSTANTI
const VERSIONE = "1.0.1";
const UPDATE = "2025-05-20";
const AUTOR = "SPOTO Giorgio Matteo , 6A CIF";
const ART_FRAGEN_MULTI = "multipla";
const ART_FRAGEN_TRUEFALSE = "vero_falso";
const ART_FRAGEN_MULTIPLUS = "multiPuls";
const ZONA_EXE_SCRIPT = "script.js";
const SPS_MAX_LOOP = 50;
const S_BASENAME_CHKMODUL = "chkModul_";
const S_BASENAME_CHKMODUL_ID = "chkModul_";
const S_BASENAME_BNTANWORT = "bntAnwort_";
//Contatori
let startTime = new Date();
let countRichtg = 0;
let countFalsch = 0;
let DEBUG = false;
function htmlListeModulo(){
//Schrieben alles Module in Einstellung
let lho_setThema = getElement("setTema");
let textHTML = "";
if (lho_setThema == null) { return false; }
if(arrayListeModulo.length == 0){
fehler(ZONA_EXE_SCRIPT,"Wir habe nicht die Module richtig geladen!\n arrayListeModulo.length==0");
return false;
}
log(ZONA_EXE_SCRIPT , "arrayListeModulo.leng = "+arrayListeModulo.length);
for(let i = 0 ; i < arrayListeModulo.length ; i++){
let nameObjekt = S_BASENAME_CHKMODUL + i;
let nameObjektID = S_BASENAME_CHKMODUL_ID + i;
textHTML = textHTML + '';
textHTML = textHTML + '';
textHTML = textHTML + arrayListeModulo[i].getNameMoudl();
if(i < (arrayListeModulo.length -1)){
textHTML = textHTML + ' | ';
}//end if
}//end for
try{
schreibeniHTML("setTema", textHTML);
}catch(e){
fehler("scrpit.js", e.message);
}
}//htmlListeModulo
function getNameModulo(idModulo){
let tmpReturn = "[Nicht Gefunde!]";
for(let i = 0 ; i < arrayListeModulo.length ; i++){
if(Number(arrayListeModulo[i].getIdMoudl()) === Number(idModulo)){
tmpReturn = arrayListeModulo[i].getNameMoudl();
}
}
return tmpReturn;
}//getNameModulo