Source

lichen-clj / src-cljs / lichen / main.cljs

Full commit
(ns lichen.main)

(defn get [selector]
  (.querySelector js/document selector))

(defn log [msg]
  (.log js/console msg))

(defn on-load [f]
  (.addEventListener js/document "load" f))

(defn init [doc]
  (js/alert "Hello world")
  (log "init"))

(on-load init)

;(js/alert "Hello world!")