Skip to content
Snippets Groups Projects
Select Git revision
  • 7ae3fa00125528246370b49792b210a05397778c
  • master default protected
  • circleci-project-setup
  • actions
4 results

index.html

Blame
  • index.html 909 B
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Death by Hamster</title>
    <style>
        body {
            background:rgb(22, 22, 22);
        }
        #gameCanvas {
            display: block;
            margin: auto;
            width: 1200px;
            height: 800px;
            image-rendering: -moz-crisp-edges;
            image-rendering: -webkit-crisp-edges;
            image-rendering: pixelated;
            cursor: none;
        }
        /* if the canvas can't fit the screen, shrink it, maintaining the aspect ratio */
    
        aside {
            float:left;
        }
        aside pre {
            color: white;
        }
    
        @media screen and (max-height: 800px) {
            #gameCanvas {
                width: auto;
                height: 100%;
            }
        }
    
    </style>
    <aside >
        <pre id="leveltext"></pre>
        <p id="levelLink"></p>
    </aside>
    <canvas width="600" height="400" id="gameCanvas">
    </canvas>
    <script src="./code.js"></script>