-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathanalyze.html
408 lines (388 loc) · 20.4 KB
/
analyze.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
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
<head>
<meta charset="utf-8">
<title>QuAnTiMoDo - Perfect your life!</title>
<meta name="viewport" content="width=device-width">
<meta name="description" content="">
<!-- Styles -->
<link href='https://fonts.googleapis.com/css?family=Cabin:700' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Raleway:700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="static/css/bootstrap-2.0.3.min.css">
<link rel="stylesheet" href="css/normalize.css">
<link href="css/jquery-ui/jquery-ui-1.10.1.custom.min.css" rel="stylesheet">
<link href="css/jquery.selectbox.css" rel="stylesheet">
<link type="text/css" href="css/scrollpane/jquery.jscrollpane.css" rel="stylesheet" media="all" />
<link type="text/css" rel="stylesheet" href="css/qtip/jquery.qtip.min.css" />
<link href="css/variables_management.css" rel="stylesheet">
<link rel="stylesheet" href="css/site.css">
<link rel="stylesheet" href="css/welcome.css">
<!-- fav icons -->
<link rel="shortcut icon" href="imgs/favicon.png">
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-39222734-24']);
_gaq.push(['_setDomainName', 'quantimodo.com']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body class="analysis">
<!--[if lt IE 7]>
<p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
<![endif]-->
<div class="main-container">
<header>
<div class="header-inner analysis clearfix">
<a id="logo" class="ir" href="/">Quantimodo Home</a>
<nav id="analysisnav">
<ul>
<li>
<a href="javascript:App.upload()">Upload Data</a>
</li>
<li class="nav-divider"></li>
<li>
<a href="javascript:App.manageConnectors()">Manage Data</a>
</li>
<li class="nav-divider"></li>
<li>
<a href="javascript:App.connectors()">Link Accounts</a>
</li>
<li class="nav-divider"></li>
<li>
<a href="http://quantimodo.com/blog/identifying-correlations/">Blog</a>
</li>
</ul>
</nav>
<div class="user-info">
<span class="profile-pic">
</span>
<span class="user-name">Username</span>
<a style="display: none;" class="settings-btn" href="#">settings</a>
<a class="logoff-btn" href="/logout">logoff</a>
</div>
</div>
</header>
<section id="experiment" class="clearfix">
<!-- <a class="exp-title" href="#">
<div class="btn"></div>
experiment title
</a>
<a class="intake-energy" href="#">
Effect of Protein Intake on Energy
</a> -->
<div class="select-date">
<input type="text" class="date-from" name="date-from" placeholder="Starting Date" >
<label for="date-to">-</label>
<input type="text" class="date-to" name="date-to" placeholder="Ending Date" >
</div>
<div class="select-duration">
<input type="hidden" id="duration" value="daily">
<ul class="clearfix">
<li><a href="#" grouping="0">Minutely</a></li>
<li class="nav-divider"></li>
<li><a href="#" grouping="1">Hourly</a></li>
<li class="nav-divider"></li>
<li><a href="#" class="active" grouping="2">Daily</a></li>
<li class="nav-divider"></li>
<li><a href="#" grouping="3">Weekly</a></li>
<li class="nav-divider"></li>
<li><a href="#" grouping="4">Monthly</a></li>
</ul>
</div>
</section>
<section id="behaviour" class="clearfix">
<div class="colm input_variables">
<div class="inner-col">
<h4><a class="dwnld edit-bvr edit-links" href="javascript:App.variables.editCategory($('#input_categories_select'),$('#input_vars_select'),'input')">Edit Input Category</a></h4>
<a style="display: none" href="javascript:App.variables.addCategory($('#input_categories_select'),$('#input_vars_select'),'input')" class="plus-button"></a>
<div class="info-tooltip orange" id="help-tip1"></div>
<div class="details-bottom">
<div class="custom-select">
<select id="input_categories_select"></select>
</div>
</div>
</div>
<div class="filler"></div>
<div class="inner-col second">
<a class="edit-var edit-links" href="javascript:App.variables.edit($('#input_categories_select'),$('#input_vars_select'),'input')">Edit Variable Options</a>
<a href="javascript:App.variables.add($('#input_categories_select'),$('#input_vars_select'),'input')" class="plus-button"></a>
<div class="info-tooltip orange" id="help-tip2"></div>
<div class="details-bottom">
<div class="custom-select">
<select id="input_vars_select"></select>
</div>
</div>
</div>
</div>
<div class="colm second output_variables">
<div class="inner-col">
<h4><a class="upld edit-bvr edit-links" href="javascript:App.variables.editCategory($('#output_categories_select'),$('#output_vars_select'),'output')">Edit Output Category</a></h4>
<a style="display: none" href="javascript:App.variables.addCategory($('#output_categories_select'),$('#output_vars_select'),'output')" class="plus-button"></a>
<div class="info-tooltip blue" id="help-tip3"></div>
<div class="details-bottom">
<div class="custom-select">
<select id="output_categories_select"></select>
</div>
</div>
</div>
<div class="filler"></div>
<div class="inner-col second">
<a class="edit-var-output edit-links" href="javascript:App.variables.edit($('#output_categories_select'),$('#output_vars_select'),'output')">Edit Variable Options</a>
<a href="javascript:App.variables.add($('#output_categories_select'),$('#output_vars_select'),'output')" class="plus-button"></a>
<div class="info-tooltip blue" id="help-tip4"></div>
<div class="details-bottom">
<div class="custom-select">
<select id="output_vars_select"></select>
</div>
</div>
</div>
</div>
</section>
<section id="correlations" class="graph-item">
<div class="bar-outer"></div>
<div class="titleBox">Correlation Scatterplot</div>
<div class="graph-inner">
<div id="additional_controls" style="display:none;">
<div id="graph_behaviour">
<input type="radio" name="graph_behaviour" id="show_original"> Show orginal</input>
<input type="radio" name="graph_behaviour" id="show_zeroes"> Fill up by zeroes</input>
<input type="radio" name="graph_behaviour" id="show_avg"> Fill up by AVG</input>
<input type="radio" name="graph_behaviour" id="show_interpolation"> Interpolate</input>
</div>
<div id="time_shift-old">
<button style="display:inline;" class="btn" id="shift-backward-old">←</button>
<label style="display:inline;">Time shifted for </label>
<label style="display:inline;" id="shifter_time_value-old">0</label>
<button style="display:inline;" class="btn" id="shift-forward-old">→</button>
</div>
</div>
<div class="watermark"></div>
<div class="statistical-relationship-gauge">
<h4>Statistical Relationship = Significant</h4>
<div class="pointer">
<canvas id="pointer" width="70" height="70">
<p>Your browser doesn't support canvas.</p>
</canvas>
</div>
</div>
<div id="scatterplot"></div>
<a class="feedback-btn" href="javascript:App.feedback()">How can we make Quantimodo better?</a>
<div class="main-social-sharing" class="clearfix">
<div class="social-inner">
<a onclick="return !window.open(this.href, 'Facebook', 'width=640,height=300')" target="_parent" class="mss-fbBtn image-replacement" href="http://www.facebook.com/sharer/sharer.php?s=100&p[url]=http://quantimodo.com/analyze&p[title]=Help us eradicate mental illness at QuAnTiMoDo.CoM!&p[summary]=Help us eradicate mental illness at QuAnTiMoDo.CoM!&p[images][0]=http://quantimodo.com/blog/wp-content/uploads/2013/01/quantiomod128x128.png">Facebook</a>
<a onclick="return !window.open(this.href, 'Google+', 'width=640,height=300')" target="_parent" class="mss-gBtn image-replacement" href="https://plus.google.com/share?url=http://quantimodo.com/analyze">Google</a>
<a onclick="return !window.open(this.href, 'Twitter', 'width=640,height=260')" target="_parent" class="mss-tBtn image-replacement" href="https://twitter.com/intent/tweet?url=http://quantimodo.com/analyze&text=Help us eradicate mental illness at QuAnTiMoDo.CoM!&via=quantimodo.com">Twitter</a>
<a class="mss-eBtn image-replacement" href="email">Email</a>
<a class="mss-moreBtn image-replacement" href="twitter">More</a>
</div>
</div>
</div>
<div id="time_shift">
<button style="display:inline;" class="btn" id="shift-backward">←</button>
<label style="display:inline;">Time shifted for </label>
<label style="display:inline;" id="shifter_time_value">0</label>
<button style="display:inline;" class="btn" id="shift-forward">→</button>
</div>
</section>
<section id="timeline" class="graph-item">
<div class="bar-outer">
</div>
<div class="graph-inner">
<div class="watermark"></div>
<div id="timelinechart"></div>
<a class="beta-btn" href="javascript:location.href='/mockup/data/tony.php?uid=' + userId">Try Our New Experimental Features</a>
<div class="main-social-sharing" class="clearfix">
<div class="social-inner">
<a onclick="return !window.open(this.href, 'Facebook', 'width=640,height=300')" target="_parent" class="mss-fbBtn image-replacement" href="http://www.facebook.com/sharer/sharer.php?s=100&p[url]=http://quantimodo.com/analyze&p[title]=Help us eradicate mental illness at QuAnTiMoDo.CoM!&p[summary]=Help us eradicate mental illness at QuAnTiMoDo.CoM!&p[images][0]=http://quantimodo.com/blog/wp-content/uploads/2013/01/quantiomod128x128.png">Facebook</a>
<a onclick="return !window.open(this.href, 'Google+', 'width=640,height=300')" target="_parent" class="mss-gBtn image-replacement" href="https://plus.google.com/share?url=http://quantimodo.com/analyze">Google</a>
<a onclick="return !window.open(this.href, 'Twitter', 'width=640,height=260')" target="_parent" class="mss-tBtn image-replacement" href="https://twitter.com/intent/tweet?url=http://quantimodo.com/analyze&text=Help us eradicate mental illness at QuAnTiMoDo.CoM!&via=quantimodo.com">Twitter</a>
<a class="mss-eBtn image-replacement" href="email">Email</a>
<a class="mss-moreBtn image-replacement" href="twitter">More</a>
</div>
</div>
</div>
</section>
<section id="notes" style="display:none;">
<div class="line-v"></div>
<div class="line-h"></div>
<a class="share-btn" href="#">Share this</a>
<a class="goto-top" href="#">Go to top</a>
<div class="notes-inner">
<div class="notes-header clearfix">
<div class="notes-title">
<div class="notes-icon"></div>
Notes
</div>
<a class="add-note" href="#">
Create new annotation
<div class="icon-add-note"></div>
</a>
</div>
<div class="notes-bottom scroll-pane">
<div class="notes-data clearfix">
<div class="date-posted">
<h3>27 May 2013</h3>
</div>
<div class="post-details">
<p>Lorem Ipsum is simply dummy text of the printing</p>
</div>
<a class="edit-note" href="#">edit note</a>
</div>
<div class="notes-data clearfix">
<div class="date-posted">
<h3>27 May 2013</h3>
</div>
<div class="post-details">
<p>Lorem Ipsum is simply dummy text of the printing</p>
</div>
<a class="edit-note" href="#">edit note</a>
</div>
<div class="notes-data clearfix">
<div class="date-posted">
<h3>27 May 2013</h3>
</div>
<div class="post-details">
<p>Lorem Ipsum is simply dummy text of the printing</p>
</div>
<a class="edit-note" href="#">edit note</a>
</div>
<div class="notes-data clearfix">
<div class="date-posted">
<h3>27 May 2013</h3>
</div>
<div class="post-details">
<p>Lorem Ipsum is simply dummy text of the printing</p>
</div>
<a class="edit-note" href="#">edit note</a>
</div>
<div class="notes-data clearfix">
<div class="date-posted">
<h3>27 May 2013</h3>
</div>
<div class="post-details">
<p>Lorem Ipsum is simply dummy text of the printing</p>
</div>
<a class="edit-note" href="#">edit note</a>
</div>
<div class="notes-data clearfix">
<div class="date-posted">
<h3>27 May 2013</h3>
</div>
<div class="post-details">
<p>Lorem Ipsum is simply dummy text of the printing</p>
</div>
<a class="edit-note" href="#">edit note</a>
</div>
<div class="notes-data clearfix">
<div class="date-posted">
<h3>27 May 2013</h3>
</div>
<div class="post-details">
<p>Lorem Ipsum is simply dummy text of the printing</p>
</div>
<a class="edit-note" href="#">edit note</a>
</div>
</div>
</div>
</section>
<div style="padding-bottom:35px;"></div>
</div>
<footer>
<div class="social-sharing">
<a onclick="return !window.open(this.href, 'Google+', 'width=640,height=300')" target="_parent" class="ss-googlep image-replacement" href="https://plus.google.com/share?url=http://quantimodo.com/analyze">Google</a>
<a onclick="return !window.open(this.href, 'Facebook', 'width=640,height=300')" target="_parent" class="ss-facebook image-replacement" href="http://www.facebook.com/sharer/sharer.php?s=100&p[url]=http://quantimodo.com/analyze&p[title]=Help us eradicate mental illness at QuAnTiMoDo.CoM!&p[summary]=Help us eradicate mental illness at QuAnTiMoDo.CoM!&p[images][0]=http://quantimodo.com/blog/wp-content/uploads/2013/01/quantiomod128x128.png">Facebook</a>
<a onclick="return !window.open(this.href, 'Twitter', 'width=640,height=260')" target="_parent" class="ss-twitter image-replacement" href="https://twitter.com/intent/tweet?url=http://quantimodo.com/analyze&text=Help us eradicate mental illness at QuAnTiMoDo.CoM!&via=quantimodo.com">Twitter</a>
<!--a href="https://plus.google.com/communities/100581500031158281444" class="ss-googlep image-replacement" target="_blank">Google Plus</a>
<a href="https://www.facebook.com/Quantimodology" class="ss-facebook image-replacement" target="_blank">Facebook</a>
<a href="https://twitter.com/QuantimodoApp" class="ss-twitter image-replacement" target="_blank">Twitter</a-->
</div>
<div class="rainbow-footer image-replacement">The Rainbow of Happiness</div>
<div class="buttons">
<a href="http://quantimodo.com/blog/terms-of-service" title="Terms of service" target=_blank class="terms">Terms of service</a>
</div>
<div class="cityscape image-replacement">The City of Data</div>
</footer>
<script src="static/js/jquery-1.8.3.min.js"></script>
<script src="static/js/bootstrap-2.0.2.min.js"></script>
<script type="text/javascript" src="static/js/jquery.qtip.min.js"></script>
<script type="text/javascript" src="static/js/jquery.selectbox-0.2.min.js"></script>
<script type="text/javascript" src="js/analysis.js"></script>
<script src="static/js/jquery-ui-1.10.2.custom.min.js"></script>
<script type="text/javascript" src="static/js/jquery.mousewheel.js"></script>
<script type="text/javascript" src="static/js/jquery.jscrollpane.min.js"></script>
<script src="static/js//highcharts/highcharts.js"></script>
<script src="static/js//highcharts/modules/exporting.js"></script>
<script src="static/js//jquery.jstepper.min.js"></script>
<script src="static/js/hogan-2.0.0.js"></script>
<script src="static/js/underscore-1.3.3-min.js"></script>
<script src="static/js/backbone-0.9.2-min.js"></script>
<script data-main="js/main.js" src="static/js/require-1.0.3.js"></script>
<script src="js/math_utils.js"></script>
<script type="text/javascript" src="js/base64.js"></script>
<script type="text/javascript" src="js/rgbcolor.js"></script>
<script type="text/javascript" src="js/canvg.js"></script>
<script type="text/javascript" src="js/svg_todataurl.js"></script>
<script type="text/javascript" src"js/jquery.base64.js"></script>
<script type="text/javascript">
$('html').ajaxStart(function() {
$(this).addClass('wait').bind('click', function() {
return false;
});
$("body").append("<div class='overlay'/>");
}).ajaxStop(function() {
$(this).removeClass('wait').unbind('click');
$(".overlay").remove();
});
</script>
<script type="text/javascript">
$(function() {
/*
* TODO the following is a dirty hack. should use requirejs to display the dialog on App being loaded.
*/
$.ajax("/api/v1/connectors/list",{
success: function(data, textStatus, jqXHR){
/*
* show it when the user two or less connectors
*/
if (data.length <= 2) {
/*
* no connectors added yet - auto popup add connectors dialog
*/
console.log("no connectors added yet - auto popup add connectors dialog");
//App.connectors();
popupAddConnectorsDialog();
}
}
});
});
function popupAddConnectorsDialog() {
console.log("trying to load the dialog");
if (typeof App == "undefined") {
setTimeout("popupAddConnectorsDialog()", 500);
} else {
App.connectors();
}
}
//function share_button(social,graph) {
// if (graph == '1'){
// jQuery("#highcharts-0 svg:first").attr("id","123oo0123");
// var svg = document.getElementById("123oo0123");
// }else{
// jQuery("#highcharts-5 svg:first").attr("id","123oo01234");
// var svg = document.getElementById("123oo01234");
// }
//
// jQuery.post('/mockup/data/picasa.php',{uploaded_file: svg.toDataURL("image/png"), contentType: "application/x-www-form-urlencoded;charset=UTF-8"},function(d
// if (social == 'facebook')
// window.open('http://www.facebook.com/sharer/sharer.php?s=100&p[url]=http://quantimodo.com/analyze&p[title]=Help us eradicate mental illness at QuAnTiM
// if (social == 'googlep')
// window.open(imgurl, 'Google+', 'width=640,height=300');
//// window.open('https://plus.google.com/share?url=http://quantimodo.com/analyze' + imgurl, 'Google+', 'width=640,height=300');
//
//});
//}
</script>
</body>