diff --git a/src/index.html b/src/index.html index 672636a0a6c8562d26fee0c4bdbfe78be42a2301..fc10f00a7186d7891a1edf011337db63b5c69897 100644 --- a/src/index.html +++ b/src/index.html @@ -9,21 +9,4 @@ } </style> <canvas id="c"></canvas> -<script src="./main.js"></script> -<script> - fl = Math.floor; - a = c.getContext`2d`; - u = _=>{ - w = innerWidth; - h = innerHeight; - wS = fl(w/256); - hS = fl(h/256); - s=Math.min(wS,hS); - c.width = 256*s; - c.height= 240*s; - canvas.pixelRatio = s; - canvas.setScale(canvas.scale); - a.imageSmoothingEnabled = false; - } - u();addEventListener('resize', u, !0); -</script> \ No newline at end of file +<script src="./main.js"></script> \ No newline at end of file