[initial html and coffescript files
Betty Diegel **20121124004146
Ignore-this: fe3ef0bdbf1dbb93feaf11e852159628
] addfile ./client/dist/index.html
hunk ./client/dist/index.html 1
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ - Item 1
+ - Item 2
+ - Item 3
+ - Item 4
+ - Item 5
+ - Item 6
+ - Item 7
+
+
+
+
addfile ./client/src/keys.coffee
hunk ./client/src/keys.coffee 1
+($ document).ready ->
+
+ $(".ui-widget-content").bind {
+ keydown: (e) ->
+ key = e.keyCode
+ target = $ e.currentTarget
+
+ switch key
+ when 38 # arrow up
+ target.prev().focus()
+ break
+ when 40 # arrow down
+ target.next().focus()
+ break
+
+ focusin: (e) ->
+ ($ e.currentTarget).addClass "ui-selected"
+
+
+ focusout: (e) ->
+ ($ e.currentTarget).removeClass "ui-selected"
+
+ }
+ ($ "li").first().focus()
+