Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 403 Rev 404
Línea 421... Línea 421...
421
     */
421
     */
422
    const getStatus = (options, answer, type) => {
422
    const getStatus = (options, answer, type) => {
Línea 423... Línea 423...
423
 
423
 
424
        if(type=='multiple'){
424
        if(type=='multiple'){
425
            return options.filter((opt) => answer.includes(opt.slug_option) &&
425
            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>'
426
        opt.correct == '1') ? '<font color="green">LABEL_CORRECT</font>' : '<font color="red">LABEL_FAIL</red>'
Línea 427... Línea 427...
427
        }
427
        }
428
 
428
 
Línea 429... Línea 429...
429
        return options.filter((opt) => opt.slug_option == answer &&
429
        return options.filter((opt) => opt.slug_option == answer &&
430
        opt.correct == 1) ? '<font color="green">LABEL_CORRECT</font>' : '<font color="red">LABEL_FAIL</red>'
430
        opt.correct == '1') ? '<font color="green">LABEL_CORRECT</font>' : '<font color="red">LABEL_FAIL</red>'
431
 
431