-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
96 lines (96 loc) · 2.41 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
94
95
96
<!doctype html>
<html>
<head>
<link rel="preload" href="data.json" as="fetch" crossorigin="anonymous">
<title>SpiderMonkey WASI demo</title>
<script src="js/main.js"></script>
<style type="text/css">
html, body {
width: 100vw;
height: 100vh;
margin: 0;
padding: 0;
font-family: sans-serif;
overflow-y: hidden;
}
#header {
background-color: #292929;
color: #eee;
}
#header a {
color: inherit;
text-decoration: none;
}
#header a:hover {
color: #888;
}
h1 {
font-size: 18px;
margin: 3px;
padding: 0;
}
#main {
display: grid;
grid-template-rows: auto 1fr;
width: 100vw;
height: 100vh;
max-height: 100vh;
}
#wrapper {
display: grid;
grid-template-columns: 1fr 1fr;
height: 100%;
min-height: 0;
}
#editor {
border-right: 1px solid #333;
}
#error {
color: red;
}
#output {
color: #D4D4D4;
}
#outputwrapper {
background-color: #1e1e1e;
overflow: scroll;
}
#error, #output {
margin: 0;
white-space: pre-wrap;
overflow-wrap: anywhere;
font-family: Menlo, Monaco, "Courier New", monospace;
font-size: 12px;
line-height: 18px;
}
#build_info {
font-size: 12px;
}
button {
margin: 5px;
}
button, select {
background-color: #444;
color: white;
border: 1px solid #555;
}
</style>
</head>
<body>
<div id="main">
<div id="header">
<h1><a href="https://spidermonkey.dev">SpiderMonkey</a> <a href="https://wasi.dev">WASI</a> demo</h1>
<button id="share">Copy URL</button>
branch: <select id="branch"></select>
<span id="build_info"></span>
</div>
<div id="wrapper">
<div id="editor"></div>
<div id="outputwrapper">
<pre id="error"></pre>
<pre id="output"></pre>
</div>
</div>
</div>
</body>
</html>