From 0f15c4810b72dfde7c6c4c039e27a71e2bc6dd31 Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Thu, 17 Jan 2019 14:44:25 -0500 Subject: * Home Page: Add filter --- toc-filter.js | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 toc-filter.js (limited to 'toc-filter.js') diff --git a/toc-filter.js b/toc-filter.js deleted file mode 100644 index 08afa2d..0000000 --- a/toc-filter.js +++ /dev/null @@ -1,18 +0,0 @@ -$(function(){ - $("#toc-filter").bind("change paste keyup", toc_filter); -}); - -function toc_filter( event ) -{ - var val = $(this).val().toLowerCase(); - $("#toc li").each(function(){ - if($(this).text().toLowerCase().indexOf(val) == -1) - { - $(this).hide(); - } - else - { - $(this).show(); - } - }); -} \ No newline at end of file -- cgit 1.4.1