Skip to content

Commit

Permalink
Update to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
slowe committed Sep 5, 2014
1 parent 199f631 commit f131956
Show file tree
Hide file tree
Showing 13 changed files with 611 additions and 439 deletions.
25 changes: 25 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,13 @@
$('button#M42').on('click',function(){
planetarium9.panTo(83.8220833,-5.3911111,3000)
});

var planetarium10 = $.virtualsky({
id: 'starmap10',
projection: 'stereo',
lang: 'ar'
});

});
</script>
</head>
Expand Down Expand Up @@ -167,6 +174,7 @@ <h1>VirtualSky</h1>
<li><a href="#ex6">Example 6</a></li>
<li><a href="#ex7">Example 7</a></li>
<li><a href="#ex8">Example 8</a></li>
<li><a href="#ex9">Example 9</a></li>
</ul>
</li>
<li><a href="#options">Options</a>
Expand Down Expand Up @@ -383,6 +391,23 @@ <h2 id="instructions">Instructions for embedding</h2>
<button id="M42">Move to M42</button>
</li>

<li class="example" id="ex9">A default view using <code>stereo</code> projection in Arabic
<pre class="prettyprint lang-js">
$(document).ready(function() {

var planetarium = $.virtualsky({
id: 'starmap',
projection: 'stereo',
lang: 'ar'
});
});
</pre>
<pre class="prettyprint lang-html">
&lt;div id="starmap" style="width:944px;height:400px;"&gt;&lt;/div&gt;
</pre>
<div id="starmap10" class="planetarium" style="width:944x;height:400px;"></div>
</li>


</ol>

Expand Down
215 changes: 126 additions & 89 deletions lang/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,94 +8,94 @@
},
"position": "&#1575;&#1604;&#1591;&#1608;&#1604; & &#1575;&#1604;&#1593;&#1585;&#1590;",
"constellations": {
"And": "&#1575;&#1604;&#1602;&#1589;&#1593;&#1577;",
"Ant": "&#1575;&#1604;&#1594;&#1585;&#1575;&#1576;",
"Aps": "&#1575;&#1604;&#1573;&#1603;&#1604;&#1610;&#1604; &#1575;&#1604;&#1588;&#1605;&#1575;&#1604;&#1610;",
"Aqr": "&#1575;&#1604;&#1573;&#1603;&#1604;&#1610;&#1604; &#1575;&#1604;&#1580;&#1606;&#1608;&#1576;&#1610;",
"Aql": "&#1590;&#1601;&#1610;&#1585;&#1577; &#1576;&#1585;&#1606;&#1610;&#1587;",
"Ara": "&#1575;&#1604;&#1581;&#1605;&#1575;&#1605;&#1577;",
"Ari": "&#1575;&#1604;&#1576;&#1610;&#1603;&#1575;&#1585;",
"Aur": "&#1575;&#1604;&#1586;&#1585;&#1575;&#1601;&#1577;",
"Boo": "&#1602;&#1610;&#1591;&#1587;",
"Cae": "&#1602;&#1610;&#1601;&#1575;&#1608;&#1587;",
"Cam": "&#1602;&#1606;&#1591;&#1608;&#1585;&#1587;",
"Cnc": "&#1584;&#1575;&#1578; &#1575;&#1604;&#1603;&#1585;&#1587;&#1610;",
"CVn": "&#1575;&#1604;&#1580;&#1572;&#1580;&#1572;",
"CMa": "&#1575;&#1604;&#1580;&#1583;&#1610;",
"CMi": "&#1575;&#1604;&#1603;&#1604;&#1576; &#1575;&#1604;&#1571;&#1589;&#1594;&#1585;",
"Cap": "&#1575;&#1604;&#1603;&#1604;&#1576; &#1575;&#1604;&#1571;&#1603;&#1576;&#1585;",
"Car": "&#1575;&#1604;&#1587;&#1604;&#1608;&#1602;&#1610;&#1610;&#1606;",
"Cas": "",
"Cen": "",
"Cep": "",
"Cet": "",
"Cha": "",
"Cir": "",
"Col": "",
"Com": "",
"CrA": "",
"CrB": "",
"Crv": "",
"Crt": "",
"Cru": "",
"Cyg": "",
"Del": "",
"Dor": "",
"Dra": "",
"Equ": "",
"Eri": "",
"For": "",
"Gem": "",
"Gru": "",
"Her": "",
"Hor": "",
"Hya": "",
"Hyi": "",
"Ind": "",
"Lac": "",
"Leo": "",
"LMi": "",
"Lep": "",
"Lib": "",
"Lup": "",
"Lyn": "",
"Lyr": "",
"Men": "",
"Mic": "",
"Mon": "",
"Mus": "",
"Nor": "",
"Oct": "",
"Oph": "",
"Ori": "",
"Pav": "",
"Peg": "",
"Per": "",
"Phe": "",
"Pic": "",
"Psc": "",
"PsA": "",
"Pup": "",
"Pyx": "",
"Ret": "",
"Sge": "",
"Sgr": "",
"Sco": "",
"Scl": "",
"Sct": "",
"Ser": "",
"Sex": "",
"Tau": "",
"Tel": "",
"Tri": "",
"TrA": "",
"Tuc": "",
"UMa": "",
"UMi": "",
"Vel": "",
"Vir": "",
"Vol": "",
"Vul": ""
"And": "&#1583;&#1585;&#1608;&#1605;&#1610;&#1583;",
"Ant": "&#1585;&#1594;&#1577; &#1575;&#1604;&#1607;&#1608;&#1575;&#1569;",
"Aps": "&#1574;&#1585; &#1575;&#1604;&#1601;&#1585;&#1583;&#1608;&#1587;",
"Aqr": "&#1604;&#1583;&#1604;&#1608;",
"Aql": "&#1593;&#1602;&#1575;&#1576;",
"Ara": "&#1580;&#1605;&#1585;&#1577;",
"Ari": "&#1581;&#1605;&#1604;",
"Aur": "&#1603; &#1575;&#1604;&#1571;&#1593;&#1606;&#1577;",
"Boo": "&#1593;&#1608;&#1575;&#1569;",
"Cae": " &#1575;&#1604;&#1606;&#1602;&#1575;&#1588;",
"Cam": "&#1586;&#1585;&#1575;&#1601;&#1577;",
"Cnc": "&#1587;&#1585;&#1591;&#1575;&#1606;",
"CVn": "&#1587;&#1604;&#1608;&#1602;&#1610;&#1610;&#1606;",
"CMa": "&#1604;&#1576; &#1575;&#1604;&#1571;&#1603;&#1576;&#1585;",
"CMi": "&#1576; &#1575;&#1604;&#1571;&#1589;&#1594;&#1585;",
"Cap": "&#1604;&#1580;&#1583;&#1610;",
"Car": "&#1580;&#1572;&#1580;&#1572;",
"Cas": "&#1578; &#1575;&#1604;&#1603;&#1585;&#1587;&#1610;",
"Cen": "&#1602;&#1606;&#1591;&#1608;&#1585;&#1587;",
"Cep": "&#1610;&#1601;&#1575;&#1608;&#1587;",
"Cet": "&#1602;&#1610;&#1591;&#1587;",
"Cha": "&#1585;&#1575;&#1601;&#1577;",
"Cir": "&#1576;&#1610;&#1603;&#1575;&#1585;",
"Col": "&#1604;&#1581;&#1605;&#1575;&#1605;&#1577;",
"Com": "&#1585;&#1577; &#1576;&#1585;&#1606;&#1610;&#1587;",
"CrA": "&#1604; &#1575;&#1604;&#1580;&#1606;&#1608;&#1576;&#1610;",
"CrB": "&#1610;&#1604; &#1575;&#1604;&#1588;&#1605;&#1575;&#1604;&#1610;",
"Crv": "&#1594;&#1585;&#1575;&#1576;",
"Crt": "&#1602;&#1589;&#1593;&#1577;",
"Cru": "Crux",
"Cyg": "&#1583;&#1580;&#1575;&#1580;&#1577;",
"Del": "&#1583;&#1604;&#1601;&#1610;&#1606;",
"Dor": " &#1587;&#1610;&#1601;",
"Dra": "&#1578;&#1606;&#1610;&#1606;",
"Equ": " &#1575;&#1604;&#1601;&#1585;&#1587;",
"Eri": "&#1604;&#1606;&#1607;&#1585;",
"For": "&#1604;&#1603;&#1608;&#1585;",
"Gem": "&#1608;&#1571;&#1605;&#1610;&#1606;",
"Gru": "&#1603;&#1585;&#1603;&#1610;",
"Her": "&#1580;&#1575;&#1579;&#1610;",
"Hor": "&#1587;&#1575;&#1593;&#1577;",
"Hya": "&#1588;&#1580;&#1575;&#1593;",
"Hyi": " &#1575;&#1604;&#1605;&#1575;&#1569;",
"Ind": "&#1607;&#1606;&#1583;&#1610;",
"Lac": "&#1593;&#1592;&#1575;&#1569;&#1577;",
"Leo": "&#1571;&#1587;&#1583;",
"LMi": " &#1575;&#1604;&#1571;&#1590;&#1594;&#1585;",
"Lep": "&#1604;&#1571;&#1585;&#1606;&#1576;",
"Lib": "&#1605;&#1610;&#1586;&#1575;&#1606;",
"Lup": "&#1604;&#1587;&#1576;&#1593;",
"Lyn": "&#1608;&#1588;&#1602;",
"Lyr": "&#1604;&#1608;&#1585;&#1575;",
"Men": "&#1580;&#1576;&#1604;",
"Mic": "&#1604;&#1605;&#1580;&#1607;&#1585;",
"Mon": "&#1583; &#1575;&#1604;&#1602;&#1585;&#1606;",
"Mus": "&#1584;&#1576;&#1575;&#1576;&#1577;",
"Nor": "&#1593; &#1575;&#1604;&#1606;&#1580;&#1575;&#1585;",
"Oct": "&#1579;&#1605;&#1606;",
"Oph": "&#1581;&#1608;&#1575;&#1569;",
"Ori": "&#1580;&#1576;&#1617;&#1575;&#1585;",
"Pav": "&#1604;&#1591;&#1575;&#1608;&#1608;&#1587;",
"Peg": "&#1587; &#1575;&#1604;&#1605;&#1580;&#1606;&#1581;",
"Per": "&#1588;&#1575;&#1608;&#1587;",
"Phe": "&#1593;&#1606;&#1602;&#1575;&#1569;",
"Pic": "&#1575;&#1604;&#1585;&#1587;&#1575;&#1605;",
"Psc": "&#1604;&#1581;&#1608;&#1578;",
"PsA": "&#1608;&#1578; &#1575;&#1604;&#1580;&#1606;&#1608;&#1576;&#1610;",
"Pup": "&#1603;&#1608;&#1579;&#1604;",
"Pyx": "&#1576;&#1608;&#1589;&#1604;&#1577;",
"Ret": "&#1588;&#1576;&#1603;&#1577;",
"Sge": "&#1604;&#1587;&#1607;&#1605;",
"Sgr": "&#1585;&#1575;&#1605;&#1610;",
"Sco": "&#1593;&#1602;&#1585;&#1576;",
"Scl": " &#1575;&#1604;&#1606;&#1581;&#1575;&#1578;",
"Sct": "&#1578;&#1585;&#1587;",
"Ser": "&#1604;&#1581;&#1610;&#1577;",
"Sex": "&#1577; &#1575;&#1604;&#1587;&#1583;&#1587;",
"Tau": "&#1604;&#1579;&#1608;&#1585;",
"Tel": "&#1604;&#1587;&#1603;&#1608;&#1576;",
"Tri": "&#1605;&#1579;&#1604;&#1579;",
"TrA": "&#1579; &#1575;&#1604;&#1580;&#1606;&#1608;&#1576;&#1610;",
"Tuc": "&#1604;&#1591;&#1608;&#1602;&#1575;&#1606;",
"UMa": "&#1575;&#1604;&#1571;&#1603;&#1576;&#1585;",
"UMi": " &#1575;&#1604;&#1571;&#1589;&#1594;&#1585;",
"Vel": "&#1604;&#1588;&#1585;&#1575;&#1593;",
"Vir": "&#1593;&#1584;&#1585;&#1575;&#1569;",
"Vol": "&#1603;&#1577; &#1575;&#1604;&#1591;&#1575;&#1574;&#1585;&#1577;",
"Vul": "&#1604;&#1579;&#1593;&#1604;&#1576;"
},
"planets": {
"Me": "&#1593;&#1591;&#1575;&#1585;&#1583;",
Expand Down Expand Up @@ -153,5 +153,42 @@
"date": "",
"datechange": "",
"close": "",
"positionchange": ""
"positionchange": "",
"starnames": {
"7588": "Achernar",
"11767": "&#1606;&#1580;&#1605; &#1575;&#1604;&#1588;&#1605;&#1575;&#1604;",
"21421": "&#1575;&#1604;&#1583;&#1576;&#1585;&#1575;&#1606; (&#1606;&#1580;&#1605;)",
"24436": "&#1585;&#1580;&#1604; &#1575;&#1604;&#1580;&#1576;&#1575;&#1585;",
"24608": "&#1575;&#1604;&#1593;&#1610;&#1608;&#1602; (&#1606;&#1580;&#1605;)",
"27989": "&#1605;&#1606;&#1603;&#1576; &#1575;&#1604;&#1580;&#1608;&#1586;&#1575;&#1569;",
"30438": "&#1587;&#1607;&#1610;&#1604; (&#1606;&#1580;&#1605;)",
"32349": "&#1575;&#1604;&#1588;&#1593;&#1585;&#1609; &#1575;&#1604;&#1610;&#1605;&#1575;&#1606;&#1610;&#1577;",
"33579": "&#1575;&#1604;&#1593;&#1584;&#1575;&#1585;&#1609; (&#1606;&#1580;&#1605;)",
"37279": "&#1575;&#1604;&#1588;&#1593;&#1585;&#1609; &#1575;&#1604;&#1588;&#1575;&#1605;&#1610;&#1577;",
"37826": "&#1585;&#1571;&#1587; &#1575;&#1604;&#1578;&#1608;&#1571;&#1605; &#1575;&#1604;&#1605;&#1572;&#1582;&#1585;",
"49669": "&#1606;&#1580;&#1605;_&#1575;&#1604;&#1605;&#1604;&#1610;&#1603;",
"62434": "Mimosa",
"65378": "&#1575;&#1604;&#1605;&#1574;&#1586;&#1585; (&#1606;&#1580;&#1605;)",
"65474": "&#1575;&#1604;&#1587;&#1605;&#1575;&#1603; &#1575;&#1604;&#1571;&#1593;&#1586;&#1604;",
"68702": "&#1581;&#1590;&#1575;&#1585; (&#1606;&#1580;&#1605;)",
"69673": "&#1575;&#1604;&#1587;&#1605;&#1575;&#1603; &#1575;&#1604;&#1585;&#1575;&#1605;&#1581;",
"71683": "&#1585;&#1580;&#1604; &#1575;&#1604;&#1602;&#1606;&#1591;&#1608;&#1585;",
"80763": "&#1602;&#1604;&#1576; &#1575;&#1604;&#1593;&#1602;&#1585;&#1576; (&#1606;&#1580;&#1605;)",
"85927": "&#1575;&#1604;&#1588;&#1608;&#1604;&#1577; (&#1606;&#1580;&#1605;)",
"91262": "&#1575;&#1604;&#1606;&#1587;&#1585; &#1575;&#1604;&#1608;&#1575;&#1602;&#1593;",
"97649": "&#1575;&#1604;&#1606;&#1587;&#1585; &#1575;&#1604;&#1591;&#1575;&#1574;&#1585; (&#1606;&#1580;&#1605;)",
"102098": "&#1584;&#1606;&#1576; &#1575;&#1604;&#1583;&#1580;&#1575;&#1580;&#1577; (&#1606;&#1580;&#1605;)",
"113368": "Fomalhaut"
},
"projections": {
"polar": "",
"fisheye": "",
"ortho": "",
"stereo": "",
"lambert": "",
"gnomic": "",
"equirectangular": "",
"mollweide": "",
"planechart": ""
}
}
6 changes: 6 additions & 0 deletions lang/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,5 +111,11 @@
"Vir": "Panna",
"Vol": "Letaj&#237;c&#237; ryba",
"Vul": "Li&#353;ka"
},
"starnames":{
"7588":"Achernar","11767":"Polaris","21421":"Aldebaran","24436":"Rigel","24608":"Capella","27989":"Betelgeuse",
"30438":"Canopus","32349":"Sirius","33579":"Adara","37279":"Procyon","37826":"Pollux","49669":"Regulus","62434":"Mimosa",
"65378":"Mizar","65474":"Spica","68702":"Hadar","69673":"Arcturus","71683":"Alpha Centauri A","80763":"Antares","85927":"Shaula",
"91262":"Vega","97649":"Altair","102098":"Deneb","113368":"Fomalhaut"
}
}
19 changes: 18 additions & 1 deletion lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -153,5 +153,22 @@
"right" : "&rarr;",
"up": "&uarr;",
"down": "&darr;",
"power": "Powered by LCOGT"
"power": "Powered by LCOGT",
"projections": {
"polar": "Polar projection",
"fisheye": "Fisheye projection",
"ortho": "Orthographic projection",
"stereo": "Stereo projection",
"lambert": "Lambert projection",
"gnomic": "Gnomic projection",
"equirectangular": "Equirectangular projection",
"mollweide": "Mollweide projection",
"planechart": "Planechart projection"
},
"starnames":{
"7588":"Achernar","11767":"Polaris","21421":"Aldebaran","24436":"Rigel","24608":"Capella","27989":"Betelgeuse",
"30438":"Canopus","32349":"Sirius","33579":"Adara","37279":"Procyon","37826":"Pollux","49669":"Regulus","62434":"Mimosa",
"65378":"Mizar","65474":"Spica","68702":"Hadar","69673":"Arcturus","71683":"Alpha Centauri A","80763":"Antares","85927":"Shaula",
"91262":"Vega","97649":"Altair","102098":"Deneb","113368":"Fomalhaut"
}
}
6 changes: 6 additions & 0 deletions lang/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,5 +108,11 @@
"Vir": "Virgo",
"Vol": "El Pez volador",
"Vul": "El Zorro"
},
"starnames":{
"7588":"Achernar","11767":"Polaris","21421":"Aldebaran","24436":"Rigel","24608":"Capella","27989":"Betelgeuse",
"30438":"Canopus","32349":"Sirius","33579":"Adara","37279":"Procyon","37826":"Pollux","49669":"Regulus","62434":"Mimosa",
"65378":"Mizar","65474":"Spica","68702":"Hadar","69673":"Arcturus","71683":"Alpha Centauri A","80763":"Antares","85927":"Shaula",
"91262":"Vega","97649":"Altair","102098":"Deneb","113368":"Fomalhaut"
}
}
8 changes: 7 additions & 1 deletion lang/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -153,5 +153,11 @@
"right" : "&rarr;",
"up": "&uarr;",
"down": "&darr;",
"power": "powered by LCOGT"
"power": "powered by LCOGT",
"starnames":{
"7588":"Achernar","11767":"Polaris","21421":"Aldebaran","24436":"Rigel","24608":"Capella","27989":"Betelgeuse",
"30438":"Canopus","32349":"Sirius","33579":"Adara","37279":"Procyon","37826":"Pollux","49669":"Regulus","62434":"Mimosa",
"65378":"Mizar","65474":"Spica","68702":"Hadar","69673":"Arcturus","71683":"Alpha Centauri A","80763":"Antares","85927":"Shaula",
"91262":"Vega","97649":"Altair","102098":"Deneb","113368":"Fomalhaut"
}
}
39 changes: 39 additions & 0 deletions lang/master.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,45 @@
"U": { "_title": "Uranus", "_text": "The word for Uranus", "_type": "string" },
"N": { "_title": "Neptune", "_text": "The word for Neptune", "_type": "string" }
},
"projections": {
"_title": "Projections",
"polar": { "_title": "Polar", "_text": "The name for a polar projection", "_type": "string" },
"fisheye": { "_title": "Fisheye", "_text": "The name for a fisheye projection", "_type": "string" },
"ortho": { "_title": "Orthographic", "_text": "The name for an orthographic projection", "_type": "string" },
"stereo": { "_title": "Stereographic", "_text": "The name for a stereographic projection", "_type": "string" },
"lambert": { "_title": "Lambert", "_text": "The name for a Lambert projection", "_type": "string" },
"gnomic": { "_title": "Gnomic", "_text": "The name for a Gnomic projection", "_type": "string" },
"equirectangular": { "_title": "Equirectangular", "_text": "The name for an equirectangular projection", "_type": "string" },
"mollweide": { "_title": "Mollweide", "_text": "The name for a Mollweide projection", "_type": "string" },
"planechart": { "_title": "Planechart", "_text": "The name for a planechart projection", "_type": "string" }
},
"starnames": {
"_title": "Star names",
"7588": { "_title": "Achernar", "_text": "The name of the star Achernar", "_type": "string" },
"11767": { "_title": "Polaris", "_text": "The name of the star Polaris", "_type": "string" },
"21421": { "_title": "Aldebaran", "_text": "The name of the star Aldebaran", "_type": "string" },
"24436": { "_title": "Rigel", "_text": "The name of the star Rigel", "_type": "string" },
"24608": { "_title": "Capella", "_text": "The name of the star Capella", "_type": "string" },
"27989": { "_title": "Betelgeuse", "_text": "The name of the star Betelgeuse", "_type": "string" },
"30438": { "_title": "Canopus", "_text": "The name of the star Canopus", "_type": "string" },
"32349": { "_title": "Sirius", "_text": "The name of the star Sirius", "_type": "string" },
"33579": { "_title": "Adara", "_text": "The name of the star Adara", "_type": "string" },
"37279": { "_title": "Procyon", "_text": "The name of the star Procyon", "_type": "string" },
"37826": { "_title": "Pollux", "_text": "The name of the star Pollux", "_type": "string" },
"49669": { "_title": "Regulus", "_text": "The name of the star Regulus", "_type": "string" },
"62434": { "_title": "Mimosa", "_text": "The name of the star Mimosa", "_type": "string" },
"65378": { "_title": "Mizar", "_text": "The name of the star Mizar", "_type": "string" },
"65474": { "_title": "Spica", "_text": "The name of the star Spica", "_type": "string" },
"68702": { "_title": "Hadar", "_text": "The name of the star Hadar", "_type": "string" },
"69673": { "_title": "Arcturus", "_text": "The name of the star Arcturus", "_type": "string" },
"71683": { "_title": "Alpha Centauri A", "_text": "The name of the star Alpha Centauri A", "_type": "string" },
"80763": { "_title": "Antares", "_text": "The name of the star Antares", "_type": "string" },
"85927": { "_title": "Shaula", "_text": "The name of the star Shaula", "_type": "string" },
"91262": { "_title": "Vega", "_text": "The name of the star Vega", "_type": "string" },
"97649": { "_title": "Altair", "_text": "The name of the star Altair", "_type": "string" },
"102098": { "_title": "Deneb", "_text": "The name of the star Deneb", "_type": "string" },
"113368":"Fomalhaut"
},
"sun": { "_title": "Sun", "_text": "The word for the Sun", "_type": "string" },
"moon": { "_title": "Moon", "_text": "The word of the Moon", "_type": "string" },
"date": { "_title": "", "_text": "Date &amp; Time", "_type": "string" },
Expand Down
Loading

0 comments on commit f131956

Please sign in to comment.