Skip to content

Commit

Permalink
Streamlined search
Browse files Browse the repository at this point in the history
  • Loading branch information
devinlinux authored Oct 18, 2022
1 parent 2166560 commit 0b60b84
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pages/vocabulary.js
Original file line number Diff line number Diff line change
Expand Up @@ -1264,9 +1264,7 @@ function search() {
let input = document.getElementById('searchbar').value.toLowerCase()
let indexID = document.getElementsByClassName('css-f8n5zr')
let words = document.getElementsByClassName('css-1oiguqt')
console.log(words.length)
for (let i = 0; i < words.length; i++) {
console.log(words[i])
if (!indexID[i].innerHTML.toLowerCase().includes(input)) {
words[i].style.display='none'
} else {
Expand Down

0 comments on commit 0b60b84

Please sign in to comment.