-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
55 lines (50 loc) · 1.86 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>S-Block</title>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="script.js"></script>
<script src="https://gradia-lang.github.io/gradia.js" type="module"></script>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="main">
<div id="title">
<h1>S-Block</h1>
<button id="run">▶️</button>
<button id="build">🔨</button>
<button id="load">📄</button>
<button id="save">💾</button>
</div>
<div id="editor" contenteditable="true">
<div class="expr">
<div class="function">define</div>
<div class="list">
<div class="symbol">inc</div>
<div class="symbol">n</div>
<span> </span>
</div>
<div class="list">
<div class="function">+</div>
<div class="symbol">n</div>
<div class="atom">1</div>
<span> </span>
</div>
<span> </span>
</div>
<div class="expr">
<div class="function">inc</div>
<div class="atom">5</div>
<span> </span>
</div>
<span> </span>
</div>
<br>
<div class="container">
<p>↪︎</p>
<pre id="result"> </pre>
</div>
</div>
</body>
</html>