puppetboard: Commit the current code.

This is all the code after a week and a bit hacking on this project.
It's in a rather experimental state but should work with a little
effort.
This commit is contained in:
Daniele Sluijters
2013-08-07 08:58:44 +02:00
parent 26de6d2979
commit f41dd99f60
30 changed files with 2377 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
$ = jQuery
$ ->
$('input.filter-list').parent('div').removeClass('hide')
$("input.filter-list").on "keyup", (e) ->
rex = new RegExp($(this).val(), "i")
$(".searchable li").hide()
$(".searchable li").filter( ->
rex.test $(this).text()
).show()
if e.keyCode is 27
$(e.currentTarget).val ""
ev = $.Event("keyup")
ev.keyCode = 13
$(e.currentTarget).trigger(ev)
e.currentTarget.blur()