Permalink
Browse files

Initial commit

0 parents commit 99f3a635c9a74efccf29d5008bb3dc69467a3ae7 @sork sork committed Mar 16, 2011
Showing with 2,545 additions and 0 deletions.
  1. +7 −0 README.md
  2. +570 −0 css/style.css
  3. +374 −0 demo.html
  4. BIN fonts/BEBAS___-webfont.ttf
  5. BIN fonts/CartoGothicStd-Book-webfont.ttf
  6. BIN fonts/CartoGothicStd-Book-webfont.woff
  7. BIN fonts/Franchise-Bold.ttf
  8. BIN fonts/MarketingScript.ttf
  9. BIN img/.DS_Store
  10. BIN img/246min.png
  11. BIN img/30years.png
  12. BIN img/astronauts.png
  13. BIN img/bg.jpg
  14. BIN img/callistopicto.png
  15. BIN img/distance.png
  16. BIN img/doorlight.png
  17. BIN img/earth.jpg
  18. BIN img/earthicon.png
  19. BIN img/europapicto.png
  20. BIN img/everest.png
  21. BIN img/fuji.png
  22. BIN img/ganymedepicto.png
  23. BIN img/glow.png
  24. BIN img/grid.png
  25. BIN img/iopicto.png
  26. BIN img/jupiter.jpg
  27. BIN img/mariner10.png
  28. BIN img/mars.jpg
  29. +15 −0 img/mass.svg
  30. BIN img/mercury.jpg
  31. BIN img/mercuryobs1.png
  32. BIN img/mercuryobs2.png
  33. BIN img/mercuryobs3.png
  34. BIN img/messenger.png
  35. BIN img/neptune.jpg
  36. BIN img/olympus.png
  37. +12 −0 img/perimeter.svg
  38. +8 −0 img/previous.svg
  39. BIN img/reflect.png
  40. +16 −0 img/revolution.svg
  41. BIN img/rings1.png
  42. BIN img/rings2.png
  43. BIN img/rings3.png
  44. BIN img/ruler.png
  45. BIN img/satellite.png
  46. BIN img/saturn-arrow1.png
  47. BIN img/saturn-arrow2.png
  48. BIN img/saturn-arrow3.png
  49. BIN img/saturn.png
  50. BIN img/spinner.gif
  51. +19 −0 img/temperature.svg
  52. BIN img/tilt.png
  53. BIN img/time.png
  54. BIN img/uranus.png
  55. BIN img/venus.jpg
  56. BIN img/venussurface.png
  57. BIN img/voyager2.png
  58. BIN img/wind.png
  59. BIN js/.DS_Store
  60. +18 −0 js/build.js
  61. +105 −0 js/camera.js
  62. +64 −0 js/class.js
  63. +17 −0 js/constants.js
  64. +72 −0 js/counter.js
  65. +242 −0 js/init.js
  66. +26 −0 js/log.js
  67. +5 −0 js/main.js
  68. +19 −0 js/planet.js
  69. +419 −0 js/planetarium.js
  70. +7 −0 js/raphael-min.js
  71. +5 −0 js/raphael.js
  72. +198 −0 js/require-jquery-1.4.4.min.js
  73. +86 −0 js/satellites.js
  74. +184 −0 js/solarsystem.js
  75. +57 −0 js/transformable.js
  76. BIN screenshot.jpg
@@ -0,0 +1,7 @@
+ THE PLANETARIUM
+=======================
+
+[The Planetarium][demo_url] is a CSS3 experiment that was created for the launch of Firefox 4. It's been featured as a demo in the [Mozilla's Web'O'Wonder][wow_url] gallery.
+
+[wow_url]: http://demos.mozilla.org
+[demo_url]: http://mozillademos.org/demos/planetarium/demo.html
Oops, something went wrong.
374 demo.html
@@ -0,0 +1,374 @@
+<!DOCTYPE html>
+<html lang="en">
+<!--
+ ________ ___ __ __ _
+ /_ __/ / ___ / _ \/ /__ ____ ___ / /____ _____(_)_ ____ _
+ / / / _ \/ -_) / ___/ / _ `/ _ \/ -_) __/ _ `/ __/ / // / ' \
+ /_/ /_//_/\__/ /_/ /_/\_,_/_//_/\__/\__/\_,_/_/ /_/\_,_/_/_/_/
+
+ An (HTML5 + CSS3 + SVG) x JS experiment
+
+ Created by Little Workshop http://www.littleworkshop.fr
+
+ * Libraries used : jQuery, Raphaël, RequireJS
+ * Go check out the source on GitHub at : http://github.com/[insert repo URL]
+ * Supported in Firefox 4, Chrome, Safari
+-->
+<head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+ <link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8">
+ <style>
+ .hidden { display:none; }
+ #spinner {position:absolute;left:50%;top:50%;margin-left:-25px;margin-top:-25px;height:50px;width:50px;background:url('img/spinner.gif') no-repeat;}
+ </style>
+ <title>The Planetarium</title>
+</head>
+<body class="system">
+ <div id="starfield">
+ </div>
+
+ <div id="spinner"></div>
+
+ <img id="glow" src="img/glow.png">
+
+ <div id="title">
+ <h1 class="franchise"><span class="marketing">The</span>Planetarium</h1>
+ <span id="subtitle" class="carto">An HTML5 Astronomical Adventure</span>
+ </div>
+
+ <div id="instructions" class="carto loading">
+ click on a planet to start
+ </div>
+
+ <div id="toggle-credits" class="loading">
+ <span class="marketing">view credits</span>
+ </div>
+
+ <section id="credits">
+ <span id="madeby" class="carto">Made on Earth by <a href="http://www.littleworkshop.fr/" target="_blank" title="Visit Little Workshop">Little Workshop</a></span>
+ <div id="door">
+ <div></div>
+ <div></div>
+ </div>
+ <div id="doorlight">
+ <div></div>
+ <div></div>
+ </div>
+ <div id="authors">
+ <p id="guillaume">
+ <span class="marketing">design by</span>
+ <span class="bebas">Guillaume Lecollinet</span>
+ <span class="carto"><a target="_blank" href="http://twitter.com/glecollinet/" title="follow Guillaume on Twitter">@glecollinet</a></span>
+ </p>
+ <p id="franck">
+ <span class="marketing">code by</span>
+ <span class="bebas">Franck Lecollinet</span>
+ <span class="carto"><a target="_blank" href="http://twitter.com/whatthefranck/" title="follow Franck on Twitter">@whatthefranck</a></span>
+ </p>
+ </div>
+ <section id="typefaces">
+ <header>
+ <span class="separator"></span>
+ <span id="title-hr" class="marketing">typefaces</span>
+ <span class="separator"></span>
+ </header>
+ <ul>
+ <li class="carto">Marketing Script <br/><span>by</span> <a href="http://www.steffmann.de/" target="_blank" title="Dieter Steffmann">Dieter Steffmann</a></li>
+ <li class="carto">Franchise <br/><span>by</span> <a href="http://www.derekweathersbee.com/" target="_blank" title="Derek Weathersbee">Derek Weathersbee</a></li>
+ <li class="carto">Bebas <br/><span>by</span> <a href="http://dharmatype.com/flat-it" target="_blank" title="Flat-it Type Foundry">Flat-it</a></li>
+ <li class="carto">CartoGothic Std <br/><span>by</span> <a href="http://www.fontsite.com/" target="_blank" title="FontSite Inc.">FontSite Inc.</a></li>
+ </ul>
+ </section>
+ </section>
+
+ <ul id="planets" class="loading">
+ <li id="mercury" class="planet"></li>
+ <li id="venus" class="planet"></li>
+ <li id="earth" class="planet"></li>
+ <li id="mars" class="planet"></li>
+ <li id="jupiter" class="planet"></li>
+ <li id="saturn" class="planet"></li>
+ <li id="uranus" class="planet"></li>
+ <li id="neptune" class="planet"></li>
+ </ul>
+
+ <div id="gui" class="shrink">
+ <div id="container"></div>
+
+ <div id="ruler">
+ </div>
+
+ <div id="counter">
+ <span class="carto">DISTANCE FROM THE SUN</span><br />
+ <span id="kilometers" class="bebas"></span>
+ </div>
+
+ <div id="back">
+ <span class="carto">Back to space</span>
+ </div>
+
+ <div id="moveleft">
+ <div id="previous">
+ <img src="img/previous.svg" alt="Previous planet">
+ </div>
+ </div>
+
+ <div id="moveright">
+ <div id="next">
+ <img src="img/previous.svg" alt="Next planet">
+ </div>
+ </div>
+
+ <section class="content hidden" id="mercury-info">
+ <article id="mercury-window" class="window">
+ <div class="reflect">
+ <h1 class="bebas">
+ Mercury
+ </h1>
+ <p class="carto">is the first planet from the Sun and is also the smallest and densest planet of the Solar System. Mercury has yet to be entirely mapped, making it the least known planet in our system.</p>
+ </div>
+ </article>
+ <div id="mercury-missions">
+ <h2 class="bebas">Mercury Observation Progress</h2>
+ <ul>
+ <li><img src="img/mercuryobs1.png" alt=""></li>
+ <li><img src="img/mercuryobs2.png" alt=""></li>
+ <li><img src="img/mercuryobs3.png" alt=""></li>
+ </ul>
+ <img id="mariner10" src="img/mariner10.png" alt="">
+ <img id="techarrow" src="img/30years.png" alt="">
+ <img id="messenger" src="img/messenger.png" alt="">
+ </div>
+ </section>
+
+ <section class="content hidden" id="venus-info">
+ <article id="venus-window" class="window">
+ <div class="reflect">
+ <h1 class="bebas">
+ Venus
+ </h1>
+ <p>is the second planet from the Sun and is often called Earth's sister due to its many similarities with the Blue Planet. However, a strong greenhouse effect gives Venus the hottest climate in the Solar System.</p>
+ </div>
+ </article>
+ <ul id="venus-atmosphere" class="bebas">
+ <li>65 KM
+ <span>-100°C</span>
+ <span>Sulfuric Acid Cloud Layers</span>
+ </li>
+ <li>50 KM
+ <span>0°C</span>
+ <span>Sulfuric Acid Haze</span>
+ </li>
+ <li>38 KM
+ <span>25°C</span>
+ <span>Troposphere</span>
+ </li>
+ <li>0 KM
+ <span>467°C</span>
+ <span>Surface Level</span>
+ </li>
+ </ul>
+ </section>
+
+ <section class="content hidden" id="earth-info">
+ <article id="earth-window" class="window">
+ <div class="reflect">
+ <h1 class="bebas">
+ Earth
+ </h1>
+ <p>is the third planet from the Sun, and the densest and fifth-largest of the eight planets in the Solar System. Sometimes referred to as the Blue Planet, Earth is the only known planet to harbor life.</p>
+ </div>
+ </article>
+ <div id="earth-moon" class="grid moon">
+ <img id="distance" src="img/distance.png" alt="">
+ </div>
+ <ul id="earth-facts" class="properties bebas">
+ <li class="mass">
+ <img src="img/mass.svg" alt="mass">
+ 5.9736 <small>x</small> 10<span class="exposant">24</span> kg
+ <span>That's 80 times the mass of the moon</span>
+ </li>
+ <li class="perimeter">
+ <img src="img/perimeter.svg" alt="perimeter">
+ 40,075,16 km
+ <span>Equatorial circumference</span>
+ </li>
+ <li class="revolution">
+ <img src="img/revolution.svg" alt="revolution">
+ 365 days
+ <span>Complete Orbital Period</span>
+ </li>
+ <li class="temperature">
+ <img src="img/temperature.svg" alt="temperature">
+ -89.2&deg;C to 57.8&deg;C
+ <span>Temperature range</span>
+ </li>
+ </ul>
+ </section>
+
+ <section class="content hidden" id="mars-info">
+ <article id="mars-window" class="window">
+ <div class="reflect">
+ <h1 class="bebas">
+ Mars
+ </h1>
+ <p>is the fourth planet from the Sun. Named after the Roman god of war, Mars is often described as the "Red Planet" and is the site of Olympus Mons, the highest known mountain in the Solar System.</p>
+ </div>
+ </article>
+ <ul id="volcanoes" class="bebas">
+ <li>Olympus Mons<span>27,000 KM</span><hr /></li>
+ <li>Mount Everest<span>8,848 KM</span><hr /></li>
+ <li>Mount Fuji<span>3,776 KM</span><hr /></li>
+ </ul>
+ </section>
+
+ <section class="content hidden" id="jupiter-info">
+ <article id="jupiter-window" class="window">
+ <div class="reflect">
+ <h1 class="bebas">
+ Jupiter
+ </h1>
+ <p> is the fifth planet from the Sun and is the largest planet of the Solar System. Jupiter has 63 known satellites, the biggest of which are called the four Galilean Moons : Io, Europa, Ganymede and Callisto.</p>
+ </div>
+ </article>
+ <ul id="jupiter-moons" class="properties bebas">
+ <li><img src="img/iopicto.png" alt="">
+ IO
+ <span>Land of Volcanoes</span>
+ </li>
+ <li><img src="img/europapicto.png" alt="">
+ EUROPA
+ <span>Ice Ice Baby</span>
+ </li>
+ <li><img src="img/ganymedepicto.png" alt="">
+ GANYMEDE
+ <span>Larger than Mercury</span>
+ </li>
+ <li><img src="img/callistopicto.png" alt="">
+ CALLISTO
+ <span>The Habitable Moon ?</span>
+ </li>
+ </ul>
+ <div id="galilean-moons" class="grid bebas"></div>
+ </section>
+
+ <section class="content hidden" id="saturn-info">
+ <article id="saturn-window" class="window">
+ <div class="reflect">
+ <h1 class="bebas">
+ Saturn
+ </h1>
+ <p>is the sixth planet from the Sun and is the second largest planet in our system. Despite its size (9.4 Earths), Saturn's density is so low that it would float on water if there was a large enough ocean.</p>
+ </div>
+ </article>
+ <div id="rings-origin">
+ <h2 class="bebas">The origin of Saturn's rings</h2>
+ <p class="carto">Almost entirely composed of water ice,<br />Saturn's rings are believed to<br />be the remains of a<br />former moon.</p>
+ <ul id="arrows" class="bebas">
+ <li><span>1</span>
+ <img class="saturnarrow" src="img/saturn-arrow1.png" alt="">
+ <img class="rings" src="img/rings1.png" alt="">
+ </li>
+ <li><span>2</span>
+ <img class="saturnarrow" src="img/saturn-arrow2.png" alt="">
+ <img class="rings" src="img/rings2.png" alt="">
+ </li>
+ <li><span>3</span>
+ <img class="saturnarrow" src="img/saturn-arrow3.png" alt="">
+ <img class="rings" src="img/rings3.png" alt="">
+ </li>
+ </ul>
+ </div>
+ </section>
+
+ <section class="content hidden" id="uranus-info">
+ <article id="uranus-window" class="window">
+ <div class="reflect">
+ <h1 class="bebas">
+ Uranus
+ </h1>
+ <p>is the seventh planet from the Sun and is the coldest in the Solar System. Altough the first pictures taken by Voyager 2 showed a featureless, pale-blue planet, astronomers later discovered the complex atmosphere of Uranus.</p>
+ </div>
+ </article>
+ <div id="axial-tilt" class="grid">
+ <h2 class="bebas">Axial Tilt</h2>
+ <img src="img/tilt.png" alt="">
+ <span class="bebas">98°</span>
+ </div>
+ <div id="uranus-atmosphere">
+ <h2 class="bebas">The atmosphere of uranus</h2>
+ <div id="hydrogen">
+ <div></div>
+ <div></div>
+ <div></div>
+ <span class="bebas">85.3%<br />
+ Hydrogen
+ </span>
+ </div>
+ <div id="helium">
+ <div></div>
+ <div></div>
+ <div></div>
+ <span class="bebas">15.3%<br />
+ Helium
+ </span>
+ </div>
+ <div id="methane">
+ <div></div>
+ <div></div>
+ <div></div>
+ <span class="bebas">2.3%<br />
+ Methane
+ </span>
+ </div>
+ <div id="deuteride">
+ <div></div>
+ <div></div>
+ <div></div>
+ <span class="bebas">0.01%<br />
+ Hydrogen Deuteride
+ </span>
+ </div>
+ </div>
+ </section>
+
+ <section class="content hidden" id="neptune-info">
+ <article id="neptune-window" class="window">
+ <div class="reflect">
+ <h1 class="bebas">
+ Neptune
+ </h1>
+ <p>is the eighth and farthest planet from the sun. Neptune has been approached only once by a man-made object, Voyager 2 space probe, in 1989. Most of our knowledge of Neptune comes from this first and only flyby.</p>
+ </div>
+ </article>
+ <ul id="neptune-facts" class="bebas">
+ <li><img src="img/wind.png" alt="">
+ 2100 <span>km/h</span>
+ <br />
+ <span class="carto">max wind speed</span>
+ </li>
+ <li><img src="img/satellite.png" alt="">
+ 13 <span>known satellites</span>
+ <br />
+ <span class="carto">and counting</span>
+ </li>
+ <li><img src="img/time.png" alt="">
+ 164 <span>earth years</span>
+ <br />
+ <span class="carto">per neptunian year</span>
+ </li>
+ </ul>
+ <div id="flyby">
+ <img src="img/earthicon.png" alt="">
+ <img src="img/246min.png" alt="">
+ <img id="voyager2" src="img/voyager2.png" alt="Voyager 2">
+ </div>
+ </section>
+ </div>
+
+ <div id="counters"></div>
+
+ <script data-main="main" src="js/require-jquery-1.4.4.min.js"></script>
+</body>
+</html>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.

0 comments on commit 99f3a63

Please sign in to comment.