forked from BusProject/Ballot
/
index.html.erb
161 lines (149 loc) · 8.73 KB
/
index.html.erb
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
<!DOCTYPE html>
<html>
<head>
<title><%= @base.title %> Voter Guide</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="/stylesheets/main.css">
<link rel="shortcut icon" href="/images/favicon.png" type="image/x-icon" />
<%= @meta_partial %>
</head>
<body>
<div class="container">
<div class="header">
<h1><%= @base.title %></h1>
<h1 class="big">Voter Guide</h1>
<h1>Vote by <%= @base.date %></h1>
</div>
<div class="section">
<div class="inner" id="State’s Attorney-">
<h2>State’s Attorney</h2>
<h3>What She or He Does</h3>
<p>Cook County’s State’s Attorney is the chief prosecutor for the second-largest county in the United States. They are responsible for prosecuting crime and protecting civil liberties. A State’s Attorney can hold police accountable for their actions and recommend sentencing lengths.</p>
<% @candidates.each do |candidate| %>
<div class="candidate <%= "row-#{[nil,1,2][@candidates.length]}" if @candidates.length < 3 %>">
<h2><%= candidate['name'] %></h2>
<div class="img" style="background-image: url('<%= candidate["photo"] || 'images/unknown.jpg' %>');" ></div>
<div class="social">
<% if candidate['website'] %>
<a target="_blank" href="<%= candidate['website'] %>">
<i class="fa fa-link"></i>
Website
</a>
<% end %>
<% if candidate['facebook'] %>
<a target="_blank" href="<%= candidate['facebook'] %>">
<i class="fa fa-facebook-square"></i>
Facebook
</a>
<% end %>
</div>
<div class="endorsements">
<h4>Endorsed By:</h4>
<ul >
<% candidate["endorsements"].split('|').each do |endorsement| %>
<li><%= endorsement %></li>
<% end %>
</ul>
</div>
<a class="vote_for" data-name="<%= candidate["name"] %>" data-link="/sharing/candidates/<%= make_uri candidate['office'] %>-<%= make_uri candidate['name'] %>.html" data-office="<%= candidate['office'] %>" onclick="endorsementWidget(this)">endorse</a>
</div>
<% end %>
</div>
<div class="issues">
<h3>Where They Stand</h3>
<div class="scroll">
<table>
<thead>
<tr>
<th></th>
<% @candidates.each do |candidate| %>
<th>
<div class="img" style="background-image: url(<%= candidate["photo"] %>);" ></div>
</th>
<% end %>
</tr>
</thead>
<tbody>
<% @questions.each do |question| %>
<tr>
<td class="question"><%= question %></td>
<% @candidates.each do |candidate| %>
<td><%= candidate[question.downcase] %></td>
<% end %>
</tr>
<% end %>
</tbody>
</table>
</div>
<h3>Sources</h3>
<ul class="sources">
<% %w{
http://chicago.suntimes.com/news/7/71/1231606/donna-more-launches-candidacy-cook-county-states-attorney
http://chicago.suntimes.com/news/7/71/1186543/brown-alvarez-tell-commissioners-bring
http://www.chicagobusiness.com/article/20151112/BLOGS02/151119933/heavy-hitters-make-their-moves-in-states-attorneys-race
http://www.wbez.org/programs/morning-shift/2016-01-28/cook-county-state%E2%80%99s-attorney-democratic-candidates-debate-114634
http://abc7chicago.com/politics/democratic-cook-county-states-attorney-candidates-face-off-at-forum/1177976/
http://www.progressillinois.com/posts/content/2016/01/18/cook-county-states-attorney-candidates-talk-police-accountability-faith
http://www.chicagotribune.com/news/local/politics/ct-states-attorney-cook-county-democrats-met-20160108-story.html
http://www.chicagotribune.com/news/local/breaking/ct-alvarez-drug-plan-met-20150420-story.html
http://www.progressillinois.com/posts/content/2016/01/18/cook-county-states-attorney-candidates-talk-police-accountability-faith
http://www.chicagotribune.com/news/local/politics/ct-states-attorney-cook-county-democrats-met-20160108-story.html
}.each do |source| %>
<li><a target="_blank" href="<%= source %>"><%= source %></a></li>
<% end %>
</ul>
<p>This independent voter guide is designed to give you the quickest, most essential information for E-Day. A candidates’ fitness for office should be judged on a variety of qualifications that go beyond their responses to the questions contained in the guide.</p>
</div>
</div>
<div class="section">
<div class="inner">
<div class="about">
<h1>How Do I Vote?</h1>
<h3>What You’ve Gotta Bring</h3>
<p>
To avoid issues on Election Day, or if you are a first time voter, we recommend you bring some form of identification. Options for what you can bring to prove identity and residency:
</p>
<ul>
<li>Current bank statement with name and address</li>
<li>Current utility bill with name and address</li>
<li>Recent government check with name and address</li>
<li>Valid and current state ID issued by the Illinois Secretary of State</li>
<li>Recent paycheck with name and address</li>
<li>Recent government document that shows the name and address</li>
<li>Current school or college ID card</li>
<li>Copy of a current and valid photo ID</li>
</ul>
<h3>Get Registered</h3>
<p>If you are not already registered to vote, you may use grace period voter registration from February 17 through February 28. Grace period registration and voting will be offered only at the Chicago Board of Elections at 69 W. Washington. For first time voters, please bring 2 forms of ID which shows your current address.</p>
<h3>Early Voting</h3>
<p>From February 29 through March 12, all 51 Early Voting sites will be open Monday through Saturday from 9am - 5pm. Go to chicagoelections.com to find a location near you. Please bring a government photo ID during early voting. For both “Grace Period” and “Early Voting” you will register and vote in the same day.</p>
<p>To find polling locations for Election Day or early voting go to <a target="_blank" href="http://chicagoelections.com">chicagoelections.com</a></p>
<h3> Know Your Voting Rights</h3>
<p>If you see something off at your polling location, report it to the National Lawyers' Committee for Civil Rights Under Law's Election Protection: <a href="tel:1-866-OUR-VOTE">1-866-OUR-VOTE</a></p>
<p>If you are in line by 7pm, you cannot be turned away from your polling location. You have the right to stay in line until you cast your ballot.</p>
<p>Bring your child (under 18) into the voting booth with you.</p>
<p>You can vote at your old polling location if you have moved within 30 days of the election.</p>
<p>You can bring a sample ballot into the polling booth to reference.
<p>If you have a felony, you are allowed to register and vote in the state of Illinois.</p>
<p>Any voter registered in the City of Chicago may use any Early Voting site in the city, regardless of where the voter lives.</p>
<p>If the Election Judge challenges a voter based on a mismatch of signatures or if the voter does not appear on the voter roll, ask the Election Judge to check the “supplemental” poll list. You can also ask to fill out a provisional ballot.</p>
<h3>Brought to you by</h3>
<div class="grid-12 clear">
<a target="_blank" href="http://chicagovotes.com"><img style="margin: 0 auto; display: block; width: 300px;" src="/images/chicagovotes.png"></a>
</div>
<p style="font-size: 0.75em; text-align: center" class="grid-11 centered gutter-top clear">And you can find all the <a href="https://github.com/mojowen/chicagovoterguide" target="_blank">code and whatever right here</a> and oh yeah it was built by <a target="_blank" href="http://twitter.com/sduncombe">this person</a>.</p>
</div>
</div>
</div>
<script type="text/javascript" src="/javascripts/main.js"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-59932015-1', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>