-
Notifications
You must be signed in to change notification settings - Fork 0
/
gpdf-fitsviewer.html
100 lines (79 loc) · 3.2 KB
/
gpdf-fitsviewer.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
<!doctype html>
<html>
<head>
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="0">
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
<meta name='gwt:module' content='edu.caltech.ipac.fftools.FFToolsDebug.gwt.xml'>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" />
<title>Test Fits Viewer</title>
</head>
<body>
<!-- -->
<!-- The body can have arbitrary html, or -->
<!-- you can leave the body empty if you want -->
<!-- to create a completely dynamic ui -->
<!-- -->
<!--<body>-->
<!--add loading indicator while the app is being loaded-->
<div>
This is a test.
<ul>
<li>item 1</li>
<li>item 2</li>
<li>item 3</li>
<li>item 4</li>
</ul>
More text here...
</div>
<div id="fv1" style="width: 200px; height: 200px; padding: 10px 5px 5px 5px;"></div>
<div id="fv2" style="width: 500px; height: 500px; padding: 10px 5px 5px 5px;"></div>
<script type="text/javascript">
{
onFireflyLoaded= function() {
//alert("runNow");
var data= { "Type" : "SERVICE",
"Service" : "SDSS",
"UserDesc" : "Test SDSS",
"Title" : "Test Plot SDSS",
"ZoomType" : "STANDARD",
"InitZoomLevel" : "1",
"SurveyKey" : "g",
"WorldPt" : "195.1;2.5;EQ_J2000",
"SizeInDeg" : ".1",
"PlotToDiv" : "fv1",
"AllowImageSelection" : "true"
};
firefly.plotGroupedImage(data, "group1");
var data2= { "Type" : "URL",
"URL" : "http://web.ipac.caltech.edu/staff/roby/demo/2mass-m31-green.fits",
"Title" : "FITS from a URL",
"ZoomType" : "TO_WIDTH",
"ZoomToWidth" : "500",
"PlotToDiv" : "fv2"
};
firefly.plotGroupedImage(data2, "group1");
}
}
</script>
<script type="text/javascript">
function showPlot(reference) {
var data= { "Type" : "URL",
"URL" : reference,
"Title" : "Only popout",
"PlotToDiv" : "fv2"
};
firefly.plotAsExpanded(data);
}
</script>
<script type="text/javascript" language='javascript' src='http://localhost:8080/fftools/fftools.nocache.js'></script>
<!--
<a href='javascript:showPlot("http://localhost:8080/fftools/wise-m31-level1-3.fits")'>WISE level 1 m31</a>
<br>
<a href='javascript:showPlot("http://localhost:8080/fftools/ptf-m31-test-file.fits")'>PTF m31</a>
-->
<!-- OPTIONAL: include this if you want history support -->
</body>
</html>