diff --git a/ti/templates/ti/index.html b/ti/templates/ti/index.html index 73024bf31139e01f1b91761e7985a610491633ef..1f74a95936b836156760c869b9364f84b5cd6915 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);