File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/CM005-IXUEaYmZ.js.map
{"version":3,"file":"CM005-IXUEaYmZ.js","sources":["../../src/exercices/CM/CM005.js"],"sourcesContent":["import { modalTexteCourt } from '../../lib/outils/modales.js'\nimport Exercice from '../Exercice.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 = 'Ajouter 9'\nexport const amcReady = true\nexport const interactifReady = true\nexport const interactifType = 'mathLive'\nexport const amcType = 'AMCNum'\n\n/**\n * Un nombre à 2 chiffres (non multiple de 10) + 9\n * @author Rémi Angot\n * Référence CM005\n */\nexport const uuid = '30800'\nexport const ref = 'CM005'\nexport default function Ajouter9 () {\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 (numeroExercice) {\n this.boutonAide = modalTexteCourt(\n numeroExercice,\n 'Ajouter 9 revient à ajouter 10 et à soustraire 1.'\n )\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(0, 9) * 10 + randint(1, 9)\n texte = `$${a}+9 = $`\n texteCorr = `$${a}+9=${a + 9}$`\n setReponse(this, i, a + 9)\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","Ajouter9","Exercice","numeroExercice","modalTexteCourt","i","texte","texteCorr","a","cpt","randint","setReponse","ajouteChampTexteMathLive","listeQuestionsToContenu"],"mappings":"yGAMY,MAACA,EAAQ,YACRC,EAAW,GACXC,EAAkB,GAClBC,EAAiB,WACjBC,EAAU,SAOVC,EAAO,QACPC,EAAM,QACJ,SAASC,GAAY,CAClCC,EAAS,KAAK,IAAI,EAClB,KAAK,SAAW,YAChB,KAAK,YAAc,GACnB,KAAK,OAAS,EACd,KAAK,WAAa,EAClB,KAAK,gBAAkB,EAEvB,KAAK,gBAAkB,SAAUC,EAAgB,CAC/C,KAAK,WAAaC,EAChBD,EACA,mDACD,EACD,KAAK,eAAiB,CAAE,EACxB,KAAK,iBAAmB,CAAE,EAE1B,QACME,EAAI,EAAGC,EAAOC,EAAWC,EAAGC,EAAM,EACtCJ,EAAI,KAAK,aAAeI,EAAM,IAE9BD,EAAIE,EAAQ,EAAG,CAAC,EAAI,GAAKA,EAAQ,EAAG,CAAC,EACrCJ,EAAQ,IAAIE,CAAC,SACbD,EAAY,IAAIC,CAAC,MAAMA,EAAI,CAAC,IAC5BG,EAAW,KAAMN,EAAGG,EAAI,CAAC,EACrB,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"}