summaryrefslogtreecommitdiff
path: root/data/script.js
diff options
context:
space:
mode:
Diffstat (limited to 'data/script.js')
-rw-r--r--data/script.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/data/script.js b/data/script.js
index 94175b1..997a02e 100644
--- a/data/script.js
+++ b/data/script.js
@@ -18,5 +18,18 @@ $(document).ready (function () {
$('#sort').change (function () {
sortproto ($(this).val ());
});
+ $('#filter').keyup (function () {
+ var search = $(this).val ().toLowerCase ();
+ var items = $('#protocols .protocol');
+ for (var i = 0; i < items.length; i++) {
+ var e = $(items[i]);
+ if (e.data ('name').toLowerCase ().indexOf (search) >= 0) {
+ e.show ();
+ } else {
+ e.hide ();
+ }
+ }
+ });
+ $('#protosort').show ();
sortproto ('name');
});