Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 404 | Rev 406 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 404 Rev 405
Línea 419... Línea 419...
419
    /**
419
    /**
420
     * Get Status
420
     * Get Status
421
     */
421
     */
422
    const getStatus = (options, answer, type) => {
422
    const getStatus = (options, answer, type) => {
Línea -... Línea 423...
-
 
423
 
-
 
424
        console.log(type);
-
 
425
        console.log(answer);
423
 
426
 
424
        if(type=='multiple'){
427
        if(type=='multiple'){
425
            return options.filter((opt) => answer.includes(opt.slug_option) &&
428
            return options.filter((opt) => answer.includes(opt.slug_option) &&
426
        opt.correct == '1') ? '<font color="green">LABEL_CORRECT</font>' : '<font color="red">LABEL_FAIL</red>'
429
        opt.correct == '1') ? '<font color="green">LABEL_CORRECT</font>' : '<font color="red">LABEL_FAIL</red>'