view example/persona.html @ 26:feeb97e8c23c

example/persona.py
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 26 Dec 2013 21:18:15 -0800
parents 21124b238feb
children 0f57029d663d
line wrap: on
line source

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>bistyauth Mozilla persona test page</title>

<!-- Suppressing Compatability Mode for IE
https://developer.mozilla.org/en-US/Persona/Quick_Setup?redirectlocale=en-US&redirectslug=Persona%2FQuick_Setup#Suppressing_Compatibility_Mode -->
<meta http-equiv="X-UA-Compatible" content="IE=Edge">

<script src="https://login.persona.org/include.js"></script>
<script>
var signinLink = document.getElementById('signin');
if (signinLink) {
  signinLink.onclick = function() { navigator.id.request(); };
}

var signoutLink = document.getElementById('signout');
if (signoutLink) {
  signoutLink.onclick = function() { navigator.id.logout(); };
}
</script>
</head>

<body>
<h1>
<a href="https://login.persona.org/">Mozilla persona</a>
<a href="http://k0s.org/hg/bitsyauth/">bitsyauth</a>
test page
</h1>

<div>
  <a id="signin">sign in</a>
</div>

<h2>Resources</h2>
<ul>
  <li>
  <a href="https://developer.mozilla.org/en-US/Persona/branding">
  branding
  </a>:
  buttons and what not
  </li>
</ul>

</body>
</html>