Commit 1b798905 authored by Fabian van den Broek's avatar Fabian van den Broek
Browse files

WIP still to add: attributes & JWT in Cookies.

parent 51191224
This diff is collapsed.
<!DOCTYPE html>
<html lang="nl">
<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" />
<script type="text/javascript" src=""></script>
<script type="text/javascript" src="js.cookie.js"></script>
<title> Basis attributen laden met iDIN </title>
<script type="text/javascript" src="jquery-3.2.0.js"></script>
<!--<script src=""></script>-->
<script type="text/javascript" src="iDIN-enroll.js"></script>
<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>Beschikbare iDIN attributen</h2>
<div id="alert_box"></div>
<p>De volgende attributen kunnen gedownload worden:</p>
<table class="table" id="attributeTable">
<p>Klik de Laad attributen knop om deze attributen in je IRMA app te laden.</p>
<button id="enroll" class="btn btn-primary">Laad attributen in IRMA app</button>
<hr />
\ No newline at end of file
$(function() {
//TODO: make an array over which to loop
function addTableLine(head, data){
\ No newline at end of file
......@@ -26,7 +26,32 @@ $(function() {
console.log(jqXHR, status, error);
//retrieve banks and populate drop down
//enable continue button when a bank is selected
$('#bank-select').on('change', function () {
$('#continue').prop('disabled', this.value==='default');
//set correct URL for continue button
$('#form').submit(function(event) {
console.log("submit pressed");
var issuerID = $("#bank-select").prop("value");
type: "POST",
url: server + "/start",
data: issuerID,
contentType: "application/x-www-form-urlencoded; charset=UTF-8",
success: function(data){
console.log("redirect to: " + data);
error: error
......@@ -11,14 +11,17 @@
<title> Basis attributen laden met iDIN </title>
<script src=""></script>
<script type="text/javascript" src="jquery-3.2.0.js"></script>
<!--<script src=""></script>-->
<script type="text/javascript" src="iDIN.js"></script>
<select id="bank-select">
<option>Choose a bank</option>
<form id='form' method="post">
<select form='form' id="bank-select">
<option value="default">Choose a bank</option>
<input type="submit" id="continue" value="Ga naar bank" disabled="true" form='form'>
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment