summaryrefslogtreecommitdiff
path: root/src/Main
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2025-02-18 00:33:43 -0500
committerLLLL Colonq <llll@colonq>2025-02-18 00:33:43 -0500
commit12a8b6bb63ab52cd4828f16d26d94079fa576436 (patch)
treee5bc3783d8e9f17c5653aacb4576bda63a337dcb /src/Main
parentd03675f9effa443811f054578f7c24e17adbd6dc (diff)
Add throwshade
Diffstat (limited to 'src/Main')
-rw-r--r--src/Main/Throwshade.purs18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/Main/Throwshade.purs b/src/Main/Throwshade.purs
new file mode 100644
index 0000000..ad1ad2c
--- /dev/null
+++ b/src/Main/Throwshade.purs
@@ -0,0 +1,18 @@
+module Main.Throwshade where
+
+import Prelude
+
+import Effect (Effect)
+import Effect.Class (liftEffect)
+import Effect.Console (log)
+import UI (setShader)
+import Utils (byId, getTextArea, listen)
+
+main :: Effect Unit
+main = do
+ liftEffect $ log "hello it is throwshade"
+ input <- byId "lcolonq-throwshade-textarea"
+ test <- byId "lcolonq-throwshade-button-test"
+ listen test "click" \_ -> do
+ s <- getTextArea input
+ setShader s