update build
This commit is contained in:
parent
2a419be74d
commit
9d4ea36ecb
1 changed files with 58 additions and 0 deletions
58
tictactoe.html
Normal file
58
tictactoe.html
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<script src="js/sci-script-tag.js" type="application/javascript"></script>
|
||||
<script src="js/sci-script-tag-plugin-reagent.js" type="application/javascript"></script>
|
||||
|
||||
<script type="application/x-sci" 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>
|
||||
<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" />
|
||||
<style>
|
||||
body
|
||||
{
|
||||
font-family: Arial;
|
||||
}
|
||||
|
||||
div#app
|
||||
{
|
||||
color:#666;
|
||||
}
|
||||
|
||||
div#app td
|
||||
{
|
||||
width:50px;
|
||||
height:50px;
|
||||
border:1px solid #dedede;
|
||||
background:#fff;
|
||||
margin:1px;
|
||||
color:#666;
|
||||
text-align: center;
|
||||
line-height: 50px;
|
||||
}
|
||||
|
||||
div#app td:hover
|
||||
{
|
||||
cursor:pointer;
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<h1>SCI script tag: Reagent tic-tac-toe</h1>
|
||||
<div id="app"></div>
|
||||
<p>The following source was loaded from <a href="cljs/tictactoe.cljs"><tt>cljs/tictactoe.cljs</tt></a>:</p>
|
||||
<pre><code class="language-clojure" id="cljs"></code></pre>
|
||||
<script type="text/javascript">
|
||||
function setText () {
|
||||
document.getElementById("cljs").innerHTML = (this.responseText);
|
||||
hljs.highlightAll();
|
||||
}
|
||||
var oReq = new XMLHttpRequest();
|
||||
oReq.addEventListener("load", setText);
|
||||
oReq.open("GET", "cljs/tictactoe.cljs");
|
||||
oReq.send();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue