index.html 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <!DOCTYPE html>
  2. <html lang="fr">
  3. <head>
  4. <title>Orrery</title>
  5. <script language="javascript" type="text/javascript" src="js/d3.min.js"></script>
  6. <script language="javascript" type="text/javascript" src="js/astro_helper.js"></script>
  7. <script language="javascript" type="text/javascript" src="js/astronomy.js"></script>
  8. <style type="text/css">
  9. body {background-image: url('images/wallpaper.jpg');transform: rotate(90deg); background-repeat: no-repeat;
  10. position: absolute;
  11. top:0px;
  12. left:0px;
  13. width: 100%;
  14. height: 100%; }
  15. </style>
  16. </head>
  17. <body>
  18. <script language="javascript" type="text/javascript" src="js/orrery.js"></script>
  19. <script>
  20. //set planets dimensions
  21. document.getElementById("piselsun").setAttribute('width','95');
  22. document.getElementById("piselsun").setAttribute('height','95');
  23. document.getElementById("pisel0").setAttribute('width','25');
  24. document.getElementById("pisel0").setAttribute('height','35');
  25. document.getElementById("pisel1").setAttribute('width','20');
  26. document.getElementById("pisel1").setAttribute('height','20');
  27. document.getElementById("pisel2").setAttribute('width','25');
  28. document.getElementById("pisel2").setAttribute('height','25');
  29. document.getElementById("pisel3").setAttribute('width','25');
  30. document.getElementById("pisel3").setAttribute('height','25');
  31. document.getElementById("pisel4").setAttribute('width','45');
  32. document.getElementById("pisel4").setAttribute('height','45');
  33. document.getElementById("pisel5").setAttribute('width','85');
  34. document.getElementById("pisel5").setAttribute('height','85');
  35. document.getElementById("pisel6").setAttribute('width','26');
  36. document.getElementById("pisel6").setAttribute('height','26');
  37. document.getElementById("pisel7").setAttribute('width','26');
  38. document.getElementById("pisel7").setAttribute('height','26');
  39. </script>
  40. </body>
  41. </html>