diff 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
line wrap: on
line diff
--- a/example/persona.html	Thu Dec 26 22:43:24 2013 -0800
+++ b/example/persona.html	Thu Dec 26 23:38:42 2013 -0800
@@ -9,19 +9,25 @@
 
 <script src="https://login.persona.org/include.js"></script>
 <script>
+
+function onload() {
+
+alert("page loaded!");
+
 var signinLink = document.getElementById('signin');
 if (signinLink) {
-  signinLink.onclick = function() { navigator.id.request(); };
+signinLink.onclick = function() { navigator.id.request(); };
 }
 
 var signoutLink = document.getElementById('signout');
 if (signoutLink) {
   signoutLink.onclick = function() { navigator.id.logout(); };
 }
+}
 </script>
 </head>
 
-<body>
+<body onload="onload()">
 <h1>
 <a href="https://login.persona.org/">Mozilla persona</a>
 <a href="http://k0s.org/hg/bitsyauth/">bitsyauth</a>