-
Notifications
You must be signed in to change notification settings - Fork 0
/
editor.html
73 lines (63 loc) · 1.36 KB
/
editor.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>js2coffee editor</title>
<link rel="stylesheet" type="text/css" href="editor.css">
</head>
<body>
<div id="editor-wrapper">
<pre id="editor1" class="editor">/**
* Multiline Documentation
*/
var foobar = function(callback) {
setTimeout(function() {
// trigger callback after 1000ms
callback();
}, 1000);
};
var foo = {
key: {
nestedKey: 'value'
},
array: [1],
nestedArray: [1, 2, ['2a', ['2a-I']]]
}
foobar(function() {
alert(foo.array);
});</pre>
<pre id="editor2" class="editor">###
Multiline Documentation
###
foobar = (callback) ->
setTimeout (->
# trigger callback after 1000ms
callback()
), 1000
foo =
key:
nestedKey: "value"
array: [1]
nestedArray: [
1
2
[
"2a"
["2a-I"]
]
]
foobar ->
alert foo.array</pre>
</div>
<div id="infobox" style="display:none">
<div class="infobox-content"></div>
<div class="arrow-wrapper">
<div class="arrow-down"></div>
</div>
</div>
<script src="./ace/ace.js" type="text/javascript" charset="utf-8"></script>
<script src="./ace/token_tooltip.js" type="text/javascript" charset="utf-8"></script>
<script src="./editor.js" type="text/javascript" charset="utf-8"></script>
</body>
</html>