Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 401 Rev 402
Línea 424... Línea 424...
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>'
427
        }
427
        }
Línea 428... Línea 428...
428
 
428
 
429
        return options.filter((opt) => (opt.slug_option == answer &&
429
        return options.filter((opt) => opt.slug_option == answer &&
Línea 430... Línea 430...
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