git.s-ol.nu electric-sudoku / 9546fef
remove debug printing s-ol 6 months ago
1 changed file(s) with 3 addition(s) and 10 deletion(s). Raw diff Collapse all Expand all
119119 difficulty (e/watch !difficulty)]
120120 (dom/div
121121 (dom/label (dom/props {:for "difficulty"}) (dom/text "difficulty"))
122 (ui/range difficulty (e/fn [v]
123 (println v)
124 (reset! !difficulty v))
125 ; (partial reset! !difficulty))
126 (dom/props {:id "difficulty"
127 :min 1
128 :max 59}))
129 (ui/button (e/fn [] (e/server
130 (println (type difficulty))
131 (reset! !state (make-sudoku difficulty))))
122 (ui/range difficulty (e/fn [v] (reset! !difficulty v))
123 (dom/props {:id "difficulty" :min 1 :max 59}))
124 (ui/button (e/fn [] (e/server (reset! !state (make-sudoku difficulty))))
132125 (dom/text "regenerate"))))
133126
134127 (let [!focus (atom nil)