Created
April 10, 2020 22:06
-
-
Save aarkerio/cd3c93fef79456e22462960cc5331f85 to your computer and use it in GitHub Desktop.
ClojureScript: Hidde flash message after 4 seconds
This file contains hidden or 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 ^:export flash-timeout [] | |
(when-let [flash-msg (gdom/getElement "flash-msg")] | |
(js/setTimeout #(set! (.-className %) "css-hidden-class") 4000 flash-msg))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment