Skip to content

Commit

Permalink
jquery for test server
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Apr 9, 2011
1 parent 2669a36 commit fdf3d9c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/index.jade
Expand Up @@ -3,6 +3,13 @@ html
title Nib
link(rel='stylesheet', href='/test.css')
link(rel='stylesheet', href='/buttons.css')
script(src='/jquery.min.js')
script
$(function(){
$(':button, :submit, a.button').click(function(){
return false;
});
});
body
h2 Buttons
table#buttons
Expand All @@ -14,7 +21,7 @@ html
- var name = button.split('-').join(' ')
tr
td blur
td: a(href='#', class=button)= name
td: a(href='#', class=button).button= name
tr
td hover
td: input(type='button', value=name, class=button).hover
Expand Down
16 changes: 16 additions & 0 deletions test/public/jquery.min.js

Large diffs are not rendered by default.

0 comments on commit fdf3d9c

Please sign in to comment.