I am trying to figure out how I can get the coordinates of a page click in Clojure. I'm building Minesweeper and understand that I will have to write a function to figure out the specific cell but for now, just need to get coordinates of a page click. Thanks!
(defn header [color text]
[:h1
{:style
{:color color
:background-color "blue"}}
text])
(defn Cell []
[:div
{:on-click #(js/alert "test")
:style
{:width "40px"
:height "40px"
:float "right"
:margin-bottom "1px"
:margin-right "1px"
:background-color "grey"
:border "1px" "solid" "white"}}])
(defn home-page []
[:div
[header "red" "Minesweeper"]
[:div
{:style
{:width "440px"
:height "440px"}}
(repeat 100 [Cell])]])
