-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
179 lines (136 loc) · 4.79 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="A Javascript compiler for SPL">
<meta name="author" content="Miles Zimmerman">
<title>Horatio - A Javascript compiler for SPL</title>
<link href="assets/css/bootstrap.min.css" rel="stylesheet">
<style>
body {
min-height: 600px;
}
.navbar-static-top {
margin-bottom: 19px;
}
.right-column {
height: 170px
}
#editor {
height: 450px;
}
#console {
position: relative;
height: 390px;
}
/* The inner console element. */
.jqconsole {
padding: 10px;
}
/* The cursor. */
.jqconsole-cursor {
background-color: gray;
}
/* The cursor color when the console looses focus. */
.jqconsole-blurred .jqconsole-cursor {
background-color: #666;
}
/* The current prompt text color */
.jqconsole-prompt {
color: #0d0;
}
/* The command history */
.jqconsole-old-prompt {
color: #0b0;
font-weight: normal;
}
/* The text color when in input mode. */
.jqconsole-input {
color: #dd0;
}
/* Previously entered input. */
.jqconsole-old-input {
color: #bb0;
font-weight: normal;
}
/* The text color of the output. */
.jqconsole-output {
color: black;
}
</style>
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="assets/js/html5shiv.js"></script>
<script src="assets/js/respond.min.js"></script>
<![endif]-->
</head>
<body>
<!-- Navbar -->
<div class="navbar navbar-default navbar-static-top" role="navigation">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="/">Horatio</a>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li class="active"><a href="#">Home</a></li>
<li><a href="./docs/index.html">Documentation</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="https://github.com/mileszim/horatio">Source</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
<!-- Content -->
<div class="container">
<div class="row">
<div class="col-lg-6">
<div id="editor">Hello - Shakespeare Programming Language.
Romeo, a young man with a remarkable patience.
Juliet, a likewise young woman of remarkable grace.
Ophelia, a remarkable woman much in dispute with Hamlet.
Hamlet, the flatterer of Andersen Insulting A/S.
Act I: Hamlet's insults and flattery.
Scene I: The insulting of Romeo.
[Enter Hamlet & Romeo]
Hamlet:
You lying stupid fatherless big smelly half-witted coward!
You are as stupid as the difference between a handsome rich brave
hero and thyself! Speak your mind!
You are as brave as the sum of a fat little stuffed misused dusty
old rotten codpiece and a beautiful fair warm peaceful sunny summer's
day. You are as healthy as the difference between the sum of the
sweetest reddest rose and a pony and yourself! Speak your mind!
You are as cowardly as the sum of yourself and the difference
between a proud kingdom and a flower. You are as happy as the sum of
yourself and the sum of a peaceful pony and a brave cunning hero. Speak your mind!
Speak your mind!
[Exit Hamlet]
Scene II: The praising of Juliet.
[Enter Juliet]
Romeo:
Thou art as sweet as the sum of the sum of myself and a hero and a
cute cat. Speak your mind!
[Exeunt]</div>
</div>
<div class="col-lg-6">
<div id="console"></div>
<br/>
<button class="btn btn-primary" id="run_program">> Run</button>
</div>
</div>
</div>
<!-- Bootstrap/Jquery -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="assets/js/bootstrap.min.js"></script>
<script src="assets/js/ace.js" type="text/javascript" charset="utf-8"></script>
<script src="assets/js/jqconsole.js" type="text/javascript" charset="utf-8"></script>
<!-- Horatio JS -->
<script src="./dist/horatio.min.js"></script>
<script src="assets/js/io.js"></script>
<script src="assets/js/main.js"></script>
</body>
</html>