Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
7 lines (7 sloc) 279 Bytes
squares = ( $j(nextSquareHtml c) for c in colors )
for s,i in squares
s.appendTo( $j '#keyboard' ) #assembling the keyboard
.click ->
grow $j(this), 7
#attach the next one, make it circular
.data('next', squares[ (i+1) % squares.length ])