Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
persona
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hexang 息壤平台
persona
Commits
8796a571
Commit
8796a571
authored
14 years ago
by
Lloyd Hilaiel
Browse files
Options
Downloads
Patches
Plain Diff
trivial bit of styling of the sample application to get a feel for the developer/user experience
parent
666c083c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
authority/jsapi/picker.js
+1
-1
1 addition, 1 deletion
authority/jsapi/picker.js
rp/index.html
+61
-6
61 additions, 6 deletions
rp/index.html
with
62 additions
and
7 deletions
authority/jsapi/picker.js
+
1
−
1
View file @
8796a571
...
...
@@ -30,7 +30,7 @@ chan.bind("getVerifiedEmail", function(trans, s) {
list
.
appendChild
(
li
);
});
// now
let's
make the body visible
// now make the body visible
...
document
.
getElementById
(
"
body
"
).
style
.
display
=
"
block
"
;
});
This diff is collapsed.
Click to expand it.
rp/index.html
+
61
−
6
View file @
8796a571
<html>
<head>
<title>
All My Words
</title>
<style>
body
{
background-color
:
#000055
;
color
:
#ccc
;
}
#appcontainer
{
width
:
600px
;
margin
:
auto
;
font
:
200
14px
/
1.2
"League Gothic"
,
Haettenschweiler
,
sans-serif
;
}
#sitetitle
{
font-size
:
2em
;
color
:
#fff
;
font-weight
:
bold
;
margin-left
:
-2em
;
margin-top
:
-200px
;
padding-bottom
:
200px
;
}
a
{
color
:
#fff
;
}
#logininstructions
{
width
:
300px
;
margin
:
auto
;
}
.content
{
display
:
none
;
}
</style>
</head>
</style>
</head>
<body>
<p>
<div
id=
"appcontainer"
>
<div
id=
"sitetitle"
>
All My Words
</div>
<p
class=
"content"
>
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.
computer usage for little ones. It's
<i>
also
</i>
(uh, and primarily)
an example app that uses Mozilla ID for an awesome login experience.
</p>
<p>
<p
class=
"content"
id=
"logininstructions"
>
To get started,
<a
href=
"#"
id=
"login"
>
log in
</a>
.
</p>
</div>
</body>
<script
src=
"jquery-min.js"
></script>
<script
src=
"http://authority.mozilla.org/jsapi/include.js"
></script>
<script>
$
(
document
).
ready
(
function
()
{
$
(
"
.content
"
).
fadeIn
(
700
);
$
(
"
#sitetitle
"
).
animate
({
"
marginTop
"
:
"
0px
"
,
"
paddingBottom
"
:
"
0px
"
},
"
fast
"
);
$
(
"
#sitetitle
"
).
animate
({
"
marginTop
"
:
"
-10px
"
,
"
paddingBottom
"
:
"
10px
"
},
"
medium
"
);
$
(
"
#sitetitle
"
).
animate
({
"
marginTop
"
:
"
0px
"
,
"
paddingBottom
"
:
"
0px
"
},
"
medium
"
);
$
(
"
#sitetitle
"
).
animate
({
"
marginTop
"
:
"
-6px
"
,
"
paddingBottom
"
:
"
6px
"
},
"
slow
"
);
$
(
"
#sitetitle
"
).
animate
({
"
marginTop
"
:
"
0px
"
,
"
paddingBottom
"
:
"
0px
"
},
"
slow
"
);
$
(
"
#login
"
).
click
(
function
()
{
$
(
"
#logininstructions
"
).
empty
().
text
(
"
logging you in using mozilla ID...
"
);
navigator
.
id
.
getVerifiedEmail
(
function
(
assertion
)
{
// assertion at this point is a blob that looks like this:
//
...
...
@@ -27,7 +82,7 @@ computer usage for little ones.
//
// Now we'll send this assertion up to the mywords server for
// validation
console
.
log
(
"
got assertion:
"
+
assertion
);
$
(
"
#logininstructions
"
).
empty
().
html
(
$
(
"
<p>verifying your identity of <i>
"
+
assertion
+
"
</i></p>
"
)
);
$
.
post
(
'
/login
'
,
...
...
@@ -35,7 +90,7 @@ computer usage for little ones.
function
(
data
,
textStatus
)
{
// we've got a response from the server half of the mywords
// application which has validated the assertion
console
.
log
(
data
);
$
(
"
#logininstructions
"
).
empty
().
text
(
"
verification complete:
"
+
data
);
});
},
function
(
code
,
msg
)
{
alert
(
"
something very bad happened! (
"
+
code
+
"
):
"
+
msg
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment