]> git.mdlowis.com Git - projs/mdl.git/commitdiff
just like, my opinion, man.
author80B <wtf@idk.lol>
Thu, 7 Jan 2021 22:27:01 +0000 (22:27 +0000)
committer80B <wtf@idk.lol>
Thu, 7 Jan 2021 22:27:01 +0000 (22:27 +0000)
index.html

index b31b9c01deab4881a2d4ce972d75868ba7ce669c..f5cf995048fea03d7b517ce331f97517d8187e8b 100644 (file)
@@ -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": () => {