Skip to content

Instantly share code, notes, and snippets.

@viebel viebel/body_color.cljs
Last active Aug 30, 2016

Embed
What would you like to do?
(ns viebel.gist-3800b8ebae5292921c7d6fcb6c995c1f.raw.body-color)
(defn set-bg-color [c]
(set! (.. js/document -body -style -backgroundColor) c))
(defn set-bg-color-element [e c]
(set! (.. e -style -backgroundColor) c))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.