-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
58 lines (50 loc) · 2.24 KB
/
index.html
File metadata and controls
58 lines (50 loc) · 2.24 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Block Code Converter</title>
<link rel="stylesheet" href="styles.css">
<link href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.24.1/themes/prism-twilight.min.css" rel="stylesheet">
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.24.1/prism.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
<link href="https://fonts.googleapis.com/css2?family=Fira+Code&display=swap" rel="stylesheet">
<div class="container">
<h1><i class="fas fa-code-branch"></i> Block Code Converter</h1>
<div class="block-palette">
<div class="block start-block" draggable="true" data-type="start">
<i class="fas fa-play"></i> Start Sequence
</div>
<div class="block straight-block" draggable="true" data-type="straight">
<i class="fas fa-arrow-up"></i> Straight
</div>
<div class="block strafe-block" draggable="true" data-type="strafe">
<i class="fas fa-arrow-right"></i> Strafe
</div>
<div class="block turn-block" draggable="true" data-type="turn">
<i class="fas fa-undo"></i> Turn
</div>
</div>
<div class="workspace" id="workspace">
<div class="block start-block" draggable="true" data-type="start">
<i class="fas fa-play"></i> START
</div>
</div>
<div class="help-text">
Drag blocks from the left to workspace. Edit values in text box. Everything is in meters, max power is 1.0.
</div>
<button class="convert-btn" onclick="convertBlocks()">
<i class="fas fa-code"></i> Convert
</button>
</div>
<div id="outputModal" class="modal">
<div class="modal-content">
<span class="close" onclick="closeModal()">×</span>
<button class="copy-btn" onclick="copyCode()">
<i class="fas fa-copy"></i> Copy
</button>
<pre id="convertedCode"></pre>
</div>
</div>
<script src="script.js"></script>
</body>
</html>