Permalink
Browse files

No commit message

  • Loading branch information...
1 parent 63a9d2c commit 270ec9726efee59cc7f0cee69995f235fafa8591 @utgarda committed Feb 4, 2012
Showing with 5 additions and 5 deletions.
  1. +4 −4 midi-keyboard-1.coffee
  2. +1 −1 midi-keyboard-2.coffee
@@ -1,4 +1,4 @@
-colors = [ '#CCDDBB', '#99CC66', '#88AA66', '#AADDCC'
+colors = [ '#CCDDBB', '#99CC66', '#88AA66', '#AADDCC'
'#66AAAA', '#559999', '#FFFFDD', '#FF9922'
'#DD8822', '#AACCDD', '#5599CC', '#4477AA' ]
nextSquareHtml = (color) -> """
@@ -7,6 +7,6 @@ height: 30px; width: 30px; margin: 5px; float: left"></div>"""
grow = (square) ->
square.animate(height: 60, 200).animate height: 30
for c in colors
- $(nextSquareHtml c)
- .appendTo( $ '#keyboard' )
- .click -> grow $(this)
+ $j(nextSquareHtml c)
+ .appendTo( $j '#keyboard' )
+ .click -> grow $j(this)
@@ -1,6 +1,6 @@
squares = ( $j(nextSquareHtml c) for c in colors )
for s,i in squares
- s.appendTo( $ '#keyboard' ) #assembling the keyboard
+ s.appendTo( $j '#keyboard' ) #assembling the keyboard
.click ->
grow $j(this), 7
#attach the next one, make it circular

0 comments on commit 270ec97

Please sign in to comment.