-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathevolve.html
84 lines (65 loc) · 3.42 KB
/
evolve.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
Remove this if you use the .htaccess -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>evolve</title>
<meta name="description" content="" />
<meta name="author" content="Helena" />
<link rel="shortcut icon" href="/favicon.ico" />
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
<script src="jquery-1.7.2.min.js" type="text/javascript"></script>
<script src="array_prototype.js" type="text/javascript"></script>
<script src="RGraph/libraries/RGraph.common.core.js"></script>
<script src="RGraph/libraries/RGraph.common.annotate.js"></script> <!-- Just needed for annotating -->
<script src="RGraph/libraries/RGraph.common.context.js"></script> <!-- Just needed for context menus -->
<script src="RGraph/libraries/RGraph.common.effects.js"></script> <!-- Just needed for visual effects -->
<script src="RGraph/libraries/RGraph.common.key.js"></script> <!-- Just needed for keys -->
<script src="RGraph/libraries/RGraph.common.resizing.js"></script> <!-- Just needed for resizing -->
<script src="RGraph/libraries/RGraph.common.tooltips.js"></script> <!-- Just needed for tooltips -->
<script src="RGraph/libraries/RGraph.common.zoom.js"></script> <!-- Just needed for zoom -->
<script src="RGraph/libraries/RGraph.radar.js"></script> <!-- Just needed for Radar charts -->
<script src="RGraph/libraries/RGraph.common.dynamic.js"></script>
<script type="text/javascript" src="d3/d3.v2.js"></script>
<link type="text/css" rel="stylesheet" href="d3/force.css"/>
<script src="graph.js" type="text/javascript"></script>
<script src="evolve.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
//s3db.login = {'url':'http://204.232.200.16/s3db2/', 'key':'','project_id':''};
// s3db.login = {'url':'http://uab.s3db.org/s3db/', 'key':'mudamseostempos','project_id':'457'};
get();
s3db.login = {};
s3db.login.url = (typeof(GET.url)=='undefined')?'http://uab.s3db.org/s3db/':GET.url;
s3db.login.key = (typeof(GET.key)=='undefined')?'mudamseostempos':GET.key;
s3db.login.project_id = (typeof(GET.project_id)=='undefined')?'457':GET.project_id;
s3db.retrieveDataTrigger = 0;
//get data from localStorage, if there at all
if(typeof(localStorage.evolve)!=='undefined'){
ev = JSON.parse(localStorage.evolve);
if(typeof(ev[s3db.login.url+"&key="+s3db.login.key+"&project_id="+s3db.login.project_id])!=='undefined'){
//var stored = JSON.parse(store[s3db.login.url+"&key="+s3db.login.key+"&project_id="+s3db.login.project_id]);
s3db = JSON.parse(ev[s3db.login.url+"&key="+s3db.login.key+"&project_id="+s3db.login.project_id].s3db);
data = JSON.parse(ev[s3db.login.url+"&key="+s3db.login.key+"&project_id="+s3db.login.project_id].data);
console.log('stored!')
graph.buildRadial();
graph.AssembleTopologyJson();
}
else {
s3db.getData();
}
}
else {
s3db.getData();
}
});
</script>
</head>
<body>
<canvas id="radar1" width="1200" height="500">[No canvas support]</canvas>
<div id="day_buttons" width="1200" height="500"></div>
<div id="chart" width="1200" height="500"></div>
</body>
</html>