Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 370 Rev 371
Línea 401... Línea 401...
401
    }
401
    }
402
    /**
402
    /**
403
     * Get Status
403
     * Get Status
404
     */
404
     */
405
    const getStatus = (options, answer) => options.filter((opt) => (opt.slug_option == answer || answer.includes(opt.slug_option)) &&
405
    const getStatus = (options, answer) => options.filter((opt) => (opt.slug_option == answer || answer.includes(opt.slug_option)) &&
406
        opt.correct == 1) ? 'LABEL_CORRECT' : 'LABEL_FAIL'
406
        opt.correct == 1) ? '<font color="green">LABEL_CORRECT</font>' : '<font color="red">LABEL_FAIL</red>'
407
    /**
407
    /**
408
     * Remove Html Tags
408
     * Remove Html Tags
409
     */
409
     */
410
    const removeTags = (str) => str.toString().replace(/(<([^>]+)>)/ig, '')
410
    const removeTags = (str) => str.toString().replace(/(<([^>]+)>)/ig, '')
411
    /**
411
    /**