-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
111 lines (89 loc) · 2.69 KB
/
index.html
File metadata and controls
111 lines (89 loc) · 2.69 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Handwritten Digits Recognition - Wilian Osaku</title>
<script type="text/javascript" src="static/nn.js"></script>
<script type="text/javascript" src="static/main.js"></script>
<style>
body{
background-color: #f2f2f2;
}
#canvasInput{
border:1px solid #000000;
border-radius:4px;
background-color: #ffffff;
}
#canvasAnswer{
border:1px solid #000000;
border-radius:4px;
background-color: #ffffff;;
}
#canvasIndImage{
/*visibility: hidden;*/
/*display: none;*/
}
#label{
font-size: 1.5em;
}
.button {
position: relative;
background-color: #3F51B5;
border-radius: 4px;
border: none;
font-size: 18px;
color: #FFFFFF;
padding: 10px;
width: 180px;
text-align: center;
-webkit-transition-duration: 0.4s;
transition-duration: 0.4s;
text-decoration: none;
overflow: hidden;
cursor: pointer;
}
.button:after {
content: "";
background: #f1f1f1;
display: block;
position: absolute;
padding-top: 300%;
padding-left: 350%;
margin-left: -20px;
margin-top: -120%;
opacity: 0;
transition: all 0.8s
}
.button:active:after {
padding: 0;
margin: 0;
opacity: 1;
transition: 0s
}
#wrapper {
width:850px;
text-align: center;
overflow: auto;
}
#div_draw {
width: 420px;
float:left;
}
#div_answer {
overflow: hidden;
}
#questionDiv, #answerDiv {
font: 5em HeiTi; display: inline;
}
</style>
</head>
<body onload="startup()" style="height:100%;width:100%;">
<div id="wrapper">
<div id="questionDiv"></div><div id="answerDiv"></div>
</div>
<button onclick="hitGo()" id="Go" class="button" size="30">Go</button>
<canvas id= "canvasIndImage" width="400" height="400" style="width:1px;height:1px"></canvas>
<canvas id= "canvasInput" width="400" height="400" style="z-index:auto;position:absolute;">Your browser does not support the HTML5 canvas tag.</canvas>
</body>
</html>