Skip to content

an SSL-enabled fork of CDS's AladinLite, an astronomy data viewer

License

GPL-3.0, GPL-3.0 licenses found

Licenses found

GPL-3.0
LICENSE
GPL-3.0
COPYING
Notifications You must be signed in to change notification settings

pirtleshell/AladinLite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AladinLite

an SSL-enabled fork of CDS's AladinLite

About

This is a copy of AladinLite, a totally awesome telescope imagery viewer developed by the Centre de Données astronomiques de Strasbourg (CDS). I corresponded with them about serving the images over an https protocol, and although they plan on implementing it in the near future, currently, the easy, plug-and-play AladinLite viewer is only available over http. However, they did provide me with links to https images (JSON & human-readable), so I have implemented an SSL version here.

Usage

It works just like the original. The CSS and JS files can be found in the /dist directory, so either host them yourself, or use rawgit CDN. The CSS hasn't been modified, so feel free to use the original.

Modified from the original documentation:

<!-- include Aladin Lite CSS file in the head section of your page -->
<link rel="stylesheet" href="https://cdn.rawgit.com/PirtleShell/AladinLite/master/dist/aladin.min.css" />

<!-- you can skip the following line if your page already integrates the jQuery library -->
<script type="text/javascript" src="https://code.jquery.com/jquery-1.9.1.min.js" charset="utf-8"></script>

<!-- insert this snippet where you want Aladin Lite viewer to appear and after the loading of jQuery -->
<div id="aladin-lite-div" style="width:400px;height:400px;"></div>
<script type="text/javascript" src="https://cdn.rawgit.com/PirtleShell/AladinLite/master/dist/aladin.min.js" charset="utf-8"></script>
<script type="text/javascript">
    var aladin = A.aladin('#aladin-lite-div', {survey: "P/DSS2/color", fov:60});
</script>

Building

With gulp

Clone this repository and install the node dependencies for building:

git clone https://github.com/PirtleShell/AladinLite.git
cd AladinLite
npm install

Now you can build it by running gulp build. To live update and compile on changes, just run gulp.

With original build script

Compiling the js and css files requires that you have uglifyjs2 and less. These can be installed with npm:

npm i -g uglify-js less

Then run ./build.sh. The new files will be replace those in /dist.

License

This and the original are licensed under GNU GPLv3. The original license file can be found here and here is the original source code. It is copyrighted by the CDS.


Currently needed Shims

About

an SSL-enabled fork of CDS's AladinLite, an astronomy data viewer

Topics

Resources

License

GPL-3.0, GPL-3.0 licenses found

Licenses found

GPL-3.0
LICENSE
GPL-3.0
COPYING

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages