Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 405 Rev 406
Línea 427... Línea 427...
427
        if(type=='multiple'){
427
        if(type=='multiple'){
428
            return options.filter((opt) => answer.includes(opt.slug_option) &&
428
            return options.filter((opt) => answer.includes(opt.slug_option) &&
429
        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>'
430
        }
430
        }
Línea -... Línea 431...
-
 
431
 
-
 
432
        console.log(options.filter((opt) => opt.slug_option == answer &&
-
 
433
        opt.correct == '1'));
431
 
434
 
432
        return options.filter((opt) => opt.slug_option == answer &&
435
        return options.filter((opt) => opt.slug_option == answer &&
Línea 433... Línea 436...
433
        opt.correct == '1') ? '<font color="green">LABEL_CORRECT</font>' : '<font color="red">LABEL_FAIL</red>'
436
        opt.correct == '1') ? '<font color="green">LABEL_CORRECT</font>' : '<font color="red">LABEL_FAIL</red>'