-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
111 lines (105 loc) · 4.69 KB
/
index.html
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
<html>
<head>
<meta name="viewport" content="width=device-width">
<meta charset="UTF-8">
<title>Stemwijzer GO</title>
<link href="css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<link href="slick/slick.css" rel="stylesheet" type="text/css" />
<link href="slick/slick-theme.css" rel="stylesheet" type="text/css" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<!-- results component template -->
<script type="text/x-template" id="results-template">
<div class="bg-primary text-white text-center py-5">
<div class="container my-5">
<div class="row">
<div class="col">
<div class="m-3">
<h2>Resultaten</h2>
</div>
</div>
</div>
<div class="row" v-for="(score, partij) in orderList(results)">
<div class="col">
<div class="m-3">
<h3>{{score}}<br /><small>{{partij}}</small></h3>
</div>
</div>
</div>
</div>
</div>
</script>
<!-- component template -->
<script type="text/x-template" id="grid-template">
<main id="questions">
<!-- <div class="container">
<div class=row>
<div class="col" v-for="key in columns"
@click="sortBy(key)"
:class="{ active: sortKey == key }">
{{ key | capitalize }}
<span class="arrow" :class="sortOrders[key] > 0 ? 'asc' : 'dsc'">
</span>
</div>
</div>
</div> -->
<div class="bg-primary text-white text-center py-5">
<div class="container my-5">
<div class="row justify-content-center">
<div class="col-12 col-md-10 col-lg-8">
<h1>Stemwijzer Goeree-Overflakkee</h1>
<h2>Gemeenteraadsverkiezingen 2018</h2>
<p class="mt-5">Hieronder leest u de standpunten van alle kiesbare partijen in de gemeente. Vink bij elk thema de standpunten aan die overeenkomen met uw eigen mening. Na het invullen ziet u welke partijen het beste bij uw mening passen.</p>
</div>
</div>
</div>
</div>
<div v-for="(entry, index) in filteredData">
<div class="container my-5">
<div class="row">
<div class="col">
<div class="m-3">
<h2>{{entry['thema']}}</h2><br />
{{entry['vraag']}}
</div>
</div>
</div>
</div>
<div class="bg-light py-5">
<div class="container">
<div class="row justify-content-between">
<div class="col">
<div class="slick">
<div v-for="(key, colIndex) in randomize(columns)">
<div class="bg-white p-5 m-3">
<label :for="index+'_'+colIndex">{{entry[key]}}</label>
<h3 class="mb-0 mt-3 text-center" @click="updateScore(entry['thema'], key, index+'_'+colIndex)"><input type="checkbox" :name="index" :value="index+'_'+colIndex" :id="index+'_'+colIndex" /></h3>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
</script>
<!-- demo root element -->
<div id="demo">
<!-- <form id="search">
Search
<input name="query" v-model="searchQuery">
</form> -->
<demo-grid :data="gridData" :columns="gridColumns" :filter-key="searchQuery">
</demo-grid>
<results :results="gridResults">
</results>
</div>
<script src="standpunten.json" type="text/javascript"></script>
<script src="js/vue.min.js" type="text/javascript"></script>
<script src="js/jquery-3.3.1.min.js" type="text/javascript"></script>
<script src="slick/slick.min.js" type="text/javascript"></script>
<script src="js/script.js" type="text/javascript"></script>
</body>
</html>