about summary refs log tree commit diff
path: root/toc-filter.js
diff options
context:
space:
mode:
authorZach DeCook <zachdecook@gmail.com>2019-01-17 14:44:25 -0500
committerZach DeCook <zachdecook@gmail.com>2019-01-17 14:44:25 -0500
commit0f15c4810b72dfde7c6c4c039e27a71e2bc6dd31 (patch)
tree2bd6391136d2426c0743cb6265edbd195b811f6a /toc-filter.js
parent39ff0d501208c87b14867ebe7811a480aeebbff6 (diff)
downloadprosongsa-0f15c4810b72dfde7c6c4c039e27a71e2bc6dd31.tar.gz
* Home Page: Add filter
Diffstat (limited to 'toc-filter.js')
-rw-r--r--toc-filter.js18
1 files changed, 0 insertions, 18 deletions
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