Permalink
Browse files

add a quick little js alert

  • Loading branch information...
jflinchbaugh committed Mar 8, 2018
1 parent ac83144 commit 7e8a330ce6191d945931521f961b717df935adde
Showing with 20 additions and 1 deletion.
  1. +1 −1 project.clj
  2. +14 −0 resources/public/cat.html
  3. +5 −0 src-cljs/cheshire_cat/core.cljs
View
@@ -23,7 +23,7 @@
{
:source-paths ["src-cljs"]
:compiler {
:output-to "war/javascripts/main.js"
:output-to "resources/public/main.js"
:optimizations :whitespace
:pretty-print true
}
View
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html>
<head>
<title>Cheshire Cat</title>
</head>
<body>
<div id = "cat-name">Name</div>
<div id = "status">Status</div>
<script type = "text/javascript" src = "main.js"></script>
<script type = "text/javascript">
cheshire_cat.core.init();
</script>
</body>
</html>
@@ -0,0 +1,5 @@
(ns cheshire-cat.core)
(defn ^:export init []
(js/alert "hi")
)

0 comments on commit 7e8a330

Please sign in to comment.