From 5ae13d3c1903550dfceaf075a6bb6e21ba12a6d9 Mon Sep 17 00:00:00 2001 From: Vifi5 <117041326+Vif15@users.noreply.github.com> Date: Sun, 24 Nov 2024 17:11:25 -0500 Subject: [PATCH] Create moveCanvas.js --- javascript/moveCanvas.js | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 javascript/moveCanvas.js diff --git a/javascript/moveCanvas.js b/javascript/moveCanvas.js new file mode 100644 index 0000000..461b53b --- /dev/null +++ b/javascript/moveCanvas.js @@ -0,0 +1,5 @@ +var main = document.getElementById("myCanvas"); + var render = main.getContext("2d"); + main.style.left = "400px"; + main.style.top = "25px"; + main.style.position = "absolute";