forked from wkevina/manufractoria
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
179 lines (153 loc) · 6.32 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 class="no-js" lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<title>Manufactoria Editor</title>
<!-- bower:css -->
<!-- endbower -->
<link rel="stylesheet" href="css/build.css" />
<script type="text/javascript" src="libs/browser-polyfill.min.js"></script>
<script type="text/javascript" src="libs/system.js"></script>
<script type="text/javascript">
if ('addEventListener' in document) {
document.addEventListener(
'DOMContentLoaded',
function() {
FastClick.attach(document.body);
var allSvg = document.querySelectorAll("svg");
Array.prototype.forEach.call(allSvg, function(svg) {
FastClick.attach(svg);
})
}, false);
}
</script>
<script type="text/javascript" src="all.js"></script>
</head>
<body>
<!-- <div class="row hide-fullscreen">
<div class="small-12 columns">
<h1>Manufactoria Editor <a href="http://github.com/cemulate/manufactoria-editor">(View on Github)</a></h1>
</div>
</div> -->
<nav class="top-bar" data-topbar role="navigation">
<ul class="title-area">
<li class="name">
<h1><a href="#"><strong>Manufactoria Editor</strong></a></h1>
</li>
</ul>
<section class="top-bar-section">
<!-- Right Nav Section -->
<ul class="right">
<li><a target="_blank" href="https://github.com/cemulate/manufactoria-editor">View on Github</a></li>
</ul>
</section>
</nav>
<div style="height:10px;"></div>
<div class="row">
<div class="game-container">
<svg id="main-svg"></svg>
</div>
</div>
<div class="row hide-fullscreen">
<div class="columns"><p></p></div>
</div>
<form>
<div class="row form hide-fullscreen">
<div class="medium-12 large-12 columns">
<div class="row collapse " id="manufactoria-form">
<label>Generate or load from a Manufactoria URL</label>
<div class="small-2 columns">
<button type="button" class="button prefix">Generate</button>
</div>
<div class="small-8 columns">
<input style="font-family: monospace; font-size: 14px" type="text"></input>
</div>
<div class="small-2 columns">
<button type="button" class="button success postfix">Load</button>
</div>
</div>
</div>
</div>
</form>
<form>
<div class="row form hide-fullscreen">
<div class="medium-12 large-12 columns">
<div class="row collapse " id="other-format-form">
<label>Generate and load programs from text files in other formats</label>
<div class="small-2 columns">
<button type="button" class="button prefix">Generate File</button>
</div>
<div class="small-8 columns">
<select id="other-format-select" class="code-style">
<option value="json">JSON String</option>
<option value="esolang">Manufactoria Esolang (Extended)</option>
</select>
</div>
<div class="small-2 columns">
<button type="button" class="button success postfix">Load from File</button>
<input id="other-format-file-input" type="file" style="display:none"></input>
</div>
</div>
</div>
</div>
</form>
<div class="row hide-fullscreen">
<div class="medium-12 large-12 columns">
<label>Write a test function that implements the correct behavior, then use the button to run tests.
See <a href="https://github.com/cemulate/manufactoria-editor/blob/master/README.md">The README</a> for helpful info and examples.</label>
<div id="spec-editor" style="height: 300px"></div>
</div>
</div>
<form>
<div class="row form hide-fullscreen">
<div class="medium-12 large-12 columns">
<div class="row collapse " id="json-form">
<div class="small-12 columns">
<select id="test-select" class="code-style">
<option value="blank">Load a test function for a Manufactoria level...</option>
</select>
</div>
</div>
</div>
</div>
</form>
<div style="height:20px;"></div>
<form>
<div class="row form hide-fullscreen">
<div class="medium-12 large-12 columns">
<div class="row collapse " id="json-form">
<label>Run a battery of tests. The first number is the max string length that the engine will test; all strings up to this length are tested.
The second value is the max number of steps to run the interpreter before giving up (for hung programs)</label>
<div class="small-8 columns">
<button id="test-button" type="button" class="button prefix">Test</button>
</div>
<div class="small-2 columns">
<input id="max-length" style="font-family: monospace; font-size: 14px" type="number"></input>
</div>
<div class="small-2 columns">
<input id="hang-number" style="font-family: monospace; font-size: 14px" type="number"></input>
</div>
</div>
</div>
</div>
</form>
<div class="row hide-fullscreen">
<div class="medium-12 large-12 columns">
<label>Results</label>
<p id="test-results" class="test-results code-style">
</p>
</div>
</div>
<!-- bower:js -->
<!-- endbower -->
<script type="text/javascript" src="libs/ace-builds/src-min/ace.js"></script>
<script>
$(document).foundation();
</script>
<script type="text/javascript" src="main.js"></script>
</body>
</html>