Created
January 11, 2014 11:18
-
-
Save anonymous/8369691 to your computer and use it in GitHub Desktop.
How would I go about listening out for links clicked with enfocus?
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
(defn start [] | |
(ef/at ["#top-menu"] (ef/content "Menu here")) | |
(ef/prepend ["#top-menu"] (ef/content "Registration")) | |
(em/at "#user-registration-block " (ev/listen :click | |
#(ef/at (.-currentTarget %) | |
(ef/content "Replace with registration form.")))) | |
(ef/at ["#shell"] | |
(ef/content "<form id=\"post-form\"> | |
<input type=\"text\" class=\"post-box\" | |
placeholder=\"Cast your thoughts to the universe!\"> | |
</form>"))) | |
(def login "<a href=\"/login\">Login</a> or <a href=\"signup\">Sign Up</a>") |
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 id="user-registration-block" class="large-4 columns"> | |
User | |
</div> | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment