-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
34 lines (26 loc) · 884 Bytes
/
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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
.button { color: white; background-color: teal; padding: 15px 15px; margin: 4px 2px; }
.code { color: red; }
</style>
<script src="credentials.js"> </script>
</head>
<body onLoad="onLoadHandler()">
<div>
<button class="button" id="registerButton">Register</button>
<button class="button" id="authenticateButton">Authenticate</button>
</div>
<hr/>
<p>Use <code>chrome://settings/securityKeys/</code> to delete the credential with username <code>deleteMe</code> when done.
<div id="message" class="info"></div>
<script>
function onLoadHandler() {
document.getElementById("registerButton").addEventListener("click", register);
document.getElementById("authenticateButton").addEventListener("click", authenticate);
}
</script>
</body>
</html>