-
Notifications
You must be signed in to change notification settings - Fork 8
/
index.html
62 lines (62 loc) · 2.21 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
<!DOCTYPE html>
<html>
<head>
<title>Bash to ShellJS Translator</title>
<link rel="stylesheet" type="text/css" href="lib/codemirror/lib/codemirror.css">
<link rel="stylesheet" type="text/css" href="src/style.css"/>
<script src="lib/ohm/dist/ohm.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="lib/codemirror/lib/codemirror.js"></script>
<script type="text/javascript" src="lib/codemirror/mode/shell/shell.js"></script>
<script type="text/javascript" src="lib/codemirror/mode/javascript/javascript.js"></script>
<script type="text/ohm-js" src="src/bash.ohm"></script>
<script src="src/semantics.js"></script>
<script src="src/hints.js"></script>
<script src="src/main.js"></script>
</head>
<body>
<h1>Bash to ShellJS Translator</h1>
<blockquote
cite="https://github.com/shelljs/shelljs#shelljs---unix-shell-commands-for-nodejs">
"Say goodbye to those gnarly Bash scripts!"
-- @arturadib, <a
href="https://github.com/shelljs/shelljs#shelljs---unix-shell-commands-for-nodejs">ShellJS
README</a>
</blockquote>
<p>Like it? Check out the project <a href="https://github.com/nfischer/shelljs-transpiler">on Github</a></p>
<input type="checkbox" name="globalInclude" id="checkbox1" checked="">Include in global namespace <i><a href="http://github.com/shelljs/shelljs#global-vs-local">What is this?</a></i>
<br>
<div id="hint-box">
<p class="hint-text">Hint:</p>
<p class="hint-text" id="hint-body"></p>
</div>
<table id="main-table">
<tr>
<td>
<div class="code-box">
<h2>Shell Input Code</h2>
<textarea id="bashcode" class="codemirror-textarea">
#!/bin/bash
echo "Type something, paste in some code, or drag-and-drop a shell script"
</textarea>
<div class="container">
<input type="button" class="selector" value="Select this script" onclick="editor.execCommand('selectAll'); editor.focus()" id="button1">
</div>
</div>
</td>
</tr>
<tr>
<td>
<div class="code-box">
<h2>Generated ShellJS Output</h2>
<textarea id="jscode" class="codemirror-textarea">
</textarea>
<div class="container">
<input type="button" class="selector" value="Select this script" onclick="jscode.execCommand('selectAll'); jscode.focus()" id="button2">
</div>
</div>
</td>
</tr>
</table>
</body>
</html>