-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
57 lines (55 loc) · 1.31 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<html>
<head>
<style>
textarea {
width: 500px;
height: 500px;
}
#editor {
width:500px;
height:500px;
}
</style>
<script src="./spade.js"></script>
<script src="./node_modules/lz-string/libs/lz-string.min.js"></script>
<script src="./node_modules/ace-builds/src-min/ace.js"></script>
<script>
window.onload = function() {
var spade = new Spade();
spade.track(document.getElementById("textarea"));
var editor = ace.editor("editor");
var spade2 = new Spade();
spade2.track(document.getElementById("editor"));
button.onclick = function() {
spade.compile();
}
button2.onclick = function() {
spade.condense();
}
button3.onclick = function() {
spade.expand();
}
button4.onclick = function() {
console.log(spade.renderTime(1));
}
}
</script>
</head>
<body>
<div id="vvv">
HBKBLLBLBLBLB
</div>
<textarea id="textarea"></textarea>
<div id="editor"></div>
<button id="button">Compile</button>
<button id="button2">Condense</button>
<button id="button3">Expand</button>
<button id="button4">Final Result</button>
<button id="button5">Compress</button>
<button id="button6">Decompess</button>
<button id="button7">Playback</button>
<script>
vvv.innerHTML = "xccxvvcx";
</script>
</body>
</html>