Mercurial > hg > bitsyauth
comparison example/persona.html @ 28:0f57029d663d
example/persona.html
| author | Jeff Hammel <jhammel@mozilla.com> | 
|---|---|
| date | Thu, 26 Dec 2013 23:38:42 -0800 | 
| parents | 21124b238feb | 
| children | 1bcb72011872 | 
   comparison
  equal
  deleted
  inserted
  replaced
| 27:b411066b4929 | 28:0f57029d663d | 
|---|---|
| 7 https://developer.mozilla.org/en-US/Persona/Quick_Setup?redirectlocale=en-US&redirectslug=Persona%2FQuick_Setup#Suppressing_Compatibility_Mode --> | 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"> | 8 <meta http-equiv="X-UA-Compatible" content="IE=Edge"> | 
| 9 | 9 | 
| 10 <script src="https://login.persona.org/include.js"></script> | 10 <script src="https://login.persona.org/include.js"></script> | 
| 11 <script> | 11 <script> | 
| 12 | |
| 13 function onload() { | |
| 14 | |
| 15 alert("page loaded!"); | |
| 16 | |
| 12 var signinLink = document.getElementById('signin'); | 17 var signinLink = document.getElementById('signin'); | 
| 13 if (signinLink) { | 18 if (signinLink) { | 
| 14 signinLink.onclick = function() { navigator.id.request(); }; | 19 signinLink.onclick = function() { navigator.id.request(); }; | 
| 15 } | 20 } | 
| 16 | 21 | 
| 17 var signoutLink = document.getElementById('signout'); | 22 var signoutLink = document.getElementById('signout'); | 
| 18 if (signoutLink) { | 23 if (signoutLink) { | 
| 19 signoutLink.onclick = function() { navigator.id.logout(); }; | 24 signoutLink.onclick = function() { navigator.id.logout(); }; | 
| 20 } | 25 } | 
| 26 } | |
| 21 </script> | 27 </script> | 
| 22 </head> | 28 </head> | 
| 23 | 29 | 
| 24 <body> | 30 <body onload="onload()"> | 
| 25 <h1> | 31 <h1> | 
| 26 <a href="https://login.persona.org/">Mozilla persona</a> | 32 <a href="https://login.persona.org/">Mozilla persona</a> | 
| 27 <a href="http://k0s.org/hg/bitsyauth/">bitsyauth</a> | 33 <a href="http://k0s.org/hg/bitsyauth/">bitsyauth</a> | 
| 28 test page | 34 test page | 
| 29 </h1> | 35 </h1> | 
