993
edições
Sem resumo de edição |
Sem resumo de edição |
||
Linha 71: | Linha 71: | ||
html += `<li class="groupTitle ${isSelected}"> ${option.group} </li>`; | html += `<li class="groupTitle ${isSelected}"> ${option.group} </li>`; | ||
console.log(option) | |||
option.phrases.filter(curr => curr.toLowerCase().startsWith(searchWord)).map(phrase => { | option.phrases.filter(curr => curr.toLowerCase().startsWith(searchWord)).map(phrase => { | ||
html += `<li onclick="updateName('${option.group}', '${option.img}', '${option.obs}')"> ${phrase} </li>`; | html += `<li onclick="updateName('${option.group}', '${option.img}', '${option.obs}')"> ${phrase} </li>`; |