-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
85 lines (83 loc) · 2.33 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>The Logo Programming Language</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div class="app">
<aside>
<h1>The Logo Programming Langauge</h1>
<div class="description">
<p>
Logo is a visual programming language. Type commands into the input
and experiment. Draw shapes, have fun.
</p>
<a href="http://alabhyajindal.com" target="_blank">Alabhya Jindal</a>
</div>
<section class="commands">
<div>
<p>
<strong>fd <steps></strong><span>,</span>
<strong>bk <steps> </strong>
</p>
<p>forward, backward</p>
<p><em>fd 50</em></p>
</div>
<div>
<p>
<strong>rt <degrees></strong><span>,</span>
<strong>lt <degrees> </strong>
</p>
<p>right turn, left turn</p>
<p><em>rt 90</em></p>
</div>
<div>
<strong>repeat <count> [commands]</strong>
<p>repeat commands</p>
<p><em>repeat 36 [lt 10 pu fd 1 pd repeat 120 [fd 4 rt 3]]</em></p>
</div>
<div>
<p>
<strong>pu</strong><span>,</span>
<strong>pd</strong>
</p>
<p>pen up, pen down</p>
</div>
<div>
<p>
<strong>hd</strong><span>,</span>
<strong>st</strong>
</p>
<p>hide turtle, show turtle</p>
</div>
<div>
<strong>ct</strong>
<p>center turtle</p>
</div>
<div>
<strong>cs</strong>
<p>clear screen</p>
</div>
</section>
</aside>
<main>
<svg></svg>
<form>
<input
type="text"
placeholder="Enter here"
autofocus
autocomplete="off"
/>
<button>Go</button>
</form>
</main>
</div>
<script src="turtle.js"></script>
<script src="parser.js"></script>
<script src="main.js"></script>
</body>
</html>