From: 80B Date: Thu, 7 Jan 2021 22:27:01 +0000 (+0000) Subject: just like, my opinion, man. X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=8fb38d8fc7f882fc11bf77e64d981cb0a960d2e3;p=projs%2Fmdl.git just like, my opinion, man. --- diff --git a/index.html b/index.html index b31b9c0..f5cf995 100644 --- a/index.html +++ b/index.html @@ -31,12 +31,10 @@ const loadPage = file => { return Object.assign(el, props); }; - const filterPages = (allitems) => { - const value = search.value.toLowerCase(); + const filterPages = (allitems, value = search.value.toLowerCase()) => [...pages.children].forEach(child => ( child.style.display = allitems || child.innerText.toLowerCase().includes(value) ? 'list-item' : 'none' )); - }; const keys = { "f": () => {