Skip to content

Commit

Permalink
playing with jquery
Browse files Browse the repository at this point in the history
  • Loading branch information
gnugeek committed Dec 26, 2008
1 parent e3dbf8e commit 93822bb
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 15 deletions.
7 changes: 6 additions & 1 deletion views/style.sass
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,16 @@ body
:padding 5px
:margin 5px

table.results
table.word_results
:margin 5px
:font-family arial
:width 40%
:border 1px solid gray
:background #aaf
:padding 1px
caption
:background #fff
:text-align center
td
:text-align left
th
Expand Down
29 changes: 15 additions & 14 deletions views/word.haml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
%table.results{:summary=>"Wordnet search results for word #{@word.lemma}"}
%tr
%th wordid
%td= @word.wordid
%tr
%th lemma
%td= @word.lemma

%table.word_results{:summary=>"Wordnet search results for word #{@word.lemma}"}
%caption= "Word: #{@word.lemma}"
%tbody.results
%tr
%th wordid
%td= @word.wordid
%tr
%th lemma
%td= @word.lemma

%script{:type => "text/javascript"}
$(document).ready(function(){
alert("Thanks for visiting!");
$("caption").click(function(event){
$("tbody.results").toggle();
return false;
});






0 comments on commit 93822bb

Please sign in to comment.