-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
91 lines (87 loc) · 2.95 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DeMOSSer</title>
<script src="https://cdn.jsdelivr.net/npm/jquery@3.6.0/dist/jquery.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css">
<script src="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.45.0/codemirror.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.45.0/codemirror.min.js"></script>
<script src="clike.js"></script>
<script src="tree-sitter.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/clusterize.js/0.18.0/clusterize.min.js"></script>
<!-- <script src="https://tree-sitter.github.io/tree-sitter.js"></script> -->
<script src="https://code.jquery.com/jquery-3.3.1.min.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="ui menu" id="menu">
<div class="menu">
<div class="item">
<div class="ui toggle checkbox">
<input type="checkbox" id="enable_demosser" onclick="codeEditor.setValue(codeEditor.getValue())"
checked>
<label>DeMOSSer</label>
</div>
</div>
<div class="item">
<div id="status"></div>
</div>
</div>
<div class="right menu">
<div class="item">
<button class="ui green button" onclick="codeEditor.execCommand('undo')">Undo</button>
</div>
<div class="item">
<button class="ui button" onclick="codeEditor.execCommand('redo')">Redo</button>
</div>
<div class="item">
<button class="ui button" onclick="navigator.clipboard.writeText(codeEditor.getValue())">Copy</button>
</div>
</div>
</div>
<div class="ui three column stackable grid">
<div class="seven wide column">
<div class="ui segment">
<div class="ui form">
<div class="field">
<label>Original code</label>
<textarea id="code-input-0"></textarea>
</div>
</div>
</div>
</div>
<div class="one wide column">
<div class="ui form">
<div class="field">
<button class="ui button"
onclick="codeEditor.setValue(codeEditor0.getValue())">>>></button>
</div>
<div class="field">
<button class="ui button"
onclick="codeEditor0.setValue(codeEditor.getValue())"><<<</button>
</div>
</div>
</div>
<div class="eight wide column">
<div class="ui segment">
<div class="ui form">
<div class="field">
<label>DeMOSS here</label>
<span id="update-time"></span>
<div id="output-container-scroll" hidden>
<pre id="output-container" class="highlight"></pre>
</div>
<textarea id="code-input"></textarea>
</div>
</div>
</div>
</div>
</div>
<script src="tricks.js"></script>
<script src="script.js"></script>
</body>
</html>