Skip to content
Snippets Groups Projects
Select Git revision
  • 67b9e98a6d9cf8ef3830629085a7e4810b3ea39e
  • master default protected
2 results

index.html

Blame
  • index.html 592 B
    <!-- maybe slightly copied from herebefrog's -->
    
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1">
    <style>
      :root { color-scheme: light dark; }
      body { display: flex; justify-content: center; align-items: center; height: 100vh;}
      canvas, body {
        margin: 0;
        touch-action: none;
        user-select: none;
      }
      canvas {
        width: 100%;
        max-height: 100vh;
        object-fit: contain;
        image-rendering: pixelated;
        margin: auto;
      }
    </style>
    <body>
      <canvas id=c></canvas>
      <script type="module" src=game.js></script>
    </body>