latest last commit

This commit is contained in:
Sander Hautvast 2020-12-02 14:00:57 +01:00
parent c0c0ed0066
commit 7d4d94cf1c
3 changed files with 2 additions and 7 deletions

View file

@ -3,10 +3,9 @@
<head>
<meta charset="UTF-8">
<title>sky</title>
<link rel="stylesheet" href="sky.css">
</head>
<body>
<canvas></canvas>
<canvas id="canvas"></canvas>
</body>
<script type="application/ecmascript" src="sky.js"></script>
</html>

View file

@ -1,4 +0,0 @@
span {
width: 100%;
height: 100%;
}

2
sky.js
View file

@ -1,5 +1,5 @@
(function () {
let canvas = document.getElementsByTagName("canvas")[0];
let canvas = document.getElementById("canvas");
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
canvas.onclick = () => {