mirror of
https://github.com/cds-astro/aladin-lite.git
synced 2026-01-14 05:57:51 -08:00
55 lines
1.4 KiB
HTML
55 lines
1.4 KiB
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
|
|
<link rel="stylesheet" href="../distrib/latest/aladin.min.css" />
|
|
|
|
|
|
</head>
|
|
<body>
|
|
|
|
<script src="http://code.jquery.com/jquery-1.12.1.min.js"></script>
|
|
|
|
|
|
<div id="aladin-lite-div" style="width: 500px; height: 400px"></div>
|
|
<div id='aladin-statsDiv'></div>
|
|
|
|
<button id="start">Start</button>
|
|
|
|
<script type="text/javascript" src="../distrib/latest/aladin.js" charset="utf-8"></script>
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
// Start up Aladin Lite
|
|
var aladin = A.aladin('#aladin-lite-div', {fov: 160, cooFrame: 'galactic', showReticle: false});
|
|
aladin.gotoRaDec( 357.268, +62.728 );
|
|
var zoom2 = function() {
|
|
setTimeout(function() {
|
|
aladin.zoomToFoV(3, 8, zoom3);
|
|
}, 700);
|
|
};
|
|
var zoom3 = function() {
|
|
setTimeout(function() {
|
|
aladin.zoomToFoV(0.05, 8);
|
|
}, 1000);
|
|
};
|
|
aladin.setImageSurvey(aladin.createImageSurvey('panstarrs-rgb-z-zg-g', 'panstarrs-rgb-z-zg-g',
|
|
'http://alasky.u-strasbg.fr/Pan-STARRS/DR1/test-color/', 'equatorial', 11, {imgFormat: 'jpg'}));
|
|
|
|
$('#start').click(function() {
|
|
aladin.toggleFullscreen(true);
|
|
setTimeout(function() {
|
|
aladin.animateToRaDec(277.6066, -15.32887, 9);
|
|
//aladin.animateToRaDec( 293.6190152, +21.2384699 , 6);
|
|
aladin.zoomToFoV(60, 9, zoom2);
|
|
}, 10000);
|
|
});
|
|
|
|
|
|
|
|
|
|
</script>
|
|
</body>
|
|
</html>
|