-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
63 lines (57 loc) · 2.11 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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="./style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.48.2/codemirror.min.css">
<title>engine262</title>
</head>
<body>
<dialog id="loading">
Loading...
</dialog>
<script>
try {
document.querySelector('#loading').showModal();
} catch (e) {}
window.addEventListener('error', () => {
try {
document.querySelector('#loading').close();
} catch (e) {}
});
</script>
<!-- github ribbon -->
<a id="github" href="https://github.com/engine262/engine262" aria-label="Fork me on GitHub"></a>
<h1>engine262</h1>
<p>A JavaScript engine written in JavaScript for development and exploration.</p>
<main>
<section id="input-section">
<fieldset>
<legend>Features</legend>
<ul id="features"></ul>
</fieldset>
<fieldset>
<legend>Editor</legend>
<label><input id="autoevaluate" checked type="checkbox">Auto Evaluate</label>
<select id="mode">
<option value="script" selected="selected" autocomplete="off">Script</option>
<option value="module">Module</option>
</select>
<button type="button" id="save-to-gist">Save to Gist</button>
<span id="save-to-gist-output"></span>
</fieldset>
<textarea id="input" autocomplete="off"></textarea>
<button type="button" id="run">Evaluate</button>
</section>
<section id="output-section">
<h2>Output:</h2>
<div id="output"></div>
</section>
</main>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.48.2/codemirror.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.48.2/mode/javascript/javascript.min.js"></script>
<script src="https://unpkg.com/[email protected]/libs/base64-string.js"></script>
<script src="https://unpkg.com/[email protected]/libs/lz-string.min.js"></script>
<script type="module" src="./src/index.mjs"></script>
</script>
</body>
</html>