Created
December 18, 2011 23:48
-
-
Save alexdioso/1494853 to your computer and use it in GitHub Desktop.
BrowserID and jQuery
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#loginbuttn').click(function() { | |
navigator.id.getVerifiedEmail( | |
function(assertion) { | |
if (assertion !== null) { | |
alert("logged in"); | |
} else { | |
alert("not logged in") | |
} | |
} | |
) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment