/
index.html
314 lines (299 loc) · 12.8 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
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
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
<!DOCTYPE html>
<html>
<head>
<title>DES exposure checker</title>
<link rel="stylesheet" media="screen" href="assets/bootstrap/css/bootstrap.min.css" type="text/css" charset="utf-8">
<link rel="stylesheet" media="screen" href="assets/eyeball.css" type="text/css" charset="utf-8">
<meta charset="utf-8">
<meta name="author" content="Peter Melchior, Erin Sheldon">
<link rel="icon" href="assets/DES_logo_trans.png" type="image/png">
<!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<div id="wrapper">
<div class='container'>
<div class="navbar">
<div class="navbar-inner">
<a class="brand" href="index.html">DES exposure checker</a>
<ul class="nav">
<li><a href="viewer.html">Viewer</a></li>
<li><a href="tutorial.html">Tutorial</a></li>
<li><a href="faq.html">FAQ</a></li>
<li><a href="statistics.html">Statistics</a></li>
<li><a href="api.html">API</a></li>
<li><a href="gallery.html">Gallery</a></li>
<li><a href="hodgepodge.html">Hodge-podge</a></li>
</ul>
<ul class="nav pull-right hide">
<!--#include file="release_selector.shtml"-->
</ul>
</div>
</div>
<div class="hero-unit" id="des-hero">
<div style="width: 700px">
<h1>DES exposure checker</h1>
<p>Look at real DES images. Discover flaws we would otherwise have missed.<br>Make our data better!</p>
<p id="getin-buttons" style="display: none">
<a href="viewer.html" class="btn btn-primary btn-large">Let's go</a>
</p>
<p id="login-buttons">
<button class="btn btn-primary btn-large" id="open-login-button">Log in</button>
<button class="btn btn-primary btn-large" id="open-signup-button">Sign up</button>
</p>
</div>
<div id="basic_stats" style="position: absolute; top: 30px; right:30px;"></div>
</div>
<div class="span8">
<h4>What's this good for?</h4>
<p>We all want to do science with the DES data. However,
no data set is perfect, so we need to identify and account for
imaging artifacts in our data. This application helps in two ways:</p>
<ul>
<li>It gives you convenient access to the DES annual release finalcut images
and shows the processing steps that are already in place to identify and
correct for known problems.</li>
<li>It enables everyone to search for undetected artifacts. We gather your
submissions, analyze them, and feed them back to the science working groups
and DESDM. This way, we can refine the processing pipelines to catch the
flaws that we know are there.</li>
</ul>
<h4>How can I start?</h4>
<p>Check out our <a href="tutorial.html">Tutorial</a> and you'll know what to do in no time.</p>
<h4>How are we doing so far?</h4>
<p>The basic <a href="statistics.html">statistics</a> are computed in real time. More
detailed analyses will become available once we have gathered enough submissions, but you can go to our
<a href="api.html">API page</a> and download the anonymized submissions right now.</p>
<h4>How can I give feedback?</h4>
<p>The code is on <a href="https://github.com/pmelchior/des-exp-checker">github</a>. Please open a new <a href="https://github.com/pmelchior/des-exp-checker/issues">Issue</a> to let us know what we could add, improve, ...</p>
<p>If you find particular failure cases and you think they may constitute a new class of artifacts, please go to the <a href="https://cdcvs.fnal.gov/redmine/projects/desdmug/wiki/Feedback_from_DES_Exposure_Checker">DESDM users wiki</a>, where we list and discuss such cases.</p>
</div>
<div class="span4" style="float: right">
<h4>Top contributors for <span class="release_name"></span></h4>
<div id="leaderboard"></div>
</div>
</div>
<!-- Login modal -->
<div class="modal hide" id="logIn">
<div class="modal-header">
<a class="close" data-dismiss="modal">x</a>
<h3>Log in</h3>
</div>
<div class="modal-body">
<form id="log-in-form" class="form-horizontal" style="margin-bottom: 0px;">
<fieldset>
<div class="control-group">
<label class="control-label" for="username">Account name</label>
<div class="controls">
<input type="text" class="input" id="username" name="username">
</div>
</div>
<div class="control-group">
<label class="control-label" for="hash">Password</label>
<div class="controls">
<input type="password" class="input" name="hash">
</div>
</div>
</fieldset>
</form>
</div>
<div class="modal-footer">
<button class="btn btn-success" id="login_button" data-toggle="button" data-loading-text="Authenticating...">Log in</button>
<a id="email-anchor" title="How to get your password reset" href="#">Forgot password?</a>
</div>
</div>
<!-- Reset password modal -->
<div class="modal hide" id="resetPW">
<div class="modal-header">
<a class="close" data-dismiss="modal">x</a>
<h3>Reset password</h3>
</div>
<div class="modal-body">
<form id="reset-pw-form" class="form-horizontal" style="margin-bottom: 0px;">
<fieldset>
<div class="control-group">
<label class="control-label" for="email">Email address</label>
<div class="controls">
<input type="text" class="input" id="reset-email" name="email">
</div>
</div>
</fieldset>
</form>
</div>
<div class="modal-footer">
<button class="btn btn-success" id="reset_button" data-toggle="button" data-loading-text="Submitting...">Send</button>
</div>
<div class="alert alert-success hide" id="reset_message">Reset request submitted. Check you email!</div>
</div>
<!-- Sign up modal -->
<div class="modal hide" id="signUp">
<div class="modal-header">
<a class="close" data-dismiss="modal">x</a>
<h3>Sign up as new user</h3>
</div>
<div class="modal-body">
<form id="sign-up-form" class="form-horizontal" style="margin-bottom: 0px;">
<fieldset>
<div class="control-group">
<label class="control-label" for="name">Your name</label>
<div class="controls">
<input id="signup-name" type="text" class="input" name="name" required="required" minlength="6" placeholder="Firstname Lastname">
</div>
</div>
<div class="control-group">
<label class="control-label" for="username">Your username</label>
<div class="controls">
<input id="signup-username" type="text" class="input " name="username" required="required" placeholder="flastname">
</div>
</div>
<div class="control-group">
<label class="control-label" for="email">Your email</label>
<div class="controls">
<input id="signup-email" type="email" class="input" name="email" required="required">
</div>
</div>
<div class="control-group">
<label class="control-label" for="password">Pick a password</label>
<div class="controls">
<input id="signup-password" type="password" class="input" name="password" required="required" minlength="8">
</div>
</div>
<div class="form-actions" style="margin-bottom: 0px;">
<button class="btn btn-success" id="signup_button" data-toggle="button" data-loading-text="Transmitting...">Sign up</button>
</div>
</fieldset>
</form>
<div class="alert alert-success hide" id="signup_message"></div>
</div>
</div>
<div id="push"></div>
</div>
<div id="foot">
<div class="container" style="text-align:right">
<div class="breadcrumb muted" style="margin: 24px 0 0 0;">Created by Peter Melchior, Erin Sheldon, Alex Drlica-Wagner</div>
</div>
</div>
</body>
<script type="text/javascript" src="assets/sha1.js"></script>
<script type="text/javascript" src="assets/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="assets/jquery.cookie.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js" charset="utf-8"></script>
<script type="text/javascript" src="assets/jwerty.js"></script>
<script type="text/javascript" src="assets/login.js"></script>
<script type="text/javascript" src="assets/common.js"></script>
<script type="text/javascript" src="assets/bootstrap/js/bootstrap.min.js"></script>
<script>
$(document).ready(function () {
// set up release
setRelease($.cookie('default-release'));
$.get('ranking.php', {'release': release, 'limit': 15, },
function(response) {
var html = "<table class='table table-condensed table-striped'>";
var total = null, counter = 1, width_flagged, width_total;
for (var i=0; i < response.length; i++) {
if (total == null)
total = response[i]['total_files'];
width_flagged = (100*response[i]['flagged_files']/total) + "%";
width_total = (100*(response[i]['total_files']-response[i]['flagged_files'])/total) + "%";
html += "<tr><td># "+ counter +"</td><td><span class='namecol'>" + response[i]['username'] + "</span></td>";
html += "<td><div class='ratingcol'><span class='ratingbar bad' style='width:" + width_flagged +"'></span>";
html += "<span class='ratingbar good' style='left:" + width_flagged +"; width:" + width_total +"'></span></div></td>";
html += "<td>" + response[i]['total_files'] + "</td></tr>";
counter++ ;
}
html += "</tbody></table>";
$('#leaderboard').html(html);
}, 'json');
if (checkSessionCookie()) {
$('#getin-buttons').show();
$('#login-buttons').hide();
}
else {
$('#logIn').modal({"show": false });
$('#signUp').modal({"show": false });
$('#resetPW').modal({"show": false });
$('#login_button').on('click', logIn).button();
$('#signup_button').on('click', signUp).button();
$('#reset_button').on('click', resetPW).button();
$('#open-login-button').on('click', function(evt) {
$('#logIn').modal('show');
$('#username').focus();
evt.preventDefault();
});
$('#open-signup-button').on('click', function(evt) {
$('#signUp').modal('show');
$('#signup-name').focus();
evt.preventDefault();
});
$('#email-anchor').on('click', function(evt) {
$('#logIn').modal('hide');
$('#resetPW').modal('show');
$('#reset-email').focus();
});
$('#signup-name').on('input', function(evt) {
var name = $(evt.target).val();
if (name.length) {
var chunks = name.split(" ");
name = chunks[0][0].toLowerCase();
if (chunks.length > 1)
name += chunks[1].toLowerCase();
$('#signup-username').val(name);
} else {
$('#signup-username').val('');
}
});
}
var width=200;
d3.json("stats.php?release=" + release + "&total&today", function(error, response) {
// checked chart: simply show the numbers as text
var svg = d3.select("#basic_stats").append("svg")
.attr("width", width)
.attr("height", 190);
var g = svg.selectAll(".arc")
.data([response.total])
.enter().append("g");
g.append("text")
.attr("transform", "translate(" + width/2 + ", 0)")
.style("text-anchor", "middle")
.attr("dy", "63px")
.style("fill", "#333333")
.style("font-size", "60px")
.style("font-weight", "bold")
.text(function(d) { return d.toString(); });
g.append("text")
.attr("transform", "translate(" + width/2 + ", 0)")
.style("text-anchor", "middle")
.attr("dy", "91px")
.style("fill", "#333333")
.style("font-size", "18px")
.style("font-weight", "200")
.text("images checked");
var g = svg.selectAll(".arc")
.data([response.today])
.enter().append("g");
g.append("text")
.attr("transform", "translate(" + width/2 + ", 0)")
.style("text-anchor", "middle")
.attr("dy", "156px")
.style("fill", "#46a546")
.style("font-size", "60px")
.style("font-weight", "bold")
.text(function(d) { return d.toString(); });
g.append("text")
.attr("transform", "translate(" + width/2 + ", 0)")
.style("text-anchor", "middle")
.attr("dy", "184px")
.style("font-size", "18px")
.style("font-weight", "200")
.style("fill", "#46a546")
.text("today");
});
});
// connect Enter in logIn and signUp modal
$('#logIn').bind('keydown', jwerty.event('Enter', function () { $('#login_button').trigger('click'); }));
$('#signUp').bind('keydown', jwerty.event('Enter', function () { $('#signup_button').trigger('click'); }));
</script>
</html>