-
Notifications
You must be signed in to change notification settings - Fork 7
/
orbit.html
87 lines (77 loc) · 2.76 KB
/
orbit.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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- If this is run as a php script on a server, you can include your own header that includes a navigation bar, and other stylistic features -->
<script language="php"> include "./.inc/header.php"; if (false){ </script>
<!-- ** start server side header ** -->
<head profile="http://www.w3.org/2005/10/profile">
<link rel="icon" type="image/ico" href="favicon.ico" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/><meta name="description" content="description"/>
<title>Open Exoplanet Catalogue</title>
<link rel="stylesheet" type="text/css" href="./css/style.css" media="screen" />
<link rel="stylesheet" type="text/css" href="./css/tables.css" media="screen" />
<link rel="stylesheet" type="text/css" href="./css/dragdealer.css" media="screen" />
<script type="text/javascript" src="./js/d3.v3.min.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/jquery.min.js"></script>
<script type="text/javascript" src="./js/dragdealer.js"></script>
<script type="text/javascript" src="./js/oec_orbit.js"></script>
</head>
<body>
<div class="outer-container">
<div class="inner-container">
<div class="content">
<!-- ** end server side header ** -->
<script language="php"> } </script>
<!-- ########################### -->
<!-- ########################### -->
<div id="viz"></div>
<div id="sliderbox">
<div id="speed-slider" class="dragdealer">
<div class="red-bar handle">speed</div>
</div>
<div id="zoom-slider" class="dragdealer">
<div class="red-bar handle">zoom</div>
</div>
</div>
<style>
#viz, .infobox {
font-family: sans-serif;
}
#viz text {
font-family: sans-serif;
font-size: 12px;
}
</style>
<script type="text/javascript">
function saveaspng(){
d3.select("body").append("canvas")
.attr("width",width)
.attr("height",height)
.attr("id","canvas")
.style("display","none")
;
canvg('canvas', $("#viz").html());
window.location = document.getElementById("canvas").toDataURL("image/png");
}
$(document).ready(function(){
$.ajax({
type: "GET",
url: "gj876.xml",
dataType: "xml",
success: setupOrbitPlot
});
});
</script>
<div class="spacer" style="clear:left"></div>
<input type="button" onclick="saveaspng()" value="Save plot as png file" />
<script language="php"> include "./.inc/footer.php"; if (false){ </script>
<!-- ** start server side header ** -->
</div> <!-- content -->
<div class="clearer"> </div>
</div> <!-- inner container -->
</div> <!-- outer container -->
</body>
</html>
<!-- ** end server side header ** -->
<script language="php"> } </script>