Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
IRMA
Github mirrors
irma_idin_webclient
Commits
4cfe83f4
Commit
4cfe83f4
authored
Apr 11, 2017
by
Fabian van den Broek
Browse files
Added done page after issuance
parent
9a42c200
Changes
2
Hide whitespace changes
Inline
Side-by-side
JS/iDIN-enroll.js
View file @
4cfe83f4
...
...
@@ -2,6 +2,8 @@ $(function() {
var
translTable
=
{
"
zipcode
"
:
"
Postcode
"
,
"
address
"
:
"
Adres
"
,
"
city
"
:
"
Stad
"
,
"
initials
"
:
"
Initialen
"
,
"
familyName
"
:
"
Achternaam
"
,
"
gender
"
:
"
Geslacht
"
,
"
dateOfBirth
"
:
"
Geboortedatum
"
,
"
country
"
:
"
Land
"
,
"
telephone
"
:
"
Telefoonnummer
"
,
"
email
"
:
"
e-mailadres
"
};
var
doneURL
=
"
done.html
"
;
function
addTableLine
(
head
,
data
){
if
(
data
!==
null
)
{
$
(
'
#attributeTable
'
)
...
...
@@ -24,9 +26,21 @@ $(function() {
// Clear errors
$
(
"
.form-group
"
).
removeClass
(
"
has-error
"
);
$
(
"
#alert_box
"
).
empty
();
IRMA
.
issue
(
Cookies
.
get
(
"
jwt
"
),
function
()
{
showSuccess
(
"
iDIN data successfully issued
"
);
},
showWarning
,
showError
);
//disable enroll button
$
(
"
#enroll
"
).
prop
(
'
disabled
'
,
true
);
IRMA
.
issue
(
Cookies
.
get
(
"
jwt
"
),
function
()
{
showSuccess
(
"
iDIN data successfully issued
"
);
window
.
location
.
replace
(
doneURL
);
},
function
()
{
$
(
"
#enroll
"
).
prop
(
'
disabled
'
,
false
);
showWarning
;
},
function
()
{
$
(
"
#enroll
"
).
prop
(
'
disabled
'
,
false
);
showError
;
});
});
//decode the issuing JWT and show the values in a table
...
...
done.html
0 → 100644
View file @
4cfe83f4
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"utf-8"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
/>
<link
href=
"css/bootstrap.min.css"
rel=
"stylesheet"
type=
"text/css"
/>
<title>
iDIN Attributen uitgegeven
</title>
</head>
<body>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"col-xs-12 col-md-8 col-lg-6 col-md-offset-2 col-lg-offset-3"
>
<h2>
Het uitgeven van iDIN attributen is geslaagd.
</h2>
<div
id=
"alert_box"
></div>
<p>
Gefeliciteerd! Je attributen zijn successvol in je IRMA app geladen.
Daar zijn ze nu zichtbaar.
</p>
<p>
Je kunt ze nu gebruiken op iedere website die deze attributen accepteert.
</p>
<a
href=
"https://privacybydesign.foundation/irma/"
>
Keer terug naar de Privacy by Design Foundation.
</a>
</div>
</div>
</div>
</body>
</html>
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment