-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBrowserID.html
More file actions
23 lines (23 loc) · 796 Bytes
/
BrowserID.html
File metadata and controls
23 lines (23 loc) · 796 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html>
<html>
<head>
<title>BrowserID</title>
<script src="http://code.jquery.com/jquery-latest.js" type="text/javascript"></script>
<script src="jquery.browserid.js" type="text/javascript"></script>
<script type="text/javascript">
$(function () {
$('.btn').browserid(
function (assertion) {
alert(assertion);
},
{
assertionSuccessFunction: function () { alert('Success!'); },
errorHandler: function () { alert('Error!'); }
});
});
</script>
</head>
<body>
<div class="btn" style="cursor: pointer; width: 79px; height: 22px; background: url(https://browserid.org/i/sign_in_red.png)"></div>
</body>
</html>