mirror of
https://github.com/LukeSmithxyz/based.cooking.git
synced 2025-03-27 03:59:15 +00:00
Update content/_index.md
Co-authored-by: Steven Hall <Hallzy.18@gmail.com>
This commit is contained in:
parent
6489dd0e93
commit
56c44d2637
@ -17,7 +17,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
const search = document.querySelector('#search')
|
const search = document.querySelector('#search')
|
||||||
const clearSearch = document.querySelector('.clear-search')
|
const clearSearch = document.querySelector('.clear-search')
|
||||||
|
|
||||||
search.addEventListener('change', e => {
|
search.addEventListener('input', e => {
|
||||||
// grab search input value
|
// grab search input value
|
||||||
const searchText = e.target.value.toLowerCase()
|
const searchText = e.target.value.toLowerCase()
|
||||||
// for each recipe hide all but matched
|
// for each recipe hide all but matched
|
||||||
|
Loading…
x
Reference in New Issue
Block a user