Spaces:
Running
Running
Update script.js
Browse files
script.js
CHANGED
@@ -237,7 +237,7 @@ window.onload = function(e) {
|
|
237 |
canvas = document.getElementById("hw-canvas");
|
238 |
ctx = canvas.getContext("2d");
|
239 |
scale_factor = window.innerWidth / 1600;
|
240 |
-
ctx.canvas.width = window.innerWidth;
|
241 |
-
ctx.canvas.height = window.innerHeight;
|
242 |
|
243 |
}
|
|
|
237 |
canvas = document.getElementById("hw-canvas");
|
238 |
ctx = canvas.getContext("2d");
|
239 |
scale_factor = window.innerWidth / 1600;
|
240 |
+
ctx.canvas.width = window.innerWidth - 50;
|
241 |
+
ctx.canvas.height = window.innerHeight - 50;
|
242 |
|
243 |
}
|