-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
51 lines (33 loc) · 1.25 KB
/
index.html
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
<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@1.0.0/dist/tf.min.js"/></script>
<script src="js/drawing.js"></script>
<script src='https://docs.opencv.org/4.1.0/opencv.js'></script>
<script src="js/processing.js"></script>
<script src="js/math.js"></script>
</head>
<body>
<div class='container'>
<h1 id='title'>ML4Kids <span id='score'>| Score:</span> <span id='user_score'>0</span> </h1>
<h2 id='question'><span id='n1'>3</span> + <span id='n2'>2</span> = </h2>
<canvas id="my_canvas" width="150" height="150"> </canvas>
</div>
<div class='container'>
<button id='checkAnswer' class='btn' value='Check'>Check Answer</button>
</div>
<script>
load_model();
prepareCanvas();
nextQuestion();
document.getElementById('checkAnswer').addEventListener('click', function(){
checkAnswer();
clearCanvas();
nextQuestion();
});
</script>
</body>
</html>