-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdetail.html
More file actions
346 lines (311 loc) · 17 KB
/
detail.html
File metadata and controls
346 lines (311 loc) · 17 KB
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width">
<meta name="theme-color" content="#444444">
<title>Overseas Pemilu 2019</title>
<!-- Meta Tags -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="Purbohadi Utomo">
<meta name="description" content="Pemilu 2019 Website. Indonesia's Presidential and Legislative Election 2019.">
<meta name="keywords" content="Pemilu,Candidates,Profile,2019">
<!-- Open Graph Meta Tags -->
<meta property="og:title" content="Overseas Pemilu 2019" />
<meta property="og:description" content="Pemilu 2019 Website. Indonesia's Presidential and Legislative Election 2019.">
<meta property="og:image" content="https://pemilu2019.vlogz.win/images/pemilu.png" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<!-- Bootstrap 4.1.3 -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
<script>
function onSubmit() {
document.getElementById("contact-form").submit();
}
var getUrlVars = function(){
var vars = [], hash;
var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
for(var i = 0; i < hashes.length; i++){
hash = hashes[i].split('=');
vars.push(decodeURIComponent(hash[0]));
vars[decodeURIComponent(hash[0])] = decodeURIComponent(hash[1]);
}
if(vars[0] == window.location.href){
vars =[];
}
return vars;
}
var params = getUrlVars();
var candidateNumber = params["candidate_number"];
var candidateName = params["candidate_name"];
// console.log(params["candidate_number"]);
// console.log(params["candidate_name"]);
var form = document.getElementsByClassName('needs-validation');
form.onreset = onReset;
function onReset(event) {
console.log("test Reset" + widgetId);
}
function onLoad(){
document.getElementById("candidate_number").innerHTML = candidateNumber+'.';
document.getElementById("candidate_name").innerHTML = candidateName;
// var candidateName = document.getElementById("candidate_name").innerHTML;
document.getElementById("_candidate_name").value=candidateName;
}
</script>
<style>
body {
background-color:white;
margin-bottom:100px;
background: url("../images/logo-kotak-pemilu.jpg") right top no-repeat, url("../images/mascot.png") fixed bottom no-repeat;
opacity:0.9;
}
.star-rating {
display: flex;
flex-direction: row-reverse;
font-size: 1.5em;
justify-content: space-between;
padding: 0.2em;
}
.star-rating input {
display: none;
}
.star-rating label {
color: #ccc;
cursor: pointer;
}
.star-rating :checked~label {
color: #fc0;
}
.star-rating label:hover,
.star-rating label:hover~label {
color: #fc0;
}
a {
color:#007bff !important;
}
a:hover {
color:#c00 !important;
}
a:visited {
color:#37404e !important;
}
</style>
</head>
<body onload="onLoad()">
<a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
<div class="m-5 pb-5 bg-light">
<header>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="index.html">
<img src="images/logo-kotak-pemilu.jpg" width="50" height="50" alt="Pemilu logo">
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarToggler" aria-controls="navbarToggler" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarToggler">
<ul class="nav nav-tabs">
<li class="nav-item">
<a class="nav-link" href="index.html">Home</a>
</li>
<li class="nav-item">
<a class="nav-link active" href="rating.html">Rating</a>
</li>
<li class="nav-item">
<a class="nav-link" href="howto.html">How To</a>
</li>
<li class="nav-item">
<a class="nav-link" href="faq.html">FAQ</a>
</li>
<li class="nav-item">
<a class="nav-link" href="contact.html">Contact Us</a>
</li>
</ul>
</div>
</nav>
</header>
<div class="container-fluid" id="content" tabindex="-1">
<h1>Candidate Information</h1>
<div class="row">
<div class="col-xs-12 col-sm-6 col-md-6 col-lg-6 col-xl-6">
<table class="table-borderless">
<caption>Candidate Details Information</caption>
<thead>
<tr class="d-flex">
<th id="candidate_number" class="col-1 h2 text-center"></th>
<th id="candidate_name" class="col-6 h2 text-center"></th>
</tr>
</thead>
<tbody>
<tr class="d-flex">
<td id="candidate_picture"><img alt="Candidate Photo" src="images/profile-no-picture.png" class="img-fluid col-12"></td>
</tr>
<tr class="d-flex">
<td id="candidate_rating" class="col-1 text-center display-4">⭐ ⭐ ⭐ ⭐ ⭐</td>
</tr>
</tbody>
</table>
</div>
<div class="container col-xs-12 col-sm-6 col-md-6 col-lg-6 col-xl-6">
<div class="row">
<div class="col-12 display-4 lead">Profile</div>
</div>
<div class="row">
<div class="col-3 lead">Gender</div>
<div class="col-1 lead">:</div>
<div class="col-8 lead" id="gender">Male</div>
</div>
<div class="row">
<div class="col-3 lead">Age</div>
<div class="col-1 lead">:</div>
<div class="col-8 lead" id="gender">38</div>
</div>
<div class="row">
<div class="col-3 lead">Education</div>
<div class="col-1 lead">:</div>
<div class="col-8 lead" id="gender">Master of Politics</div>
</div>
<div class="row">
<div class="col-3 lead">Occupation</div>
<div class="col-1 lead">:</div>
<div class="col-8 lead" id="gender">Entrepreneur</div>
</div>
<div class="row">
<div class="col-3 lead">Religion</div>
<div class="col-1 lead">:</div>
<div class="col-8 lead" id="gender">Islam</div>
</div>
<div class="row">
<div class="col-3 lead">Address</div>
<div class="col-1 lead">:</div>
<div class="col-8 lead" id="gender">Jakarta Selatan</div>
</div>
<div class="row">
<div class="col-3 lead">Motivation</div>
<div class="col-1 lead">:</div>
<div class="col-8 lead" id="gender">To build a stronger nation</div>
</div>
<div class="row">
<div class="col-3 lead">Goal</div>
<div class="col-1 lead">:</div>
<div class="col-8 lead" id="gender">Improve budget and goverment spending efficiency</div>
</div>
<div>
<h3 class="lead" aria-label="Submit a rating">Submit a rating :</h3>
<form class="needs-validation" id="rating-form" method="POST" action="https://formspree.io/purbohadi.utomo@gmail.com" novalidate>
<input type="hidden" name="_subject" value="Rating data from users">
<input type="hidden" id="_candidate_name" name="candidate name" >
<div class="form-group">
<label for="rating-name" class="col-form-label">Name</label>
<div>
<input type="text" class="form-control" id="rating-name" aria-label="Name" aria-required="true" placeholder="Name" name="name" required>
<div class="invalid-feedback">
Name is required.
</div>
</div>
</div>
<div class="form-group">
<label for="rating-comments" class="col-form-label">Comments</label>
<div>
<textarea class="form-control" id="rating-comments" aria-label="Rating Comments" rows="3" aria-required="true" name="comments" placeholder="Comments" required></textarea>
<div class="invalid-feedback">
Comments is required.
</div>
</div>
</div>
<div class="star-rating">
<input type="radio" id="rating5" name="rating" value="5" />
<label for="rating5" class="star" tabindex="0" aria-label="Rating 5 out of 5">★</label>
<input type="radio" id="rating4" name="rating" value="4" />
<label for="rating4" class="star" tabindex="0" aria-label="Rating 4 out of 5">★</label>
<input type="radio" id="rating3" name="rating" value="3" />
<label for="rating3" class="star" tabindex="0" aria-label="Rating 3 out of 5">★</label>
<input type="radio" id="rating2" name="rating" value="2" />
<label for="rating2" class="star" tabindex="0" aria-label="Rating 2 out of 5">★</label>
<input type="radio" id="rating1" name="rating" value="1" />
<label for="rating1" class="star" tabindex="0" aria-label="Rating 1 out of 5">★</label>
</div>
<div class="form-group">
<div class="form-check">
<input class="form-check-input" type="checkbox" value="" id="invalidCheck" required>
<label class="form-check-label" for="invalidCheck">
Agree to terms and conditions
</label>
<div class="invalid-feedback">
You must agree before submitting.
</div>
</div>
</div>
<div class="form-group" aria-label="Submit and Reset Buttons">
<button type="reset" class="btn btn-primary" data-callback="onReset" value="Reset">Reset</button>
<button type="submit" class="btn btn-primary mx-5" data-callback="onSubmit" value="Submit">Submit</button>
</div>
<p id="submissions-status"></p>
</form>
<script>
// JavaScript to validate form submissions.
(function() {
'use strict';
window.addEventListener('load', function() {
var forms = document.getElementsByClassName('needs-validation');
var validation = Array.prototype.filter.call(forms, function(form) {
form.addEventListener('submit', function(event) {
if (form.checkValidity() === false) {
event.preventDefault();
event.stopPropagation();
}
form.classList.add('was-validated');
}, false);
});
}, false);
})();
// (function onLoad(){
// var candidateName = document.getElementById("candidate_name").innerHTML;
// document.getElementById("_candidate_name").value=candidateName;
// })();
// $("#candidate_name").text($("candidate"));
</script>
</div>
</div>
</div>
</div>
</div>
</body>
<!-- Footer -->
<footer class="page-footer font-small blue pt-4 m-5 pb-5 bg-light">
<div class="container-fluid text-center text-md-left">
<div class="row">
<div class="col-md-6 mt-md-0 mt-3">
<h5 class="text-uppercase">Overseas Pemilu 2019</h5>
<p>Disclaimer, this website is independent website aggregating legislative and presidential data from KPU. This website doesn't affiliated with official KPU website and any political party. Legislative data aggregated from various sources. Data is not guaranteed 100% accurate. There is possibility of incomplete or obsolete data. If you found inaccuracy in the data you can contact the creator at <a href="https://vlogz.win">vlogz.win</a></p>
</div>
<hr class="clearfix w-100 d-md-none pb-3">
<div class="col-md-3 mb-md-0 mb-3">
<h5 class="text-uppercase">Offcial KPU Pemilu website</h5>
<ul class="list-unstyled">
<li>
<a href="https://kpu.go.id">KPU</a>
</li>
</ul>
</div>
<div class="col-md-3 mb-md-0 mb-3">
<h5 class="text-uppercase">Independent Pemilu 2019 website</h5>
<ul class="list-unstyled">
<li>
<a href="https://kawalpemilu.org">Kawal Pemilu</a>
</li>
<li>
<a href="http://pileg2019.xyz/">Pileg 2019</a>
</li>
</ul>
</div>
</div>
</div>
<div class="footer-copyright text-center py-3">© 2019 Copyright:
<a href="https://pemilu2019.wlogz.win"> Pemilu 2019</a>
</div>
</footer>
</html>