diff example/persona.html @ 33:67439bcdac48

example/persona.html
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 27 Dec 2013 13:06:26 -0800
parents f462dc131d57
children 119cf9c81d3d
line wrap: on
line diff
--- a/example/persona.html	Fri Dec 27 12:56:12 2013 -0800
+++ b/example/persona.html	Fri Dec 27 13:06:26 2013 -0800
@@ -10,7 +10,7 @@
 <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
 <script src="https://login.persona.org/include.js"></script>
 <script>
-function onload() {
+$(document).ready(function() {
 
 alert("page loaded!");
 
@@ -56,7 +56,7 @@
 if (signoutLink) {
   signoutLink.onclick = function() { navigator.id.logout(); };
 }
-}
+});
 </script>
 </head>