comparison 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
comparison
equal deleted inserted replaced
32:f462dc131d57 33:67439bcdac48
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="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> 10 <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
11 <script src="https://login.persona.org/include.js"></script> 11 <script src="https://login.persona.org/include.js"></script>
12 <script> 12 <script>
13 function onload() { 13 $(document).ready(function() {
14 14
15 alert("page loaded!"); 15 alert("page loaded!");
16 16
17 var currentUser = null; 17 var currentUser = null;
18 18
54 54
55 var signoutLink = document.getElementById('signout'); 55 var signoutLink = document.getElementById('signout');
56 if (signoutLink) { 56 if (signoutLink) {
57 signoutLink.onclick = function() { navigator.id.logout(); }; 57 signoutLink.onclick = function() { navigator.id.logout(); };
58 } 58 }
59 } 59 });
60 </script> 60 </script>
61 </head> 61 </head>
62 62
63 <body> 63 <body>
64 <h1> 64 <h1>