From 95ae3340a7faa0622a7beb2ec73f20c09aa7bda3 Mon Sep 17 00:00:00 2001
From: Michiel Borkent
<head>
<script src="https://borkdude.github.io/scittle/js/scittle.js" type="application/javascript"></script>
- <script type="application/x-sci">
+ <script type="application/x-scittle">
(defn my-alert []
(js/alert "You clicked!"))
@@ -84,7 +84,7 @@
When you have a file on your server, say cljs/script.cljs, you can load it using the src attribute:
@@ -99,7 +99,7 @@
<script crossorigin src="https://unpkg.com/react-dom@17/umd/react-dom.production.min.js"></script>
<script src="https://borkdude.github.io/scittle/js/scittle.reagent.js" type="application/javascript"></script>
-<script type="application/x-sci">
+<script type="application/x-scittle">
(require '[reagent.core :as r]
'[reagent.dom :as rdom])
diff --git a/js/scittle.js b/js/scittle.js
index 6553729..f059f1b 100644
--- a/js/scittle.js
+++ b/js/scittle.js
@@ -2168,5 +2168,5 @@ d=$APP.T.g(a);$APP.y.h($APP.q.g(c),$APP.q.g(d));c=new $APP.m(null,4,[$APP.U,$7,$
$APP.WC),O7=$APP.ce.h(l7,$APP.PJ),P7=$APP.ce.h(l7,$APP.GE),Q7=$APP.ce.h(l7,$APP.iH),U7=$APP.ce.h(l7,$APP.jC),V7=$APP.ce.h(l7,$APP.ls),W7=$APP.ce.h(l7,$APP.Iu),X7=$APP.ce.h(l7,$APP.Lt),Y7=$APP.ce.h(l7,Ez),Z7=$APP.ce.h(l7,$APP.AP),b8=$APP.n(N7)?N7:$APP.nj.g($APP.Hi),c8=$APP.em.j($APP.Pe([$APP.Hi,P7]));$APP.AQ(b8,K7,W7,G7,c8,U7);var d8=$APP.jX($APP.em.j($APP.Pe([B7,Z7])));
v6=$APP.E.j(new $APP.m(null,5,[$APP.lH,$APP.Hi,$APP.WC,b8,$APP.MA,F7,$APP.GG,L7,$APP.RP,$APP.n(Q7)?Q7:X7],null),$APP.iH,$APP.n(Q7)?$APP.A7(nm,$APP.Pe([Q7])):null,$APP.Pe([$APP.Lt,$APP.n(X7)?$APP.A7(nm,$APP.Pe([X7])):null,$APP.ls,V7,$APP.LJ,$APP.n(M7)?M7:C7,Ez,Y7,$APP.PJ,O7,$APP.zA,$APP.zA.g(d8),$APP.CK,Z7,$APP.QO,$APP.QO.g(d8)]));$APP.nc=u6.call($APP.nj,v6);n8=["scittle","core","eval_string"];o8=$APP.kX;n8[0]in o8||"undefined"==typeof o8.execScript||o8.execScript("var "+n8[0]);
for(var p8;n8.length&&(p8=n8.shift());)n8.length||void 0===PK?o8=o8[p8]&&o8[p8]!==Object.prototype[p8]?o8[p8]:o8[p8]={}:o8[p8]=PK;of.h($APP.qm(PK("(map ns-name (all-ns))")),DL);var h8=function h8(a){var c=$APP.r(a);if($APP.n(c)){var d=Ei($APP.Aa(c,"textContent"));if($APP.n(d))return PK(d),c=ie(a),h8.g?h8.g(c):h8.call(null,c);c=c.getAttribute("src");d=new XMLHttpRequest;d.open("GET",c,!0);lX(d,function(){PK($APP.Aa(this,"response"));var e=ie(a);return h8.g?h8.g(e):h8.call(null,e)});return d.send()}return null};
-document.addEventListener("DOMContentLoaded",function(){var a=document.querySelectorAll("script[type\x3d'application/x-sci']");return h8(a)},!1);
+document.addEventListener("DOMContentLoaded",function(){var a=document.querySelectorAll("script[type\x3d'application/x-scittle']");return h8(a)},!1);
}).call(this);
\ No newline at end of file
diff --git a/tictactoe.html b/tictactoe.html
index eb98e9b..5b62e74 100644
--- a/tictactoe.html
+++ b/tictactoe.html
@@ -8,7 +8,7 @@
-
+
@@ -25,12 +25,12 @@
from cljs/tictactoe.cljs using the
script tag:
-<script src="cljs/script.cljs" type="application/x-sci"></script>
+<script src="cljs/script.cljs" type="application/x-scittle"></script>
-<script type="application/x-sci" src="cljs/tictactoe.cljs"></script>
+<script type="application/x-scittle" src="cljs/tictactoe.cljs"></script>
-