-
-
Save anonymous/f7c0d9f7bd90e849fa8c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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