Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 400 Rev 401
Línea 420... Línea 420...
420
     * Get Status
420
     * Get Status
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