Skip to content

Instantly share code, notes, and snippets.

/blah.cljs Secret

Created January 16, 2014 16:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/f7c0d9f7bd90e849fa8c to your computer and use it in GitHub Desktop.
Save anonymous/f7c0d9f7bd90e849fa8c to your computer and use it in GitHub Desktop.
(em/defaction resize-div [width]
"#rz-demo" (ef/chain
(ef/resize width :curheight 500)
(ef/resize 5 :curheight 500)))
(em/defaction setup []
"#button2" (ef/listen #(resize-div 200)))
(em/defaction init []
#(do
(start)
(user-registration)
(post-button)
(setup)
;(menu)
;(repl/connect "http://localhost:9000/repl")
))
(set! (.-onload js/window) init)
<div class="row">
<div id="snippet">
<button id="button2">click me</button>
<div id="rz-demo" style="width: 5px; height: 10px; background-color: #33ff33;"> </div>
</div>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment