               [goog.history.EventType :as EventType]
               [decktouch.card-data :as card-data])
     (:import goog.History))
+
+(def the-cards (atom card-data/cards))
 
 (defn get-card-input-value []
   (.-value (.getElementById js/document "the-input")))


(defn home-page []
  [:div [:h2 "Welcome to decktouch"]
   [:div [card-list @card-data/cards]]
   [:div [:a {:href "#/about"} "go to about page"]]])

(defn about-page []

   (str card)])

(defn card-input []
  [:form {:onSubmit #(do
                       (swap! the-cards conj
                                             {:name (get-card-input-value)})
                       (.log js/console (str @the-cards))
                       false)}
   [:input#the-input {:type "text"}]])

