From 9694b5fe1d503c15cef13aa51c58515c7aa2983a Mon Sep 17 00:00:00 2001 From: Karan <50290386+Sonawane-Karan26@users.noreply.github.com> Date: Fri, 3 Dec 2021 14:45:04 +0530 Subject: [PATCH] restructured --- Chapter 14/Project_3.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Chapter 14/Project_3.html b/Chapter 14/Project_3.html index ceab656..3bfd4e3 100644 --- a/Chapter 14/Project_3.html +++ b/Chapter 14/Project_3.html @@ -42,16 +42,16 @@ mLoc.x = e.clientX; mLoc.y = e.clientY; draw(); - }) + }); canvas.addEventListener("mousedown", (e) => { mLoc.draw = true; - }) + }); canvas.addEventListener("mouseup", (e) => { mLoc.draw = false; - }) + }); canvas.addEventListener("mouseout", (e) => { mLoc.draw = false; - }) + }); function saveImg() { const dataURL = canvas.toDataURL(); console.log(dataURL);