update build
This commit is contained in:
parent
789237d9be
commit
95ae3340a7
|
@ -3,7 +3,7 @@
|
|||
<head>
|
||||
<link rel="stylesheet" href="css/style.css">
|
||||
<script src="js/scittle.js" type="application/javascript"></script>
|
||||
<script type="application/x-sci">
|
||||
<script type="application/x-scittle">
|
||||
(defn my-alert []
|
||||
(js/alert "You clicked!"))
|
||||
|
||||
|
@ -18,7 +18,7 @@
|
|||
<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!"))
|
||||
|
||||
|
|
12
index.html
12
index.html
|
@ -6,7 +6,7 @@
|
|||
<script crossorigin src="https://unpkg.com/react@17/umd/react.production.min.js"></script>
|
||||
<script crossorigin src="https://unpkg.com/react-dom@17/umd/react-dom.production.min.js"></script>
|
||||
<script src="js/scittle.reagent.js" type="application/javascript"></script>
|
||||
<script type="application/x-sci">
|
||||
<script type="application/x-scittle">
|
||||
(defn my-alert []
|
||||
(js/alert "You clicked!"))
|
||||
|
||||
|
@ -26,7 +26,7 @@
|
|||
(rdom/render [my-component] (.getElementById js/document "app"))
|
||||
</script>
|
||||
|
||||
<script src="cljs/script.cljs" type="application/x-sci"></script>
|
||||
<script src="cljs/script.cljs" type="application/x-scittle"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.2/highlight.min.js" type="text/javascript"></script>
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.2/styles/zenburn.min.css" integrity="sha512-JPxjD2t82edI35nXydY/erE9jVPpqxEJ++6nYEoZEpX2TRsmp2FpZuQqZa+wBCen5U16QZOkMadGXHCfp+tUdg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
|
||||
|
||||
|
@ -52,13 +52,13 @@
|
|||
|
||||
Include <tt>scittle.js</tt> and write a <tt>script</tt> tag
|
||||
where <tt>type</tt> is set
|
||||
to <tt>application/x-sci</tt>.
|
||||
to <tt>application/x-scittle</tt>.
|
||||
|
||||
<pre>
|
||||
<code class="html"><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 <tt>cljs/script.cljs</tt>, you can load it using the <tt>src</tt> attribute:
|
||||
|
||||
<pre><code class="html">
|
||||
<script src="cljs/script.cljs" type="application/x-sci"></script>
|
||||
<script src="cljs/script.cljs" type="application/x-scittle"></script>
|
||||
</code></pre>
|
||||
|
||||
<a name="reagent"></a>
|
||||
|
@ -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])
|
||||
|
||||
|
|
|
@ -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);
|
|
@ -8,7 +8,7 @@
|
|||
<script crossorigin src="https://unpkg.com/react-dom@17/umd/react-dom.production.min.js"></script>
|
||||
<script src="js/scittle.reagent.js" type="application/javascript"></script>
|
||||
|
||||
<script type="application/x-sci" src="cljs/tictactoe.cljs"></script>
|
||||
<script type="application/x-scittle" src="cljs/tictactoe.cljs"></script>
|
||||
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.2/highlight.min.js" type="text/javascript"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.2/languages/clojure.min.js" type="text/javascript"></script>
|
||||
|
@ -25,12 +25,12 @@
|
|||
from <a href="cljs/tictactoe.cljs"><tt>cljs/tictactoe.cljs</tt></a> using the
|
||||
script tag:
|
||||
<pre><code class="html">
|
||||
<script type="application/x-sci" src="cljs/tictactoe.cljs"></script>
|
||||
<script type="application/x-scittle" src="cljs/tictactoe.cljs"></script>
|
||||
|
||||
</code></pre>
|
||||
</p>
|
||||
<pre><code class="language-clojure" id="cljs"></code></pre>
|
||||
<script type="application/x-sci">
|
||||
<script type="application/x-scittle">
|
||||
(defn set-text [progress-event]
|
||||
(let [elt (.getElementById js/document "cljs")]
|
||||
(set! (.-innerHTML elt) (.. progress-event -srcElement -responseText))
|
||||
|
|
Loading…
Reference in a new issue