MCPcopy Create free account
hub / github.com/ndleah/python-mini-project / clear

Function clear

digit-recognizer/app/static/js/main.js:117–124  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

115 reset.onclick = clear;
116
117 function clear() {
118 ctx.fillStyle = "#ffffff";
119 picCtx.fillStyle = "#ffffff";
120 ctx.fillRect(0, 0, canvasWidth, canvasHeight);
121 picCtx.fillRect(0, 0, picture.width, picture.height);
122
123 $('.result td').text('').removeClass('answer');
124 }
125};

Callers 1

main.jsFile · 0.85

Calls 1

$Function · 0.85

Tested by

no test coverage detected