-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvote-now.html
More file actions
134 lines (101 loc) · 3.66 KB
/
vote-now.html
File metadata and controls
134 lines (101 loc) · 3.66 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Voting</title>
<link href="css/semantic.min.css" rel="stylesheet">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<style type="text/css">
body{background-color:#DADADA;}
body>.grid{height:100%;}
.image{margin-top:-100px;}
.column{max-width:550px;}
.text { font-size: 1.2rem;}
div.ui.very.relaxed.divided.list { text-align: left; }
.fixed.bottom.menu { bottom: 0; top: auto;}
.container.footer {font-size: 0.9rem !important; padding: 10px 0;}
</style>
</head>
<body class="page page-default">
<div class="ui middle aligned center aligned grid">
<div class="column">
<div id="stepthree" class="steps stepthree">
<h2 class="ui huge header">
<div class="ui black huge header">Canidates to Vote</div>
</h2>
<div class="ui huge stackable very padded segment">
<div class="ui very relaxed divided huge list" id="canidates">
<div class="item">
<img class="ui avatar image" src="images/can2.png">
<div class="content">
<a class="header">PM John</a>
<div class="description">UPJS</div>
</div>
<div class="right floated content">
<div class="ui radio checkbox">
<input type="radio" name="example2" checked="checked">
<label></label>
</div>
</div>
</div>
<div class="item">
<img class="ui avatar image" src="images/can1.jpg">
<div class="content">
<a class="header">Aruna JS</a>
<div class="description">PDJS</div>
</div>
<div class="right floated content">
<div class="ui radio checkbox">
<input type="radio" name="example2">
<label></label>
</div>
</div>
</div>
</div>
</div>
<button class="ui fluid green massive button" id="uplVoteNow">Vote Now</button>
<div class="ui fixed bottom menu">
<div class="ui text container footer">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Illum beatae necessitatibus quam esse aliquam voluptatem, quis incidunt quia aspernatur.<a href="index.html">Clear Session</a></div>
</div>
</div>
</div>
</div>
<script src="js/jquery.min.js"></script>
<script src="js/semantic.min.js"></script>
<script src="js/lightwallet.min.js"></script>
<script src="js/web3.js"></script>
<script src="js/hooked-web3-provider.js"></script>
<script src="js/async.js"></script>
<!-- <script src="js/ui.js"></script> -->
<script type="text/javascript">
jQuery(document).ready(function($) {
$.getJSON('json/canidates.json', function(datas) {
var html = '';
jQuery.each(datas, function(index, item) {
html += '<div class="item"> \
<img class="ui avatar image" src="'+item.picture+'">\
<div class="content"> \
<a class="header">'+item.name+'</a> \
<div class="description">'+item.desc+'</div> \
</div> \
<div class="right floated content"> \
<div class="ui radio checkbox"> \
<input type="radio" name="example2" checked="checked"> \
<label></label> \
</div> \
</div> \
</div>';
});
$('#canidates').html(html);
});
$('#uplVoteNow').on("click", function() {
$(this).prop('disabled', true);
setTimeout(function(){
window.location = "thank-you.html";
}, 500);
});
});
</script>
</body>