Skip to content

Commit

Permalink
Merge pull request #4313 from bkentropy/add-timestamp
Browse files Browse the repository at this point in the history
Added (local) timestamp to game board
  • Loading branch information
NoahTheDuke authored Aug 15, 2019
2 parents 3176f92 + a77705d commit cd327c6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/cljs/nr/gameboard.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -1601,6 +1601,11 @@
(pos? (:click @me)))
#(send-command "credit")]]))])})))

(defn starting-timestamp []
[:div
{:class ["panel" "blue-shade"]}
(str "Game start: " (.toLocaleTimeString (js/Date.)))])

(defn gameboard []
(let [run (r/cursor game-state [:run])
side (r/cursor game-state [:side])
Expand Down Expand Up @@ -1701,6 +1706,7 @@
me-current (r/cursor game-state [me-side :current])
me-play-area (r/cursor game-state [me-side :play-area])]
[:div
[starting-timestamp]
[rfg-view op-rfg "Removed from the game" true]
[rfg-view me-rfg "Removed from the game" true]
[play-area-view op-user "Temporary Zone" op-play-area]
Expand Down

0 comments on commit cd327c6

Please sign in to comment.