Skip to content

Commit

Permalink
description
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkphp committed Mar 19, 2012
1 parent 55d5126 commit 5d75e8a
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,18 @@ How to Use
Include the BrowserID include.js library in your site by adding the following script tag to your pages:

<script src="https://browserid.org/include.js" type="text/javascript"></script>

And
#head
<script type="text/javascript" src="mootools.js"></script>
<script type="text/javascript" src="browserID.js.js"></script>

Then
Adding a pretty button:

#HTML
<button id="login"><img src="https://browserid.org/i/sign_in_green.png" alt="sign in with browser ID"></button>
#HTML
<button id="login"><img src="https://browserid.org/i/sign_in_green.png" alt="sign in with browser ID"></button>

When DOM is ready:

#JS
window.addEvent('domready', function(){
#JS
window.addEvent('domready', function(){

$('login').addEvent('click',function(){
navigator.id.getVerifiedEmail(function(assertion){
Expand All @@ -39,7 +37,7 @@ Then
}
})
})
})
})


function verify(assertion) {
Expand Down

0 comments on commit 5d75e8a

Please sign in to comment.