diff options
| author | LLLL Colonq <llll@colonq> | 2025-02-18 18:40:38 -0500 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2025-02-18 18:40:38 -0500 |
| commit | baa7193345e9f0e9085bcb557e8e976d2d270867 (patch) | |
| tree | de922e51ef577b317c970facb6d4ae445a80c1de /src/Main/Throwshade.purs | |
| parent | 34b49df0ab7336789e79590e51d4456f92024408 (diff) | |
Support shader upload
Diffstat (limited to 'src/Main/Throwshade.purs')
| -rw-r--r-- | src/Main/Throwshade.purs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Main/Throwshade.purs b/src/Main/Throwshade.purs index ad1ad2c..bd7393b 100644 --- a/src/Main/Throwshade.purs +++ b/src/Main/Throwshade.purs @@ -5,7 +5,7 @@ import Prelude import Effect (Effect) import Effect.Class (liftEffect) import Effect.Console (log) -import UI (setShader) +import UI (setShader, submitShader) import Utils (byId, getTextArea, listen) main :: Effect Unit @@ -16,3 +16,7 @@ main = do listen test "click" \_ -> do s <- getTextArea input setShader s + submit <- byId "lcolonq-throwshade-button-submit" + listen submit "click" \_ -> do + s <- getTextArea input + submitShader s |
