|
@@ -0,0 +1,61 @@
|
|
|
|
|
+<!doctype html>
|
|
|
|
|
+<html lang="en">
|
|
|
|
|
+<head>
|
|
|
|
|
+ <!-- Required meta tags -->
|
|
|
|
|
+ <meta charset="utf-8">
|
|
|
|
|
+ <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
|
|
|
+
|
|
|
|
|
+ <!-- Bootstrap CSS -->
|
|
|
|
|
+ <link rel="stylesheet" href="//stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
|
|
|
|
|
+
|
|
|
|
|
+ <title>Hello, world!</title>
|
|
|
|
|
+</head>
|
|
|
|
|
+<body>
|
|
|
|
|
+<div class="container">
|
|
|
|
|
+ <div class="row">
|
|
|
|
|
+ <div class="col">
|
|
|
|
|
+ <h1>Afmeldingen</h1>
|
|
|
|
|
+ <table class="table table-striped">
|
|
|
|
|
+ <caption>Afmeldingen</caption>
|
|
|
|
|
+ <thead>
|
|
|
|
|
+ <tr>
|
|
|
|
|
+ <th scope="col">#</th>
|
|
|
|
|
+ <th scope="col">datum</th>
|
|
|
|
|
+ <th scope="col">lijn</th>
|
|
|
|
|
+ <th scope="col">naam</th>
|
|
|
|
|
+ <th scope="col">afwezig</th>
|
|
|
|
|
+ <th scope="col">partner</th>
|
|
|
|
|
+ <th scope="col">invaller</th>
|
|
|
|
|
+ <th scope="col">email</th>
|
|
|
|
|
+ <th scope="col">opmerkingen</th>
|
|
|
|
|
+ </tr>
|
|
|
|
|
+ </thead>
|
|
|
|
|
+ <tbody>
|
|
|
|
|
+ </tbody>
|
|
|
|
|
+ </table>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+</div>
|
|
|
|
|
+<script
|
|
|
|
|
+ src="//code.jquery.com/jquery-3.4.1.min.js"
|
|
|
|
|
+ integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo="
|
|
|
|
|
+ crossorigin="anonymous"></script>
|
|
|
|
|
+<script src="//cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
|
|
|
|
|
+<script src="//stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
|
|
|
|
|
+<script>
|
|
|
|
|
+ $.getJSON('payload.json', (data) => {
|
|
|
|
|
+ console.log(data);
|
|
|
|
|
+ let items = [];
|
|
|
|
|
+ let i = 0;
|
|
|
|
|
+ $.each(data, (key, val) => {
|
|
|
|
|
+ console.log('key:', key, ' val:', val);
|
|
|
|
|
+ items.push( "<tr>" );
|
|
|
|
|
+ items.push( "<td scope=\"row\">" + i + "</tr>" );
|
|
|
|
|
+ items.push( "<td class=\""+key+"\">" + val["Lijn"] + "</td>" );
|
|
|
|
|
+ items.push( "</tr>" );
|
|
|
|
|
+ });
|
|
|
|
|
+ $( "<tbody/>", {class: "mydata", html: items.join("")} ).appendTo( "table" );
|
|
|
|
|
+ });
|
|
|
|
|
+</script>
|
|
|
|
|
+</body>
|
|
|
|
|
+</html>
|