mirror of
https://github.com/LukeSmithxyz/based.cooking.git
synced 2025-03-13 13:28:21 +00:00
Update content/_index.md
Co-authored-by: Steven Hall <Hallzy.18@gmail.com>
This commit is contained in:
parent
c57a13d925
commit
6489dd0e93
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user