123456789101112131415161718192021222324252627282930313233 |
- <head>
- <style type="text/css">
- .multigame {
- display:flex;
- flex-direction: row;
- flex-wrap: wrap;
- justify-content: space-around;
- }
- canvas {
- border: 1px solid darkgray;
- padding: 2px;
- margin: 2px 0;
- }
- </style>
- </head>
- <body>
- <div class="multigame"></div>
- <script src="./js/autoload.js"></script>
- <script>
- require('MultigameManager');
- document.addEventListener("JSContentLoaded", (event) => {
- let multigameManager = new MultigameManager();
- let container = document.getElementsByClassName('multigame')[0];
- for(let i = 0; i < 24; i++) {
- multigameManager.spawnGame(container);
- }
- });
- </script>
- </body>
|