update build
This commit is contained in:
parent
f0787074ac
commit
a51f87adf6
3 changed files with 193 additions and 147 deletions
45
bookmarklet.html
Normal file
45
bookmarklet.html
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="css/style.css">
|
||||
<script src="https://borkdude.github.io/scittle/js/scittle.js" type="application/javascript"></script>
|
||||
|
||||
<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="https://borkdude.github.io/scittle/js/scittle.reagent.js" type="application/javascript"></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>
|
||||
<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" />
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<h1>Scittle Bookmarklet creator</h1>
|
||||
<h2>What is Scittle?</h2>
|
||||
<p>Read <a href="index.html">the main page</a> for more details.</p>
|
||||
<h2>The bookmarklet editor</h2>
|
||||
<div id="app"></div>
|
||||
<p>The following source was loaded and interpreted
|
||||
from <a href="cljs/bookmarklet.cljs"><tt>cljs/bookmarklet.cljs</tt></a> using the
|
||||
script tag:
|
||||
<pre><code class="html">
|
||||
<script type="application/x-scittle" src="cljs/bookmarklet.cljs"></script>
|
||||
|
||||
</code></pre>
|
||||
</p>
|
||||
<pre><code class="language-clojure" id="cljs"></code></pre>
|
||||
<script type="application/x-scittle">
|
||||
(defn set-text [progress-event]
|
||||
(let [elt (.getElementById js/document "cljs")]
|
||||
(set! (.-innerHTML elt) (.. progress-event -srcElement -responseText))
|
||||
(.highlightAll js/hljs)))
|
||||
(def oreq (js/XMLHttpRequest.))
|
||||
(.addEventListener oreq "load" set-text)
|
||||
(.open oreq "GET" "cljs/bookmarklet.cljs")
|
||||
(.send oreq)
|
||||
</script>
|
||||
|
||||
<script type="application/x-scittle" src="cljs/bookmarklet.cljs"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue