forked from teaching-the-art-of-fp/nanomaly
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsurvey.html
229 lines (209 loc) · 9.83 KB
/
survey.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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
<html>
<head>
<title>Type Error Debugging Survey</title>
<link href=
"http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel=
"stylesheet" type="text/css">
<link href=
"http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css"
rel="stylesheet" type="text/css">
<!-- <script async src="//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js" type= -->
<!-- "text/javascript"> -->
<!-- </script> -->
<script src="http://code.jquery.com/jquery-2.1.4.min.js" type="text/javascript">
</script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"
type="text/javascript">
</script>
<script src="zepto.min.js" type="text/javascript">
</script>
<link href="vis.css" rel="stylesheet" type="text/css">
<script src="vis.js" type="text/javascript">
</script>
<script src="codemirror-min.js" type="text/javascript">
</script>
<link href="codemirror.css" rel="stylesheet" type="text/css">
<link href="dialog.css" rel="stylesheet" type="text/css">
<link href="lint.css" rel="stylesheet" type="text/css">
<link href="nanoml.css" rel="stylesheet" type="text/css">
<script src="nanoml.js" type="text/javascript">
</script>
<!-- <title>Type Error Debugging Survey</title> -->
<!-- <link type="text/css" href="jquery-ui/css/smoothness/jquery-ui-1.8.18.custom.css" rel="stylesheet" /> -->
<!-- <script type="text/javascript" src="jquery-1.7.2.min.js"></script> -->
<!-- <script type="text/javascript" src="jquery-ui/js/jquery-ui-1.8.18.custom.min.js"></script> -->
<!-- <link rel="stylesheet" type="text/css" href="survey.css" /> -->
<!-- <script src="survey.js"></script> -->
<script type="text/javascript">
$(document).ready(function(){
setup();
});
</script>
</head>
<body id="body">
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="#">NanoMaLy</a>
</div>
<ul class="nav navbar-nav">
<!-- <li class="dropdown"> -->
<!-- <button class="btn btn-default navbar-btn dropdown-toggle" -->
<!-- data-toggle="dropdown" id="loadMenu" type="button">Demo -->
<!-- <span class="caret"></span></button> -->
<!-- <ul class="dropdown-menu"> -->
<!-- <li> -->
<!-- <a onclick="loadDemo('factorial')">factorial</a> -->
<!-- </li> -->
<!-- <li> -->
<!-- <a onclick="loadDemo('wwhile')">wwhile</a> -->
<!-- </li> -->
<!-- <li> -->
<!-- <a onclick="loadDemo('loop')">loop</a> -->
<!-- </li> -->
<!-- <li> -->
<!-- <a onclick="loadDemo('palindrome')">palindrome</a> -->
<!-- </li> -->
<!-- </ul> -->
<!-- </li> -->
</ul>
<form class="navbar-form navbar-left">
<div class="form-group">
<!-- <input class="form-control" id="var-input" name="var" -->
<!-- placeholder="check this function" style= -->
<!-- "font-family: monospace;" type="text"> -->
<!-- <button class= "btn btn-default" id="submit-btn" -->
<!-- type= "submit">Submit!</button> -->
</div>
</form>
<form class="navbar-form navbar-right">
<div id="nav-buttons" class="form-group">
<!-- <button class="btn btn-default" disabled="disabled" -->
<!-- id="undo" onclick="stepUndo()" -->
<!-- type="button">Undo</button> -->
<!-- <button class="btn btn-default" disabled="disabled" -->
<!-- id="step-forward" onclick= "stepForward()" -->
<!-- type="button">Step forward</button> -->
<!-- <button class="btn btn-default" disabled= -->
<!-- "disabled" id="step-backward" onclick="stepBackward()" -->
<!-- type="button">Step backward</button> -->
<!-- <button class= "btn btn-default" disabled="disabled" -->
<!-- id="jump-forward" onclick="jumpForward()" -->
<!-- type="button">Jump forward</button> -->
<!-- <button class="btn btn-default" disabled= "disabled" -->
<!-- id="jump-backward" onclick="jumpBackward()" -->
<!-- type="button">Jump backward</button> -->
<!-- <button class= "btn btn-default" disabled="disabled" -->
<!-- id="step-into" onclick="stepInto()" -->
<!-- type="button">Step into</button> -->
<!-- <button class="btn btn-default" disabled= "disabled" -->
<!-- id="step-over" onclick="stepOver()" type= -->
<!-- "button">Step over</button> -->
</div>
</form>
</div>
</nav>
<div class="mybody row">
<div class="mybody col-md-6">
<textarea id="prog" name="prog">
</textarea>
<br/>
<form class="col-sm-offset-1 form-horizontal">
<div class="form-group row">
<!-- <input class="form-control" id="var-input" name="var" -->
<!-- placeholder="check this function" style= -->
<!-- "font-family: monospace;" type="text"> -->
<label for="cause" class="col-sm-2 control-label">Which expression is at fault?</label>
<div class="col-sm-10">
<textarea id="cause" name="cause" class="form-control" rows="3"></textarea>
</div>
</div>
<div class="form-group row">
<label for="explanation" class="col-sm-2 control-label">Why is there a type error?</label>
<div class="col-sm-10">
<textarea id="explanation" name="explanation" class="form-control" rows="3"></textarea>
</div>
</div>
<div class="form-group row">
<div class="col-sm-offset-2 col-sm-4">
<button class="btn btn-default" id="submit-btn"
type="submit">Submit!</button>
</div>
</div>
</form>
</div>
<div class="mybody col-md-6">
<!-- <div class="alert alert-info" id="safe-banner" style="display: none;"> -->
<!-- Couldn't find a type error.. -->
<!-- </div> -->
<div class="alert alert-danger" id="unsafe-banner" style="display: none; margin-bottom: 0px;">
</div>
<div class="mybody" id="vis" style="border: 1px solid lightgray;">
</div>
</div>
</div>
<div id="thanks" class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title">Thanks!</h4>
</div>
<div class="modal-body">
<p>
Thank you for participating in our study! Your completion code
is: <span id="completion-code"></span>. If you wish, you can
give us your email address (or a fake one you just created!)
and we will enter you in a drawing for a $50 gift certificate.
</p>
<p>
We would appreciate it if you could also answer a few
questions about your experience.
</p>
<form>
<div class="form-group">
<label for="important">What do you think is important for debugging type errors?</label>
<textarea id="important" name="important" class="form-control" rows="3"></textarea>
</div>
<div class="form-group">
<label for="compilers">What information do you wish compilers would provide alongside type errors?</label>
<textarea id="compilers" name="compilers" class="form-control" rows="3"></textarea>
</div>
<div class="form-group">
<label for="other">Other thoughts</label>
<textarea id="other" name="other" class="form-control" rows="3"></textarea>
</div>
</form>
</div>
<div class="modal-footer">
<form class="form-inline">
<div class="form-group">
<label for="my-email">Email</label>
<input id="my-email" class="form-control" type="email"/>
</div>
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button id="email-btn" type="button" class="btn btn-primary">Enter my email</button>
</form>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<!-- <h2>Example Code</h2> -->
<!-- <table cellpadding=0 cellspacing=0 border=0> -->
<!-- <tr> -->
<!-- <td class="selection" style="border: 0; width: 3em"> -->
<!-- <div class="radio"><input type="radio" name="rating" value="A"><br/>A</div> -->
<!-- </td> -->
<!-- <td><code id="left"></code></td> -->
<!-- </tr><tr> -->
<!-- <td class="selection" style="border: 0; width: 3em"> -->
<!-- <div class="radio"><input type="radio" name="rating" value="B"><br/>B</div> -->
<!-- </td> -->
<!-- <td><code id="right"></code></td> -->
<!-- </tr> -->
<!-- </table> -->
<!-- <h2>History</h2> -->
<!-- <div id="history"></div> -->
<!-- <h2> </h2> -->
</body>
</html>