mirror of
https://github.com/cds-astro/aladin-lite.git
synced 2026-01-10 20:26:00 -08:00
38 lines
861 B
HTML
38 lines
861 B
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>
|
|
<button id="select">Select</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', {target: 'M51', fov: 0.3, survey: 'P/DSS2/red'});
|
|
aladin.addCatalog(A.catalogFromSimbad('M51', 0.4, {'color': 'yellow', name: 'Simbad M51', onClick: 'showTable'}));
|
|
|
|
|
|
aladin.on('select', function(selection) {console.log(selection);});
|
|
|
|
$('#select').click(function() {
|
|
aladin.select();
|
|
});
|
|
|
|
|
|
|
|
</script>
|
|
</body>
|
|
</html>
|
|
|