-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmultiplication.html
More file actions
54 lines (34 loc) · 1.19 KB
/
multiplication.html
File metadata and controls
54 lines (34 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<!DOCTYPE html>
<html lang='en'>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
<link rel='stylesheet' href='css/styles.css'>
<link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Just+Another+Hand&display=swap'>
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@2.0.0/dist/tf.min.js"></script>
<script src="vendor/opencv.js"></script>
<script src="drawing.js"></script>
<script src="processing.js"></script>
<script src="maths.js"></script>
</head>
<body>
<div class='container'>
<h1 id="title"> Math Garden </h1>
<h2 id='question'><span id='n1'>3</span> * <span id='n2'>2</span> = </h2>
<canvas id="canvas", width="200", height="200"></canvas>
</div>
<div class='container'>
<button id='checkAnswer' class='btn' value='Check'> Check Answer </button>
</div>
<script>
loadModel();
prepareCanvas();
nextQuestion('mul');
document.getElementById('checkAnswer').addEventListener('click', function () {
checkAnswer();
clearCanvas();
nextQuestion('mul');
});
</script>
</body>
</html>