This repository was archived by the owner on May 10, 2019. It is now read-only.
File tree 1 file changed +44
-0
lines changed
1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change
1
+ < html >
2
+ < body >
3
+ < p >
4
+ This is a simple tool that lets your 5 year old collect all of the
5
+ words they know on the computer. Its an introduction to task driven
6
+ computer usage for little ones.
7
+ </ p >
8
+
9
+ < p >
10
+ To get started, < span id ="login "> log in</ span > .
11
+ </ p >
12
+
13
+ </ body >
14
+ < script src ="jquery-min.js "> </ script >
15
+ < script src ="http://identity.mozilla.org/jsapi/include.js "> </ script >
16
+ < script >
17
+ $ ( document ) . ready ( function ( ) {
18
+ $ ( "#button" ) . click ( function ( ) {
19
+ navigator . id . getVerifiedEmail ( function ( assertion ) {
20
+ // assertion at this point is a blob that looks like this:
21
+ //
22
+ // {
23
+ // audience: "mywords.com",
24
+ // valid-until: <format TBD>,
25
+ // email: "sophia@hilaiel.coom"
26
+ // }
27
+ //
28
+ // Now we'll send this assertion up to the mywords server for
29
+ // validation
30
+
31
+ $ . post (
32
+ '/login' ,
33
+ JSON . stringify ( assertion ) ,
34
+ function ( data , textStatus ) {
35
+ // we've got a response from the server half of the mywords
36
+ // application which has validated the assertion
37
+ console . log ( data ) ;
38
+ } ) ;
39
+ } ) ;
40
+ } ) ;
41
+ } ) ;
42
+ </ script >
43
+
44
+ </ html >
You can’t perform that action at this time.
0 commit comments