mirror of
https://github.com/cds-astro/aladin-lite.git
synced 2025-12-12 07:40:26 -08:00
This commit is contained in:
BIN
assets/new-aladin-logo.png
Normal file
BIN
assets/new-aladin-logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.2 KiB |
31
bug-tracking/test-aitoff.html
Normal file
31
bug-tracking/test-aitoff.html
Normal file
@@ -0,0 +1,31 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
|
||||
<link rel="stylesheet" href="../distrib/latest/aladin.min.css" />
|
||||
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
|
||||
|
||||
|
||||
<div id="aladin-lite-div" style="width: 500px; height: 400px"></div>
|
||||
<div id='aladin-statsDiv'></div>
|
||||
<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');
|
||||
aladin.setFoV(90.0);
|
||||
aladin.setProjection("aitoff");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
38
bug-tracking/test-fix-deformations-INTEGRAL.html
Normal file
38
bug-tracking/test-fix-deformations-INTEGRAL.html
Normal file
@@ -0,0 +1,38 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
|
||||
<link rel="stylesheet" href="../distrib/latest/aladin.min.css" />
|
||||
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
|
||||
|
||||
|
||||
<div id="aladin-lite-div" style="width: 500px; height: 400px"></div>
|
||||
<div id='aladin-statsDiv'></div>
|
||||
<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');
|
||||
aladin.setImageSurvey(aladin.createImageSurvey('INTEGRAL-color', 'INTEGRAL-color', 'http://skies.esac.esa.int/Integral/color/', 'equatorial', 5, {imgFormat: 'jpg'}));
|
||||
aladin.gotoObject('Cyg X-3');
|
||||
aladin.setFoV(3);
|
||||
|
||||
|
||||
/*
|
||||
aladin.setImageSurvey(aladin.createImageSurvey("AKARI-FIS-color", "AKARI-FIS-color", 'http://skies.esac.esa.int/AKARI/color/', 'galactic', 7));
|
||||
aladin.gotoObject('M 51');
|
||||
aladin.setFoV(0.15);
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
38
bug-tracking/test-fix-deformations-INTEGRAL_temoin.html
Normal file
38
bug-tracking/test-fix-deformations-INTEGRAL_temoin.html
Normal file
@@ -0,0 +1,38 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
|
||||
<link rel="stylesheet" href="../distrib/latest/aladin.min.css" />
|
||||
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
|
||||
|
||||
|
||||
<div id="aladin-lite-div" style="width: 500px; height: 400px"></div>
|
||||
<div id='aladin-statsDiv'></div>
|
||||
<script type="text/javascript" src="http://aladin.unistra.fr/AladinLite/api/v2/latest/aladin.js" charset="utf-8"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// Start up Aladin Lite
|
||||
var aladin = A.aladin('#aladin-lite-div');
|
||||
aladin.setImageSurvey(aladin.createImageSurvey('INTEGRAL-color', 'INTEGRAL-color', 'http://skies.esac.esa.int/Integral/color/', 'equatorial', 5, {imgFormat: 'jpg'}));
|
||||
aladin.gotoObject('Cyg X-3');
|
||||
aladin.setFoV(3);
|
||||
|
||||
|
||||
/*
|
||||
aladin.setImageSurvey(aladin.createImageSurvey("AKARI-FIS-color", "AKARI-FIS-color", 'http://skies.esac.esa.int/AKARI/color/', 'galactic', 7));
|
||||
aladin.gotoObject('M 51');
|
||||
aladin.setFoV(0.15);
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
37
bug-tracking/test-fix-deformations.html
Normal file
37
bug-tracking/test-fix-deformations.html
Normal file
@@ -0,0 +1,37 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
|
||||
<link rel="stylesheet" href="../distrib/latest/aladin.min.css" />
|
||||
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
|
||||
|
||||
|
||||
<div id="aladin-lite-div" style="width: 500px; height: 400px"></div>
|
||||
<div id='aladin-statsDiv'></div>
|
||||
<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');
|
||||
aladin.gotoObject('M 31');
|
||||
aladin.setFoV(3);
|
||||
|
||||
|
||||
/*
|
||||
aladin.setImageSurvey(aladin.createImageSurvey("AKARI-FIS-color", "AKARI-FIS-color", 'http://skies.esac.esa.int/AKARI/color/', 'galactic', 7));
|
||||
aladin.gotoObject('M 51');
|
||||
aladin.setFoV(0.15);
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
32
bug-tracking/test-fix-deformations2.html
Normal file
32
bug-tracking/test-fix-deformations2.html
Normal file
@@ -0,0 +1,32 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
|
||||
<link rel="stylesheet" href="../distrib/latest/aladin.min.css" />
|
||||
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
|
||||
|
||||
|
||||
<div id="aladin-lite-div" style="width: 500px; height: 400px"></div>
|
||||
<div id='aladin-statsDiv'></div>
|
||||
<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');
|
||||
|
||||
|
||||
|
||||
aladin.setImageSurvey(aladin.createImageSurvey('im3shape_y1_kappa', 'im3shape_y1_kappa', 'http://people.phys.ethz.ch/~ast/cosmo/true_map_filled_r50.fitsHiPS/', 'equatorial', 3, {imgFormat: 'png'}));
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
30
bug-tracking/test-fix-deformations3.html
Normal file
30
bug-tracking/test-fix-deformations3.html
Normal file
@@ -0,0 +1,30 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
|
||||
<link rel="stylesheet" href="../distrib/latest/aladin.min.css" />
|
||||
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
|
||||
|
||||
|
||||
<div id="aladin-lite-div" style="width: 500px; height: 400px"></div>
|
||||
<div id='aladin-statsDiv'></div>
|
||||
<script type="text/javascript" src="../distrib/latest/aladin.js" charset="utf-8"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
var aladin = A.aladin('#aladin-lite-div', {target: 'Gamma Cas', fov: 10});
|
||||
|
||||
var overlay = A.graphicOverlay({color: '#ee2345', lineWidth: 2});
|
||||
aladin.addOverlay(overlay);
|
||||
overlay.add(A.polyline([ [2.29452158, 59.14978110], [10.12683778, 56.53733116], [14.1772154, 60.7167403], [21.45396446, 60.23528403], [28.59885697, 63.67010079] ]));
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
37
bug-tracking/test-fix-deformations_temoin.html
Normal file
37
bug-tracking/test-fix-deformations_temoin.html
Normal file
@@ -0,0 +1,37 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
|
||||
<link rel="stylesheet" href="http://aladin.unistra.fr/AladinLite/api/v2/latest/aladin.min.css" />
|
||||
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
|
||||
|
||||
|
||||
<div id="aladin-lite-div" style="width: 500px; height: 400px"></div>
|
||||
<div id='aladin-statsDiv'></div>
|
||||
<script type="text/javascript" src="http://aladin.unistra.fr/AladinLite/api/v2/latest/aladin.js" charset="utf-8"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// Start up Aladin Lite
|
||||
var aladin = A.aladin('#aladin-lite-div');
|
||||
aladin.gotoObject('M 31');
|
||||
aladin.setFoV(3);
|
||||
|
||||
|
||||
/*
|
||||
aladin.setImageSurvey(aladin.createImageSurvey("AKARI-FIS-color", "AKARI-FIS-color", 'http://skies.esac.esa.int/AKARI/color/', 'galactic', 7));
|
||||
aladin.gotoObject('M 51');
|
||||
aladin.setFoV(0.15);
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -12,6 +12,7 @@
|
||||
|
||||
|
||||
<div id="aladin-lite-div" style="width: 500px; height: 400px"></div>
|
||||
<div id='aladin-statsDiv'></div>
|
||||
<script type="text/javascript" src="../distrib/latest/aladin.js" charset="utf-8"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
29
bug-tracking/test-load-FITS-error-callback.html
Normal file
29
bug-tracking/test-load-FITS-error-callback.html
Normal file
@@ -0,0 +1,29 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta name="description" content="Load FITS image in Aladin Lite">
|
||||
<meta charset="utf-8">
|
||||
<title>Load FITS image in Aladin Lite</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<link rel="stylesheet" href="../distrib/latest/aladin.min.css" />
|
||||
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
|
||||
|
||||
|
||||
<div id="aladin-lite-div" style="width:500px;height:500px;"></div>
|
||||
|
||||
<script type="text/javascript" src="../distrib/latest/aladin.js" charset="utf-8"></script>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var aladin = A.aladin('#aladin-lite-div');
|
||||
//aladin.displayFITS("http://cdsarc.u-strasbg.fr/NIMPORTEQUOI", null, function(ra, dec, fov) {alert('Image chargée :' + ra + ',' + dec + ',' + fov); return true;}, function(errorMsg) {alert('Ca a pas marché :( : ' + errorMsg);});
|
||||
aladin.displayFITS("http://cdsarc.u-strasbg.fr/saadavizier/download?oid=864973084468183124", null, function(ra, dec, fov) {alert('Image chargée :' + ra + ',' + dec + ',' + fov); return true;}, function(errorMsg) {alert('Ca a pas marché :( : ' + errorMsg);});
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
28
bug-tracking/test-load-FITS-success-callback.html
Normal file
28
bug-tracking/test-load-FITS-success-callback.html
Normal file
@@ -0,0 +1,28 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta name="description" content="Load FITS image in Aladin Lite">
|
||||
<meta charset="utf-8">
|
||||
<title>Load FITS image in Aladin Lite</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<link rel="stylesheet" href="../distrib/latest/aladin.min.css" />
|
||||
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
|
||||
|
||||
|
||||
<div id="aladin-lite-div" style="width:500px;height:500px;"></div>
|
||||
|
||||
<script type="text/javascript" src="../distrib/latest/aladin.js" charset="utf-8"></script>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var aladin = A.aladin('#aladin-lite-div');
|
||||
aladin.displayFITS("http://cdsarc.u-strasbg.fr/saadavizier/download?oid=864973080173215877", null, function(ra, dec, fov) {alert('Image chargée :' + ra + ',' + dec + ',' + fov); return true;});
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
30
bug-tracking/test-load-votable-give-pos-field-index.html
Normal file
30
bug-tracking/test-load-votable-give-pos-field-index.html
Normal file
@@ -0,0 +1,30 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
|
||||
<link rel="stylesheet" href="../distrib/latest/aladin.min.css" />
|
||||
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
|
||||
|
||||
|
||||
<div id="aladin-lite-div" style="width: 500px; height: 400px"></div>
|
||||
<script type="text/javascript" src="../distrib/latest/aladin.js" charset="utf-8"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
var aladin = A.aladin('#aladin-lite-div', {survey: 'P/DSS2/red', target: 'HD 217987', fov: 0.5});
|
||||
var url = 'http://vizier.u-strasbg.fr/viz-bin/votable?-c=HD+217987&-c.eq=J2000&-c.r=180&-c.u=arcmin&-c.geom=r&-source=I%2F239%2Fhip_main&-order=I&-out.add=_RAJ,_DEJ';
|
||||
var cat = A.catalogFromURL(url, {onClick: 'showTable', color: 'red', sourceSize: 10 });
|
||||
aladin.addCatalog(cat);
|
||||
|
||||
var cat2 = A.catalogFromURL(url, {onClick: 'showTable', color: 'blue', sourceSize: 10, raField: 9, decField: 10 });
|
||||
aladin.addCatalog(cat2);
|
||||
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
30
bug-tracking/test-load-votable-give-pos-field-name.html
Normal file
30
bug-tracking/test-load-votable-give-pos-field-name.html
Normal file
@@ -0,0 +1,30 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
|
||||
<link rel="stylesheet" href="../distrib/latest/aladin.min.css" />
|
||||
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
|
||||
|
||||
|
||||
<div id="aladin-lite-div" style="width: 500px; height: 400px"></div>
|
||||
<script type="text/javascript" src="../distrib/latest/aladin.js" charset="utf-8"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
var aladin = A.aladin('#aladin-lite-div', {survey: 'P/DSS2/red', target: 'HD 217987', fov: 0.5});
|
||||
var url = 'http://vizier.u-strasbg.fr/viz-bin/votable?-c=HD+217987&-c.eq=J2000&-c.r=180&-c.u=arcmin&-c.geom=r&-source=I%2F239%2Fhip_main&-order=I&-out.add=_RAJ,_DEJ';
|
||||
var cat = A.catalogFromURL(url, {onClick: 'showTable', color: 'red', sourceSize: 10 });
|
||||
aladin.addCatalog(cat);
|
||||
|
||||
var cat2 = A.catalogFromURL(url, {onClick: 'showTable', color: 'blue', sourceSize: 10, raField: 'RA(ICRS)', decField: 'DE(ICRS)' });
|
||||
aladin.addCatalog(cat2);
|
||||
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
27
bug-tracking/test-load-votable-noproxy.html
Normal file
27
bug-tracking/test-load-votable-noproxy.html
Normal file
@@ -0,0 +1,27 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
|
||||
<link rel="stylesheet" href="../distrib/latest/aladin.min.css" />
|
||||
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
|
||||
|
||||
|
||||
<div id="aladin-lite-div" style="width: 500px; height: 400px"></div>
|
||||
<script type="text/javascript" src="../distrib/latest/aladin.js" charset="utf-8"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
var aladin = A.aladin('#aladin-lite-div', {survey: 'P/DSS2/red', target: 'M51', fov: 0.3});
|
||||
var cat = A.catalogFromURL('http://0.0.0.0:42195/bug-tracking/data/allwise-m51.vot', {sourceSize:4, color: 'pink'}, null, false);
|
||||
aladin.addCatalog(cat);
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
30
bug-tracking/test-load-votable-skybot.html
Normal file
30
bug-tracking/test-load-votable-skybot.html
Normal file
@@ -0,0 +1,30 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
|
||||
<link rel="stylesheet" href="../distrib/latest/aladin.min.css" />
|
||||
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
|
||||
|
||||
|
||||
<div id="aladin-lite-div" style="width: 500px; height: 400px"></div>
|
||||
<script type="text/javascript" src="../distrib/latest/aladin.js" charset="utf-8"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
var aladin = A.aladin('#aladin-lite-div', {survey: 'P/DSS2/red', fov:
|
||||
5});
|
||||
var sb2 =
|
||||
A.catalogFromURL('http://vo.imcce.fr/webservices/skybot/skybotconesearch_query.php?-ep=now&-ra=0&-dec=0&-rs=300&-mime=votable&-output=obs&-loc=500&-filter=120&-objFilter=110&-from=SkybotDoc',
|
||||
{sourceSize:12, color: '#f08080', onClick: 'showTable'});
|
||||
aladin.addCatalog(sb2);
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
38
bug-tracking/test-reduce-deformations.html
Normal file
38
bug-tracking/test-reduce-deformations.html
Normal file
@@ -0,0 +1,38 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
|
||||
<link rel="stylesheet" href="../distrib/latest/aladin.min.css" />
|
||||
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
|
||||
|
||||
|
||||
<div id="aladin-lite-div" style="width: 650px; height: 450px"></div>
|
||||
<script type="text/javascript" src="../distrib/latest/aladin.js" charset="utf-8"></script>
|
||||
<label><input type="checkbox" id="reduce" checked>Activate deformations reduction algorithm</label>
|
||||
|
||||
<script type="text/javascript">
|
||||
// Start up Aladin Lite
|
||||
var aladin = A.aladin('#aladin-lite-div');
|
||||
aladin.setFoV(4);
|
||||
aladin.gotoObject('M31');
|
||||
|
||||
$('#reduce').on('change', function() {
|
||||
aladin.setReduceDeformations($(this).is(":checked"));
|
||||
});
|
||||
/*
|
||||
aladin.setImageSurvey(aladin.createImageSurvey("GLIMPSE", "GLIMPSE", "http://www.spitzer.caltech.edu/glimpse360/aladin/data", "gal", 9, {minOrder: 3}))
|
||||
aladin.gotoPosition(0, 0);
|
||||
aladin.setFOVRange(0.2, 360.0);
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
37
bug-tracking/test-reduce-deformations2.html
Normal file
37
bug-tracking/test-reduce-deformations2.html
Normal file
@@ -0,0 +1,37 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
|
||||
<link rel="stylesheet" href="../distrib/latest/aladin.min.css" />
|
||||
|
||||
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
|
||||
|
||||
|
||||
<div id="aladin-lite-div" style="width: 650px; height: 450px"></div>
|
||||
<label><input type="checkbox" id="reduce" checked>Activate deformations reduction algorithm</label>
|
||||
<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: 'Gamma Cas', fov: 13, showReticle: false});
|
||||
|
||||
var overlay = A.graphicOverlay({color: 'red', lineWidth: 2});
|
||||
aladin.addOverlay(overlay);
|
||||
overlay.add(A.polyline([ [2.29452158, 59.14978110], [10.12683778, 56.53733116], [14.1772154, 60.7167403], [21.45396446, 60.23528403], [28.59885697, 63.67010079] ]));
|
||||
|
||||
$('#reduce').on('change', function() {
|
||||
aladin.setReduceDeformations($(this).is(":checked"));
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
36
bug-tracking/test-shareUrl.html
Normal file
36
bug-tracking/test-shareUrl.html
Normal file
@@ -0,0 +1,36 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
|
||||
<link rel="stylesheet" href="../distrib/latest/aladin.min.css" />
|
||||
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
|
||||
|
||||
|
||||
<div id="aladin-lite-div" style="width: 500px; height: 400px"></div>
|
||||
<button id="getShareURL">Get share URL</button>
|
||||
<button id="getEmbedCode">Get embed code</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');
|
||||
|
||||
$(document).ready(function() {
|
||||
$('#getShareURL').click(function() {
|
||||
console.log(aladin.getShareURL());
|
||||
});
|
||||
|
||||
$('#getEmbedCode').click(function() {
|
||||
console.log(aladin.getEmbedCode());
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user