-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathkeystroke.html
More file actions
194 lines (184 loc) · 7.63 KB
/
keystroke.html
File metadata and controls
194 lines (184 loc) · 7.63 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<title>
Keystroke Dynamics Demo
</title>
<head>
<meta charset='utf-8'>
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<meta name="description" content="RSA conference APJ 2018 Presentation and Demo">
<meta name="keywords" content="Security, Machine Learning, Keystroke dynamics">
<meta name="author" content="Vikas Desai">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-9518343-3"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-9518343-3');
</script>
<link rel="stylesheet" type="text/css" href="styles.css" media="screen">
<script src="Chart.min.js"></script>
<script src="ml.min.js"></script>
<script src="math.min.js"></script>
<script src="neataptic.js"></script>
<script src="keystroke.js"></script>
</head>
<body>
<div class="container">
<div class="chart-container" style="position: absolute: 0px; top: 0px; right: 0px; bottom: 0px;">
<H1 align=center style="font-family:verdana; font-size:30">Distance Classifier</H1>
<canvas id="textEntry" width="1000" height="500" class="chartjs-render-monitor" style="display: block; height: 250px; width: 800px;"></canvas>
<table>
<tr>
<td rowspan=5>
<table>
<tr>
<td>
<H4 style="font-family:verdana; font-size:20">Test Mode</H4>
</td>
<td>
<!-- Rounded switch -->
<label class="switch"> <input type="checkbox" id="testCheck" onclick="startTest()"> <span class="slider round"></span> </label>
</td>
</tr>
<tr>
<td>
<H4 style="font-family:verdana; font-size:20">Neural Network</H4>
</td>
<td>
<!-- Rounded switch -->
<label class="switch"> <input type="checkbox" id="nnpredict" onclick="showNN()"> <span class="slider round"></span> </label>
</td>
</tr>
<tr>
<td>
<H4 style="font-family:verdana; font-size:20">Neuro Evolution</H4>
</td>
<td>
<!-- Rounded switch -->
<label class="switch"> <input type="checkbox" id="nepredict" onclick="showNE()"> <span class="slider round"></span> </label>
</td>
</tr>
</table>
</td>
<th>Feature</th>
<th>Train</th>
<th>Test</th>
</tr>
<tr>
<td>DOWN-UP</td>
<td id=dutrain></td>
<td id=dutest></td>
</tr>
<tr>
<td>UP-DOWN</td>
<td id=udtrain></td>
<td id=udtest></td>
</tr>
<tr>
<td>DOWN-DOWN</td>
<td id=ddtrain></td>
<td id=ddtest></td>
</tr>
<tr>
<td>Count</td>
<td id=count></td>
<td></td>
</tr>
</table>
</div>
<div class="chart-container" style="position: absolute: 0px; top: 0px; right: 0px; bottom: 0px;">
<canvas id="DUChart" width="1000" height="500" class="chartjs-render-monitor" style="display: block; height: 250px; width: 500px;"></canvas>
</div>
<div class="chart-container" style="position: absolute: 0px; top: 0px; right: 0px; bottom: 0px;">
<canvas id="UDChart" width="1000" height="500" class="chartjs-render-monitor" style="display: block; height: 250px; width: 500px;"></canvas>
</div>
<div class="chart-container" style="position: absolute: 0px; top: 0px; right: 0px; bottom: 0px;">
<canvas id="DDChart" width="1000" height="500" class="chartjs-render-monitor" style="display: block; height: 250px; width: 500px;"></canvas>
</div>
<div class="chart-container" style="position: absolute: 0px; top: 0px; right: 0px; bottom: 0px;">
<H1 id="nnheader" align=center style="visibility: hidden; font-family:verdana; font-size:50"> Neural Network </H1>
<table id="nntable" style="visibility: hidden;">
<tr>
<th>Feature</th>
<th>Neural Network</th>
<th>Distance Classifier</th>
</tr>
<tr>
<td>DOWN-UP</td>
<td id=dunnpred></td>
<td id=dunnsmd></td>
</tr>
<tr>
<td>UP-DOWN</td>
<td id=udnnpred></td>
<td id=udnnsmd></td>
</tr>
<tr>
<td>DOWN-DOWN</td>
<td id=ddnnpred></td>
<td id=ddnnsmd></td>
</tr>
</table>
</div>
<div class="chart-container" style="position: absolute: 0px; top: 0px; right: 0px; bottom: 0px;">
<canvas id="DUNNChart" width="1000" height="500" class="chartjs-render-monitor" style="display: block; height: 250px; width: 500px;"></canvas>
</div>
<div class="chart-container" style="position: absolute: 0px; top: 0px; right: 0px; bottom: 0px;">
<canvas id="UDNNChart" width="1000" height="500" class="chartjs-render-monitor" style="display: block; height: 250px; width: 500px;"></canvas>
</div>
<div class="chart-container" style="position: absolute: 0px; top: 0px; right: 0px; bottom: 0px;">
<canvas id="DDNNChart" width="1000" height="500" class="chartjs-render-monitor" style="display: block; height: 250px; width: 500px;"></canvas>
</div>
<div class="chart-container" style="position: absolute: 0px; top: 0px; right: 0px; bottom: 0px;">
<H1 id="neheader" align=center style="visibility: hidden; font-family:verdana; font-size:50"> Neuro-Evolutionary Network </H1>
<table id="netable" style="visibility: hidden;">
<tr>
<th>Feature</th>
<th>Neuro-Evolutionary Network</th>
<th>Neural Network</th>
<th>Distance Classifier</th>
</tr>
<tr>
<td>DOWN-UP</td>
<td id=dunepred></td>
<td id=dunnpred_></td>
<td id=dunnsmd_></td>
</tr>
<tr>
<td>UP-DOWN</td>
<td id=udnepred></td>
<td id=udnnpred_></td>
<td id=udnnsmd_></td>
</tr>
<tr>
<td>DOWN-DOWN</td>
<td id=ddnepred></td>
<td id=ddnnpred_></td>
<td id=ddnnsmd_></td>
</tr>
</table>
</div>
<div class="chart-container" style="position: absolute: 0px; top: 0px; right: 0px; bottom: 0px;">
<canvas id="DUNEChart" width="1000" height="500" class="chartjs-render-monitor" style="display: block; height: 250px; width: 500px;"></canvas>
</div>
<div class="chart-container" style="position: absolute: 0px; top: 0px; right: 0px; bottom: 0px;">
<canvas id="UDNEChart" width="1000" height="500" class="chartjs-render-monitor" style="display: block; height: 250px; width: 500px;"></canvas>
</div>
<div class="chart-container" style="position: absolute: 0px; top: 0px; right: 0px; bottom: 0px;">
<canvas id="DDNEChart" width="1000" height="500" class="chartjs-render-monitor" style="display: block; height: 250px; width: 500px;"></canvas>
</div>
<div class="chart-container" style="position: absolute: 0px; top: 0px; right: 0px; bottom: 0px; width: 500px">
<canvas id="DU-UD" class="chartjs-render-monitor" style="display: block; height: 250px; width: 500px;"></canvas>
</div>
<div class="chart-container" style="position: absolute: 0px; top: 0px; right: 0px; bottom: 0px; width: 500px">
<canvas id="UD-DD" class="chartjs-render-monitor" style="display: block; height: 250px; width: 500px;"></canvas>
</div>
<div class="chart-container" style="position: absolute: 0px; top: 0px; right: 0px; bottom: 0px; width: 500px">
<canvas id="DD-DU" class="chartjs-render-monitor" style="display: block; height: 250px; width: 500px;"></canvas>
</div>
</div>
</body>
</html>