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
02365718
Commit
02365718
authored
May 04, 2017
by
Fabian van den Broek
Browse files
added missing variables
parent
a8df1eb5
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/done.html
View file @
02365718
...
...
@@ -4,8 +4,13 @@
<meta
charset=
"utf-8"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
/>
<meta
name=
"irma-web-server"
value=
"[API_WEB_URL]"
/>
<meta
name=
"irma-api-server"
value=
"[API_SERVER_URL]"
/>
<link
href=
"bower_components/bootstrap/dist/css/bootstrap.min.css"
rel=
"stylesheet"
>
<script
type=
"text/javascript"
src=
"bower_components/jwt-decode/build/jwt-decode.js"
></script>
<script
type=
"text/javascript"
src=
"bower_components/jquery/dist/jquery.js"
></script>
<script
type=
"text/javascript"
src=
"[IRMA_JS_URL]irma.js"
></script>
<script
type=
"text/javascript"
src=
"js/common.js"
></script>
<script
type=
"text/javascript"
src=
"js/iDIN-verify.js"
></script>
...
...
@@ -32,10 +37,10 @@
<p>
Je kunt ze nu gebruiken op iedere website die deze attributen accepteert.
<br/>
Als je direct
éé
n van je nieuwe attributen wilt testen, druk dan op de onderstaande knop.
Als je direct
ee
n van je nieuwe attributen wilt testen, druk dan op de onderstaande knop.
</p>
<button
id=
"verify_idin_bd_btn"
class=
"btn btn-primary"
>
Test Attribut
es
</button>
<button
id=
"verify_idin_bd_btn"
class=
"btn btn-primary"
>
Test Attribu
u
t
</button>
<h3
id=
"result_header"
></h3>
<h4
id=
"result_status"
></h4>
...
...
src/js/iDIN-verify.js
View file @
02365718
$
(
function
()
{
var
success_fun
=
function
(
data
)
{
$
(
"
#result_status
"
).
html
(
"
Succes
s
!
"
);
$
(
"
#result_status
"
).
html
(
"
Succes!
"
);
$
(
"
#result_header
"
).
html
(
"
Resultaat
"
);
var
bd
=
jwt_decode
(
data
).
attributes
[
"
pbdf.pbdf.idinData.dateOfBirth
"
];
$
(
"
#token-content
"
).
html
(
"
<b>Uw geboortedatum is:</b>
"
+
bd
);
...
...
@@ -16,7 +16,7 @@ $(function() {
console
.
log
(
"
De verificatie is niet gelukt!
"
);
console
.
log
(
"
Error data:
"
,
data
);
$
(
"
#result_header
"
).
html
(
"
Resultaat
"
);
$
(
"
#result_status
"
).
html
(
"
Failure
!
"
);
$
(
"
#result_status
"
).
html
(
"
Mislukt
!
"
);
}
$
(
"
#verify_idin_bd_btn
"
).
on
(
"
click
"
,
function
()
{
...
...
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