-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
92 lines (85 loc) · 3.06 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
<html>
<head>
<link rel="stylesheet" href="vendor/pure-min.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="vendor/codemirror/codemirror.css">
<link rel="stylesheet" href="vendor/codemirror/theme/monokai.css">
<style>
.karel-container {
border-style: solid;
border-width: 1px;
}
.CodeMirror {
height: 100%;
}
.error {
color: red;
}
.help-container {
display: none;
}
.center {
margin-left: auto;
margin-right: auto;
max-width: 60%;
background-color: light-grey;
}
</style>
</head>
<body>
<div class="nav pure-g">
<button class="run pure-u-1-5">run</button>
<button class="reset pure-u-1-5">reset</button>
<button class="solution pure-u-1-5">solution</button>
<button class="help pure-u-1-5">help</button>
<select class="level-select pure-u-1-5"></select>
</div>
<div class="help-container center">
<div class="help-text">
<p>
Welcome, I am Karl the robot. My world contains green beepers and I
need your help to organize them. On the screen you have a text
editor, the code you write in the text editor will help me navigate
through my world.
</p>
<p>
Remember karl understands javascript, so don't forget to use if statements, while loops, or for loops!
</p>
<ul>
<li><strong>run:</strong> karl will load your code and run it.</li>
<li><strong>reset:</strong> once a level is completed it will not reset, use this button to reset the level.</li>
<li><strong>solution:</strong> display where karl wants you to place the beepers</li>
<li><strong>help:</strong> toggle this menu.</li>
<li><strong>level-select:</strong> change levels.</li>
</ul>
</div>
</div>
<div class="container pure-g">
<div class="code-container pure-u-1-3">
<textarea class="code"></textarea>
</div>
<div class="game pure-u-2-3"></div>
</div>
<div class="error-container">
<span class="error"></span>
</div>
<div class="info pure-g">
<div class="commands pure-u-1-2">
<p> Available Commands: </p>
<ul class="help-commands"></ul>
</div>
<div class="beepers pure-u-1-2">
<p>Initial Beeper Count: <span class="beeper-count"></span></p>
</div>
</div>
<script src="vendor/jquery-1.11.2.min.js"></script>
<script src="vendor/codemirror/codemirror.js"></script>
<script src="vendor/codemirror/mode/javascript/javascript.js"></script>
<script src="editor.js" type="text/javascript"></script>
<script src="levels.js" type="text/javascript"></script>
<script src="karel.js" type="text/javascript"></script>
<script src="world.js" type="text/javascript"></script>
<script src="renderer.js" type="text/javascript"></script>
<script src="game_object.js" type="text/javascript"></script>
</body>
</html>