From f05519d63d8bc523856df98c6b0854dcaa835c9b Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Wed, 26 May 2021 12:20:57 +0200 Subject: [PATCH] update build --- base.html | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 base.html diff --git a/base.html b/base.html new file mode 100644 index 0000000..78d2940 --- /dev/null +++ b/base.html @@ -0,0 +1,42 @@ + + + + + + + + +

SCI script tag

+ +
+      
+<head>
+  <script src="https://borkdude.github.io/sci-script-tag/js/sci-script-tag.js" type="application/javascript"></script>
+
+  <script type="application/x-sci">
+    (defn my-alert []
+      (js/alert "You clicked!"))
+
+    ;; export function to use from JavaScript:
+    (set! (.-my_alert js/window) my-alert)
+  </script>
+
+</head>
+
+<body>
+  <button onclick="my_alert()">
+    Click me!
+  </button>
+</body>
+ + + + +