-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
93 lines (77 loc) · 2.92 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<!DOCTYPE html>
<html lang="vi">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>LiveScript2</title>
<link rel="icon" href="favicon.png">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/tiencoffee/fonts/PragmataPro-Mono.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/lib/codemirror.min.css">
<link rel="stylesheet" href="codemirror-theme-monokai.css">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/codemirror.min.js"></script>
<script src="codemirror-mode-livescript.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/mode/javascript/javascript.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/keymap/sublime.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/addon/edit/closebrackets.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/addon/comment/comment.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/addon/selection/active-line.min.js"></script>
<script src="livescript-org.min.js"></script>
<script> window.livescriptOrg = require("livescript") </script>
<script src="livescript.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/stylus2/stylus.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/boot2/boot-keep.min.js"></script>
<style>
body {
background: #282a39
}
</style>
</head>
<body>
<div id="main">
<div id="topbar">
<h2 id="logo">LiveScript2</h2>
<label title="if true, compile without the top-level function wrapper">
<input type="checkbox" id="bare" name="bare"> bare
</label>
<label title="if true, add the "Generated by" header">
<input type="checkbox" id="header" name="header"> header
</label>
<label title=" if true, compile all variables as constants">
<input type="checkbox" id="const2" name="const"> const
</label>
<label title="if true, compile to JSON instead of JavaScript">
<input type="checkbox" id="json" name="json"> json
</label>
<label title="https://livescript.net">
<input type="checkbox" id="org" name="org"> Phiên bản gốc
</label>
<!-- <label>
<input type="radio" id="lex" name="parse"> lex
</label>
<label>
<input type="radio" id="tokens" name="parse"> tokens
</label>
<label>
<input type="radio" id="ast" name="parse"> ast
</label> -->
<div id="note">Nhấn [F1] để chạy code</div>
</div>
<div id="content" class="row">
<div class="col xw50">
<textarea id="editorEl"></textarea>
</div>
<div class="col xw50 column">
<div class="col xh100">
<textarea id="resultEl"></textarea>
</div>
<!-- <div class="col xh50">
<textarea id="result2El"></textarea>
</div> -->
</div>
<!-- <div class="col">
<textarea id="parserEl"></textarea>
</div> -->
</div>
</div>
</body>
</html>