File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/CM012-6h5bwP57.js.map
{"version":3,"file":"CM012-6h5bwP57.js","sources":["../../src/exercices/CM/CM012.js"],"sourcesContent":["import Exercice from '../deprecatedExercice.js'\nimport { listeQuestionsToContenu, randint } from '../../modules/outils.js'\nimport { ajouteChampTexteMathLive } from '../../lib/interactif/questionMathLive.js'\nimport { setReponse } from '../../lib/interactif/gestionInteractif.js'\n\nexport const titre = 'Complément à 100'\nexport const amcReady = true\nexport const interactifReady = true\nexport const interactifType = 'mathLive'\nexport const amcType = 'AMCNum'\n\n/**\n * 100-...=\n * @author Rémi Angot\n * Référence CM012\n */\nexport const uuid = '67962'\nexport const ref = 'CM012'\nexport default function ComplementA100 () {\n Exercice.call(this) // Héritage de la classe Exercice()\n this.consigne = 'Calculer.'\n this.nbQuestions = 10\n this.nbCols = 2\n this.nbColsCorr = 2\n this.tailleDiaporama = 3\n\n this.nouvelleVersion = function () {\n this.listeQuestions = [] // Liste de questions\n this.listeCorrections = [] // Liste de questions corrigées\n\n for (\n let i = 0, texte, texteCorr, a, cpt = 0;\n i < this.nbQuestions && cpt < 50;\n ) {\n a = randint(11, 89)\n texte = `$100-${a}=$`\n texteCorr = `$100-${a}=${100 - a}$`\n setReponse(this, i, 100 - a)\n if (this.interactif) texte += ajouteChampTexteMathLive(this, i, 'largeur15 inline')\n\n if (this.listeQuestions.indexOf(texte) === -1) {\n // Si la question n'a jamais été posée, on en crée une autre\n this.listeQuestions.push(texte)\n this.listeCorrections.push(texteCorr)\n i++\n }\n cpt++\n }\n listeQuestionsToContenu(this)\n }\n // this.besoinFormulaireNumerique = ['Niveau de difficulté',3];\n}\n"],"names":["titre","amcReady","interactifReady","interactifType","amcType","uuid","ref","ComplementA100","Exercice","i","texte","texteCorr","a","cpt","randint","setReponse","ajouteChampTexteMathLive","listeQuestionsToContenu"],"mappings":"oEAKY,MAACA,EAAQ,mBACRC,EAAW,GACXC,EAAkB,GAClBC,EAAiB,WACjBC,EAAU,SAOVC,EAAO,QACPC,EAAM,QACJ,SAASC,GAAkB,CACxCC,EAAS,KAAK,IAAI,EAClB,KAAK,SAAW,YAChB,KAAK,YAAc,GACnB,KAAK,OAAS,EACd,KAAK,WAAa,EAClB,KAAK,gBAAkB,EAEvB,KAAK,gBAAkB,UAAY,CACjC,KAAK,eAAiB,CAAE,EACxB,KAAK,iBAAmB,CAAE,EAE1B,QACMC,EAAI,EAAGC,EAAOC,EAAWC,EAAGC,EAAM,EACtCJ,EAAI,KAAK,aAAeI,EAAM,IAE9BD,EAAIE,EAAQ,GAAI,EAAE,EAClBJ,EAAQ,QAAQE,CAAC,KACjBD,EAAY,QAAQC,CAAC,IAAI,IAAMA,CAAC,IAChCG,EAAW,KAAMN,EAAG,IAAMG,CAAC,EACvB,KAAK,aAAYF,GAASM,EAAyB,KAAMP,EAAG,kBAAkB,GAE9E,KAAK,eAAe,QAAQC,CAAK,IAAM,KAEzC,KAAK,eAAe,KAAKA,CAAK,EAC9B,KAAK,iBAAiB,KAAKC,CAAS,EACpCF,KAEFI,IAEFI,EAAwB,IAAI,CAC7B,CAEH"}