-
Notifications
You must be signed in to change notification settings - Fork 14
/
index.html
125 lines (118 loc) · 5.75 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
112
113
114
115
116
117
118
119
120
121
122
123
124
---
layout: default
header: Track the money in Oakland elections
---
{% comment %}Keep these dates updated for upcoming elections{% endcomment %}
{% assign primary_date = '2024-03-05' %}
{% assign general_date = '2024-11-05' %}
{% assign primary_totals = site.data.elections.oakland[primary_date] %}
{% assign primary_total_funds = primary_totals.total_contributions %}
{% if primary_total_funds > 0 %}
{% assign primary_residents_percent = primary_totals.total_contributions_by_source['Within Oakland'] | divided_by: primary_total_funds %}
{% else %}
{% assign primary_residents_percent = 0 %}
{% endif %}
{% assign general_totals = site.data.elections.oakland[general_date] %}
{% assign general_total_funds = general_totals.total_contributions %}
{% if general_total_funds > 0 %}
{% assign general_residents_percentage = general_totals.total_contributions_by_source['Within Oakland'] | divided_by: general_total_funds %}
{% else %}
{% assign general_residents_percentage = 0 %}
{% endif %}
{% assign ie_placeholder_text = 'No independent expenditures reported' %}
<div class="hero hero--photo">
<div class="grid custom-grid-thirds hero__content">
<div class="hero__header">
<h4 class="hero__subheader">
Empowering Oakland voters with timely and
accurate information about money in local elections.
</h4>
<h1 class="hero__hed">{{ page.header | escape }}</h1>
<div class="hero__btn-container">
{% comment %}Keep this date updated for latest election{% endcomment %}
<a class="btn landing__btn" href="{{ site.baseurl }}{% link _elections/oakland/2024-11-05.md %}">Follow the money</a>
<h1 class="hero__hed hero__hed--centered">or</h1>
<h4 class="hero__subheader">Search contributors by name</h4>
<a class="btn landing__btn" href="{{ site.baseurl }}/search">Search now</a>
</div>
</div>
<div class="hero__table-container">
<div>
<h2 class="hero__table__header">Oakland Election Live Snapshot</h2>
<table class="hero__table">
<thead class="hero__table__head">
<tr>
<th></th>
<th class="hero__column__header">{{ primary_date | date: "%B %Y" | upcase }}</th>
<th class="hero__column__header">{{ general_date | date: "%B %Y" | upcase }}</th>
</tr>
</thead>
<tbody>
<tr>
<td class="hero__row__header">Contributions to date</td>
<td class="hero__funds_raised__total">{{ primary_total_funds | dollars }}</td>
<td class="hero__funds_raised__total">{{ general_total_funds | dollars }}</td>
</tr>
<tr>
<td class="hero__row__header">% of contributions from Oakland residents</td>
<td class="hero__funds_raised__total">{{ primary_residents_percent | times: 100 | round }}%</td>
<td class="hero__funds_raised__total">{{ general_residents_percentage | times: 100 | round }}%</td>
</tr>
<tr>
<td class="hero__row__header">Top 3 third-party spenders (independent expenditures)</td>
<td class="hero__top-spenders">
{% if primary_totals.largest_independent_expenditures[0] != null %}
<ul>
{% for expenditure in primary_totals.largest_independent_expenditures %}
<li>{{ expenditure.name }}</li>
{% endfor %}
</ul>
{% else %}
{{ ie_placeholder_text }}
{% endif %}
</td>
<td class="hero__top-spenders">
{% if general_totals.largest_independent_expenditures[0] != null %}
<ul>
{% for expenditure in general_totals.largest_independent_expenditures %}
<li>{{ expenditure.name }}</li>
{% endfor %}
</ul>
{% else %}
{{ ie_placeholder_text }}
{% endif %}
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div class="landing__description landing__alerts-signup">
<h2 class="landing__description__header">Sign up for daily campaign finance alerts.</h2>
<p class="landing__description__paragraph">
Receive email notifications when Oakland lobbyists, candidates, and elected officials disclose their finances.
Stay on top of the influence of money on your local politics with this useful daily digest.
</p>
<p class="landing__description__paragraph">
<a href="https://alert.opendisclosure.io" class="btn landing__btn">Sign up for daily alerts</a>
</p>
</div>
<div class="landing__description landing__info">
<ul>
<li>Who is giving money to candidates?</li>
<li>How much money has each candidate collected?</li>
<li>Is the money coming from local sources?</li>
<li>What ballot measures are receiving the most funds?</li>
</ul>
<p class="landing__description__paragraph">
This site pulls data from the City of Oakland’s campaign finance reporting database to produce easy to understand
graphs that clearly show the source of campaign funds and how they are being spent to sway election results. Our goal is
to increase government transparency by revealing the potential influence behind local politics.
</p>
<p class="landing__description__paragraph">
We hope to raise awareness, promote electoral accountability, and promote civic engagement and
political participation by Oakland residents.
</p>
</div>