-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconsole.html
152 lines (124 loc) · 3.88 KB
/
console.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Atum</title>
<link type="text/css" rel="stylesheet" href="resources/codemirror-3.14/codemirror.css" />
<style>
@import url(https://fonts.googleapis.com/css?family=Lato:300italic,700italic,300,700);
* {
box-sizing: border-box;
}
html, body {
height: 100%;
margin: 0;
padding: 0;
}
body {
font:14px/1.5 Lato, "Helvetica Neue", Helvetica, Arial, sans-serif;
height: 100%;
min-height: 100%;
}
#page-title {
position: absolute;
margin: 0 0.25em;
padding: 0;
font-size: 1.6em;
float: left;
}
#container {
min-height: 400px;
min-width: 400px;
height: 100%;
width: 100%;
padding-top: 33px;
}
#input {
width: 100%;
height: 100%;
padding-bottom: 19px;
}
#input .CodeMirror {
height: 100%;
}
#input .CodeMirror-scroll {
margin-bottom: 0;
padding-bottom: 0;
}
.workspace {
width: auto;
border-bottom: 1px solid gray;
position: relative;
height: 60%;
}
.workspace .controls {
border-top: 1px solid lightgray;
position: absolute;
bottom: 0;
width: 100%;
}
.workspace .run-buttons {
float: right;
}
.output-error {
color: red;
}
#text_out {
padding: 0;
margin: 0;
}
.code {
font-family: Courier New, monospace;
}
/* From http://nicolasgallagher.com/micro-clearfix-hack/ */
.cf:before,
.cf:after {
content: " ";
display: table;
}
.cf:after {
clear: both;
}
</style>
</head>
<body lang="en">
<header id='page-header' class='cf'>
<h1 id='page-title'>Atum</h1>
</header>
<div id='container' class="content">
<div class='workspace cf'>
<div id='input'></div>
<div class='controls cf'>
<div class='run-buttons cf'>
<button id='eval-button' title='Eval'>eval</button>
</div>
</div>
</div><div class='output code'>
<ul id='output-console'></ul>
<div class='output-interactive cf'>
<div id='output-interactive-textarea'></div>
</div>
</div>
</div>
<script type="application/javascript" src="resources/require.js"></script>
<script type="application/javascript">
requirejs.config({
paths: {
'text': 'resources/text',
'atum': 'lib',
'bes': 'dependencies/bes/dist',
'hamt': 'dependencies/hamt/dist/hamt',
'bennu': 'dependencies/bennu/dist',
'nu-stream': 'dependencies/nu/dist',
'seshet': 'dependencies/seshet/dist/seshet',
'ecma': 'dependencies/parse-ecma/lib',
'ecma_ast': 'dependencies/ecma-ast/dist',
}
});
</script>
<script type="application/javascript" src="resources/jquery-1.8.3.min.js"></script>
<script type="application/javascript" src="resources/codemirror-3.14/codemirror.js"></script>
<script type="application/javascript" src="resources/codemirror-3.14/javascript.js"></script>
<script type="application/javascript" src="console.js"></script>
</body>
</html>