-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
191 lines (167 loc) · 8.6 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
180
181
182
183
184
185
186
187
188
189
190
191
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.2/css/bootstrap.min.css" integrity="sha384-y3tfxAZXuh4HwSYylfB+J125MxIs6mR5FOHamPBG064zB+AFeWH94NdvaCBm8qnd" crossorigin="anonymous">
<link href="omega.css" rel="stylesheet">
<link rel="shortcut icon" href="images/favicon.ico">
</head>
<body>
<div class="container">
<div class="text-xs-center">
<img src="images/openworm.png" id="openwormlogo" class="img-rounded pull-xs-left" height="120" width="120" alt="Openworm">
<img src="images/uoe.jpg" class="img-rounded pull-xs-right" height="120" width="160" alt="Openworm">
<h2>Welcome to OpenWorm's Omega turn survey</h2>
</div>
<div class="clearfix"></div>
<div class="text-xs-left m-t-3">
<p>Omega turns are a characteristic behaviour of <em>C. elegans</em> that have been extensively studied from many perspectives.
Traditionally these events are scored manually, which is inherently variable.
Recently, automated methods took over this job, but different publications have used different methods for detecting Omega turns.</p>
<p>We are interested in the consistency of expert annotations relative to each other and compared to various Omega detection algorithms. In the following task you will see clips of worm behaviour and we will ask you whether or not you think it was an Omega. That is all. The survey takes less than <strong>5 minutes</strong>.</p>
<p>Below we ask for a minimal amount of information about you.
Note that the data is strictly for research purposes. It <strong>will not be shared</strong> with anyone and personally you <strong>will not be identifiable</strong> from anything that we publish.</p>
</div>
<div class="col-sm-8 col-sm-offset-2 m-t-3">
<form>
<div class="form-group row">
<label class="col-sm-5 form-control-label" for="name">Name *</label>
<div class="col-sm-7">
<input type="text" class="form-control stored" id="name" name="name" placeholder="Enter name">
</div>
</div>
<div class="form-group row">
<label class="col-sm-5 form-control-label" for="lab">Lab *</label>
<div class="col-sm-7">
<input type="text" class="form-control stored" id="lab" name="lab" placeholder="Enter your lab">
<small class="text-muted">Please use the format: PI's name/University.</small>
</div>
</div>
<div class="form-group row">
<label class="col-sm-5 form-control-label" for="experience">Have you ever scored Omega turns for a publication? *</label>
<div class="col-sm-7">
<label><input type="checkbox" class="stored" id="experience" name="experience"> Yes</label>
</div>
</div>
<div class="form-group row">
<label class="col-sm-5 form-control-label" for="confidence">How confident are you in scoring Omega turns? *</label>
<div class="col-sm-7">
<label><small class="text-muted">Not confident</small></label>
<label class="radio-inline">
<input type="radio" class="stored" name="confidence" id="confidence1" value="1"> 1
</label>
<label class="radio-inline">
<input type="radio" class="stored" name="confidence" id="confidence2" value="2"> 2
</label>
<label class="radio-inline">
<input type="radio" class="stored" name="confidence" id="confidence3" value="3"> 3
</label>
<label class="radio-inline">
<input type="radio" class="stored" name="confidence" id="confidence4" value="4"> 4
</label>
<label class="radio-inline">
<input type="radio" class="stored" name="confidence" id="confidence5" value="5"> 5
</label>
<label><small class="text-muted">Very confident</small></label>
</div>
</div>
<div class="form-group row">
<label class="col-sm-5 form-control-label" for="email">Email (OPTIONAL)</label>
<div class="col-sm-7">
<input type="email" class="form-control stored" id="email" name="email" placeholder="Enter email">
<small class="text-muted">We'll never share your email with anyone else. If you give us your address we will directly email you the published results of this survey.</small>
</div>
</div>
</form>
</div>
<div class="clearfix"></div>
<div class="text-xs-left m-t-3">
<p>The website has been optimised to Chrome on desktop machines and might not work appropriately on mobile devices.<br/>
If you have any further questions please ask <a href="mailto:[email protected] Subject=Omega%20survey" target="_top">[email protected]</a>.</p>
<p>Kind regards,<br/><br/>
Balazs, Tom and the rest of the OpenWorm team</p>
</div>
<div class="text-xs-center m-t-3">
<div id="num_vids_msg" style="visibility:hidden">
You currently have classified <span id="num_vids"></span> videos. Would you like to continue?
<button type="button" class="btn btn-danger-outline btn-sm" id="restart_btn" onclick="clearSurvey()">Restart?</button>
</div>
<div>
<button type="button" class="btn btn-primary-outline" id="continue_btn" onclick="goToSurvey()">Continue</button>
</div>
<div id="form_msg" class="alert alert-danger m-t-1" role="alert" style="visibility:hidden">
Please make sure all required fields are filled in.
</div>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.3.2/js/tether.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.2/js/bootstrap.min.js" integrity="sha384-vZ2WRJMwsjRMW/8U7i6PWi6AlO1L79snBrmgiDpgIWJ82z8eA5lenwvxbMV1PAh7" crossorigin="anonymous"></script>
<script type="text/javascript">
$(document).ready(function () {
function init() {
if (localStorage["name"]) {
$('#name').val(localStorage["name"]);
}
if (localStorage["lab"]) {
$('#lab').val(localStorage["lab"]);
}
if (localStorage["email"]) {
$('#email').val(localStorage["email"]);
}
if (localStorage["confidence"]) {
checkboxid = '#confidence' + localStorage["confidence"]
$(checkboxid).prop("checked", true);
}
if (localStorage["results"]) {
results = JSON.parse(localStorage["results"]);
$('#num_vids').text(results.length);
$('#num_vids_msg').css("visibility", "visible");
}
if (localStorage["experience"] == "true") {
$('#experience').prop("checked", true);
} else {
localStorage["experience"] = "false"
}
}
init();
});
// If we don't include keyup, then doesn't change until change focus
$('.stored').keyup(function () {
localStorage[$(this).attr('name')] = $(this).val();
});
$('.stored').change(function() {
if ($(this).is(':checkbox')) {
localStorage[$(this).attr('name')] = $(this).is(":checked");
} else {
localStorage[$(this).attr('name')] = $(this).val();
}
});
function goToSurvey() {
if (localStorage["name"] && localStorage["lab"] && localStorage["confidence"]){
window.location.href = "survey.html";
} else {
console.log('no data');
$('#form_msg').css("visibility", "visible");
}
}
function clearSurvey() {
localStorage.clear();
$('#name').val("");
$('#lab').val("");
$('#email').val("");
$('#experience').val("");
$('#confidence').val("");
$('#num_vids_msg').css("visibility", "hidden");
$('#experience').prop("checked", false);
$('#confidence1').prop("checked", false);
$('#confidence2').prop("checked", false);
$('#confidence3').prop("checked", false);
$('#confidence4').prop("checked", false);
$('#confidence5').prop("checked", false);
}
</script>
</body>
</html>