-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvote-list.html
129 lines (95 loc) · 3.4 KB
/
vote-list.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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<!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>Available Elections - 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">Available Elections</div>
</h2>
<div class="ui huge stackable very padded segment">
<div class="ui very relaxed divided huge list" id="elections">
<div class="item">
<div class="content">
<a class="header">Election 2016</a>
<div class="description">Elect your canidate now!</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">
<div class="content">
<a class="header">Digitize Rewards</a>
<div class="description">Digitize indian rewards for better usage!</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="uplVote">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/ui.js"></script>
<script type="text/javascript">
jQuery(document).ready(function($) {
var html = '';
$.getJSON('json/elections.json', function(datas) {
jQuery.each(datas, function(index, item) {
html += '<div class="item"> \
<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>';
});
$('#elections').html(html);
});
$('#uplVote').on("click", function() {
$(this).prop('disabled', true);
setTimeout(function(){
window.location = "vote-now.html";
}, 500);
});
});
</script>
</body>
</html>