Created
May 30, 2016 16:09
-
-
Save veer66/aaf170945c71908a4727e4d36acd1abf to your computer and use it in GitHub Desktop.
This is my first client-side code in ClojureScript apart from Hello World.
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
(ns toto.core) | |
(let [button (.getElementById js/document "button") | |
input (.getElementById js/document "input")] | |
(.addEventListener button "click" | |
(fn [event] | |
(.log js/console (nth input/files 0))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment