Skip to content
This repository has been archived by the owner on May 10, 2019. It is now read-only.

Commit

Permalink
initial sketch of what it's like to write an rp
Browse files Browse the repository at this point in the history
  • Loading branch information
lloyd committed Apr 6, 2011
1 parent 128cf2f commit 1aa3438
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions rp/index.html
@@ -0,0 +1,44 @@
<html>
<body>
<p>
This is a simple tool that lets your 5 year old collect all of the
words they know on the computer. Its an introduction to task driven
computer usage for little ones.
</p>

<p>
To get started, <span id="login">log in</span>.
</p>

</body>
<script src="jquery-min.js"></script>
<script src="http://identity.mozilla.org/jsapi/include.js"></script>

This comment has been minimized.

Copy link
@fmarier

fmarier May 17, 2013

Contributor

Dude, HTTPS please! ;-)

This comment has been minimized.

Copy link
@lloyd

lloyd May 17, 2013

Author Contributor

I was young and dumb!

<script>
$(document).ready(function() {
$("#button").click(function() {
navigator.id.getVerifiedEmail(function(assertion) {
// assertion at this point is a blob that looks like this:
//
// {
// audience: "mywords.com",
// valid-until: <format TBD>,
// email: "sophia@hilaiel.coom"
// }
//
// Now we'll send this assertion up to the mywords server for
// validation

$.post(
'/login',
JSON.stringify(assertion),
function(data, textStatus) {
// we've got a response from the server half of the mywords
// application which has validated the assertion
console.log(data);
});
});
});
});
</script>

</html>

0 comments on commit 1aa3438

Please sign in to comment.