From 87fe1975f4a5a179744517c1b8694d7a39714280 Mon Sep 17 00:00:00 2001
From: Young Guk Kim <kyk1047715@gmail.com>
Date: Wed, 25 Apr 2018 06:27:24 +0900
Subject: [PATCH] 1

---
 ti/templates/ti/index.html | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/ti/templates/ti/index.html b/ti/templates/ti/index.html
index 73024bf..1f74a95 100644
--- a/ti/templates/ti/index.html
+++ b/ti/templates/ti/index.html
@@ -119,17 +119,15 @@
         image.src = "{% static 'ti/drawpic.png' %}";
         image.onload = function(){
           ctx.drawImage(image,0,0);
-          ctx.fillStyle = 'white'; // 채우기 색 지정
-          ctx.globalAlpha = "1.0"; // 채우기 투명도 설정
-          ctx.fillRect(0,0,500,500);
         }
+
       }
     </script>
     <script type="text/javascript">
       function erase(){
-        var canvas, ctx;
-        canvas = document.getElementById("canvas");
-        ctx = canvas.getContext("2d");
+        var canvas1, ctx;
+        canvas1 = document.getElementById("canvas");
+        ctx = canvas1.getContext("2d");
         ctx.fillStyle = 'white'; // 채우기 색 지정
         ctx.globalAlpha = "1.0"; // 채우기 투명도 설정
         ctx.fillRect(0,0,500,500);
-- 
GitLab