Update content/_index.md

Co-authored-by: Steven Hall <Hallzy.18@gmail.com>
This commit is contained in:
Luke Smith 2022-05-26 22:52:12 +00:00 committed by GitHub
parent c57a13d925
commit 6489dd0e93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,7 @@ document.addEventListener('DOMContentLoaded', () => {
search.addEventListener('change', e => {
// grab search input value
const searchText = e.target.value.toLowerCase()
// for each receipe hide all but matched
// for each recipe hide all but matched
rec.forEach(el => {
const recipeName = el.innerText.toLowerCase()
const isMatch = recipeName.includes(searchText)