Code · 119 lines · 2918 bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119<!doctype html>
<html lang="en">
<head>
	<title>Just Testing</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<meta charset="utf-8" />

	<!-- nugetpackage netproxy -->
	<link href="css/netproxyspinner.css" rel="stylesheet" />
	<script src="scripts/macros.js" defer></script>
	<script src="scripts/netproxy.js" defer></script>

	<link href="Default.css" rel="stylesheet" />
	<link href="Ui.css" rel="stylesheet" />
	<script src="Default.js" defer></script>

</head>
<body>
	<img src="images/netproxyspinner.gif" id="netproxyspinner" />

	<div><span id="ShowCollections" class="ui-btn">ShowCollections</span></div>

	<div><span id="Fracties" class="ui-btn">Fracties</span></div>

	<div><span id="Personen" class="ui-btn">Personen</span></div>

	<div><span id="Documenten" class="ui-btn">Documenten</span></div>

	<div><a href="moties.htm" class="ui-btn">Moties</a></div>

	<div id="Output"></div>


	<script type="text/template" id="TemplateList">
		<table class="TableNormal">
			<tr>
				<th>Index</th>
				<th>Name</th>
			</tr>
			{{ this.List.forEach(function (item,index) { }}
			<tr><td>{{=index}}</td><td>{{=item}}</td></tr>
			{{ }); }}
		</table>
	</script>

	<script type="text/template" id="TemplateIdList">
		<table class="TableNormal">
			<tr>
				<th>Index</th>
				<th>Name</th>
			</tr>
			{{ this.List.forEach(function (item,index) { }}
			<tr><td>{{=index}}</td><td>{{=item._id}}</td></tr>
			{{ }); }}
		</table>
	</script>

	<script type="text/template" id="TemplateObjectProperties">
		<table class="TableNormal">
			<tbody>
				{{ this.List.forEach(function (item,index) { }}
				{{ if(index == 0){ }}
				<tr>
					{{ Object.getOwnPropertyNames(item).forEach(function (propname) { }}
					<th>{{=propname}}</th>
					{{ }); }}
				</tr>
				{{ } }}
				<tr>
					{{ Object.getOwnPropertyNames(item).forEach(function (propname) { }}
					<td>
						{{=item[propname]}}
					</td>
					{{ }); }}
				</tr>
				{{ }); }}
			</tbody>
		</table>
	</script>

	<script type="text/template" id="TemplateNevenfuncties">
		<table class="TableNormal">
			<tbody>
				<tr>
					<th>Naam</th>
					<th>Nevenfuncties</th>
				</tr>
				{{ this.List.forEach(function (persoon) { }}
				<tr>
					<td>
						{{=persoon["roepnaam"]}} {{=persoon["tussenvoegsel"]}} {{=persoon["achternaam"]}}
					</td>
					<td>
						{{ if(persoon.nevenfuncties) { }}
						{{ persoon.nevenfuncties.forEach(function (nevenfunctie) { }}
						<p><b>{{=nevenfunctie.omschrijving}} ({{=nevenfunctie.soort}})</b></p>
						{{ if(nevenfunctie.inkomsten) { }}
						{{ nevenfunctie.inkomsten.forEach(function (inkomst) { }}
						<table>
							<tr>
								<td>{{=inkomst.jaar}}</td>
								<td>{{=inkomst.bedrag}}</td>
							</tr>
						</table>
						{{ }); }}
						{{ } }}
						{{ }); }}
						{{ } }}
					</td>
				</tr>
				{{ }); }}
			</tbody>
		</table>
	</script>



</body>
</html>