Mercurial > hg > bitsyauth
comparison example/persona.html @ 23:21124b238feb
stub persona/browserid example
| author | Jeff Hammel <jhammel@mozilla.com> |
|---|---|
| date | Thu, 26 Dec 2013 20:04:08 -0800 |
| parents | |
| children | 0f57029d663d |
comparison
equal
deleted
inserted
replaced
| 22:9aa73d2d5aa8 | 23:21124b238feb |
|---|---|
| 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
| 2 <html> | |
| 3 <head> | |
| 4 <title>bistyauth Mozilla persona test page</title> | |
| 5 | |
| 6 <!-- Suppressing Compatability Mode for IE | |
| 7 https://developer.mozilla.org/en-US/Persona/Quick_Setup?redirectlocale=en-US&redirectslug=Persona%2FQuick_Setup#Suppressing_Compatibility_Mode --> | |
| 8 <meta http-equiv="X-UA-Compatible" content="IE=Edge"> | |
| 9 | |
| 10 <script src="https://login.persona.org/include.js"></script> | |
| 11 <script> | |
| 12 var signinLink = document.getElementById('signin'); | |
| 13 if (signinLink) { | |
| 14 signinLink.onclick = function() { navigator.id.request(); }; | |
| 15 } | |
| 16 | |
| 17 var signoutLink = document.getElementById('signout'); | |
| 18 if (signoutLink) { | |
| 19 signoutLink.onclick = function() { navigator.id.logout(); }; | |
| 20 } | |
| 21 </script> | |
| 22 </head> | |
| 23 | |
| 24 <body> | |
| 25 <h1> | |
| 26 <a href="https://login.persona.org/">Mozilla persona</a> | |
| 27 <a href="http://k0s.org/hg/bitsyauth/">bitsyauth</a> | |
| 28 test page | |
| 29 </h1> | |
| 30 | |
| 31 <div> | |
| 32 <a id="signin">sign in</a> | |
| 33 </div> | |
| 34 | |
| 35 <h2>Resources</h2> | |
| 36 <ul> | |
| 37 <li> | |
| 38 <a href="https://developer.mozilla.org/en-US/Persona/branding"> | |
| 39 branding | |
| 40 </a>: | |
| 41 buttons and what not | |
| 42 </li> | |
| 43 </ul> | |
| 44 | |
| 45 </body> | |
| 46 </html> |
