Skip to content

Instantly share code, notes, and snippets.

View corasaurus-hex's full-sized avatar

Cora Sutton corasaurus-hex

View GitHub Profile
@corasaurus-hex
corasaurus-hex / aoc_ui.cljs
Last active December 3, 2023 01:28 — forked from borkdude/aoc_ui.cljs
AOC ui boilerplate
(require '[clojure.string :as str])
#_(assoc-in! (js/document.querySelector "#compiledCode") [:style :display] :none)
(when-not (js/document.querySelector "#aoc_token")
(let [create-element (fn create-element [tag attributes]
(let [element (js/document.createElement tag)]
(doseq [[key value] attributes]
(aset element key value))
element))