-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
62 lines (52 loc) · 1.09 KB
/
index.html
File metadata and controls
62 lines (52 loc) · 1.09 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
59
60
61
62
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js" type="text/javascript"></script>
<style type="text/css">
#content {
width: 800px;
margin: 0 auto;
}
#log {
width: 100%;
margin: 0 auto;
height: 200px;
overflow: auto;
border: 1px solid gray;
}
#log .message{
font-size: .9em;
}
#log .statement{
color: red;
}
#input-loc{
width: 100%;
height: 20px;
margin: 0 auto;
}
#input {
font-size: 20px;
width: 99%;
}
</style>
</head>
<body>
<div id="content">
<div id="log"></div>
<div id="input-loc">
<input id="input" type="text" placeholder="All aliens are green." ></input>
</div>
</div>
<script src="inference.js" type="text/javascript"></script>
<script type="text/javascript">
$("#input").focus();
$('#input').keypress(function (e) {
if (e.which == 13) {
_i.statement($(this).val());
$(this).val("");
}
});
</script>
</body>
</html>