index.html 944 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <style type="text/css">
  2. html,body{
  3. margin: 0;
  4. padding: 0;
  5. font-family: Arial, sans-serif;
  6. }
  7. #game-container {
  8. width: 100%;
  9. height: 100%;
  10. z-index: 1;
  11. }
  12. #leaderboard {
  13. position: absolute;
  14. bottom: 0;
  15. left: 0;
  16. z-index: 10;
  17. padding: 10px;
  18. background-color: rgba(255, 255, 255, 0.5);
  19. }
  20. #eventticker {
  21. position: absolute;
  22. top: 0;
  23. width: 100%;
  24. z-index: 10;
  25. background-color: rgba(255, 255, 255, 0.5);
  26. overflow: hidden;
  27. display: block;
  28. }
  29. #eventticker p {
  30. display: inline;
  31. }
  32. p {
  33. margin: 0px;
  34. padding: 0px;
  35. }
  36. </style>
  37. <div id="game-container"></div>
  38. <script type="text/javascript" src="system.js"></script>
  39. <script type="text/javascript" src="examplegame.js"></script>
  40. <script type="text/javascript">
  41. document.addEventListener("DOMContentLoaded", function(event) {
  42. var system = new System();
  43. system.create("game-container", new ExampleGame(), "#3333DD");
  44. });
  45. </script>