HEX
Server: Apache
System: Linux vps.mmtprep.com 4.18.0-477.21.1.el8_8.x86_64 #1 SMP Thu Aug 10 13:51:50 EDT 2023 x86_64
User: mmtprep (1001)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/betaModele11_parametrable-RUld89Vr.js.map
{"version":3,"file":"betaModele11_parametrable-RUld89Vr.js","sources":["../../src/exercices/beta/betaModele11_parametrable.js"],"sourcesContent":["import Exercice from '../Exercice'\nimport { randint, listeQuestionsToContenu } from '../../modules/outils.js'\nexport const titre = 'Nom de l\\'exercice'\n\n// Les exports suivants sont optionnels mais au moins la date de publication semble essentielle\nexport const dateDePublication = '25/10/2021' // La date de publication initiale au format 'jj/mm/aaaa' pour affichage temporaire d'un tag\nexport const dateDeModifImportante = '24/10/2021' // Une date de modification importante au format 'jj/mm/aaaa' pour affichage temporaire d'un tag\n\n/**\n * Description didactique de l'exercice\n * @author\n * Référence\n*/\nexport default class nomExercice extends Exercice {\n  constructor () {\n    super()\n    this.titre = titre\n    this.consigne = 'Calcule'\n    this.nbQuestions = 10\n\n    this.besoinFormulaireNumerique = ['Difficulté', 3, '1 : Facile\\n2 : Moyen\\n3 : Difficile'] // le paramètre sera numérique de valeur max 3 (le 3 en vert)\n    this.sup = 2 // Valeur du paramètre par défaut\n    // Remarques : le paramètre peut aussi être un texte avec : this.besoinFormulaireTexte = [texte, tooltip]\n    //              il peut aussi être une case à cocher avec : this.besoinFormulaireCaseACocher = [texte] (dans ce cas, this.sup = true ou this.sup = false)\n\n    this.nbCols = 2\n    this.nbColsCorr = 2\n    this.tailleDiaporama = 3\n    this.video = ''\n  }\n\n  nouvelleVersion () {\n    this.listeQuestions = []\n    this.listeCorrections = []\n    this.autoCorrection = []\n\n    for (let i = 0, texte, texteCorr, cpt = 0; i < this.nbQuestions && cpt < 50;) {\n      const a = randint(1, 12) // Comme la valeur ne sera pas modifiée, on la déclare avec const\n      let NombreAAjouter // Comme la valeur sera modifiée, on la déclare avec let\n      if (this.sup === 1) {\n        NombreAAjouter = 1\n      } else if (this.sup === 2) {\n        NombreAAjouter = 5\n      }\n      texte = `$${a} + ${NombreAAjouter} $`\n      texteCorr = `$${a} + ${NombreAAjouter} = ${a + NombreAAjouter}$`\n\n      // Si la question n'a jamais été posée, on l'enregistre\n      if (this.questionJamaisPosee(i, texte)) { // <- laisser le i et ajouter toutes les variables qui rendent les exercices différents (par exemple a, b, c et d)\n        // Supprime b, c et d dans la ligne ci-dessus et remplace les par NombreAAjouter !\n        this.listeQuestions.push(texte)\n        this.listeCorrections.push(texteCorr)\n        i++\n      }\n      cpt++\n    }\n    listeQuestionsToContenu(this)\n  }\n}\n"],"names":["titre","dateDePublication","dateDeModifImportante","nomExercice","Exercice","texte","texteCorr","cpt","a","randint","NombreAAjouter","listeQuestionsToContenu"],"mappings":"0FAEY,MAACA,EAAQ,oBAGRC,EAAoB,aACpBC,EAAwB,aAOtB,MAAMC,UAAoBC,CAAS,CAChD,aAAe,CACb,MAAO,EACP,KAAK,MAAQJ,EACb,KAAK,SAAW,UAChB,KAAK,YAAc,GAEnB,KAAK,0BAA4B,CAAC,aAAc,EAAG;AAAA;AAAA,cAAsC,EACzF,KAAK,IAAM,EAIX,KAAK,OAAS,EACd,KAAK,WAAa,EAClB,KAAK,gBAAkB,EACvB,KAAK,MAAQ,EACd,CAED,iBAAmB,CACjB,KAAK,eAAiB,CAAE,EACxB,KAAK,iBAAmB,CAAE,EAC1B,KAAK,eAAiB,CAAE,EAExB,QAAS,EAAI,EAAGK,EAAOC,EAAWC,EAAM,EAAG,EAAI,KAAK,aAAeA,EAAM,IAAK,CAC5E,MAAMC,EAAIC,EAAQ,EAAG,EAAE,EACvB,IAAIC,EACA,KAAK,MAAQ,EACfA,EAAiB,EACR,KAAK,MAAQ,IACtBA,EAAiB,GAEnBL,EAAQ,IAAIG,CAAC,MAAME,CAAc,KACjCJ,EAAY,IAAIE,CAAC,MAAME,CAAc,MAAMF,EAAIE,CAAc,IAGzD,KAAK,oBAAoB,EAAGL,CAAK,IAEnC,KAAK,eAAe,KAAKA,CAAK,EAC9B,KAAK,iBAAiB,KAAKC,CAAS,EACpC,KAEFC,GACD,CACDI,EAAwB,IAAI,CAC7B,CACH"}