-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
190 lines (157 loc) · 7.21 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
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
---
layout: default
map: true
title: Netafilter Map
description: Explore candidate information on interactive maps
---
<div>
<div id='map' class=''></div>
<div id='sidebar'>
<div class='siteTitle'>
<a href='./' class='NFLogo'><span class='font-weight:400'>Neta</span>filter</a>
<img src='img/info.png' class='infoButton'/>
</div>
<div id='layer-toggle'>
<form>
<h2>Showing</h2>
<!-- <div class='selectionGroup'><input type="radio" name="layer" value="education" id="education" checked><label for="education">Education</label><br></div>
<div class='selectionGroup'><input type="radio" name="layer" value="all" id="all" checked><label for="all">All</label><br></div>
<div class='selectionGroup'><input type="radio" name="layer" value="education" id="education"><label for="education">Education</label><br></div>
<div class='selectionGroup'><input type="radio" name="layer" value="assets" id="assets"><label for="assets">Assets</label><br></div>
<div class='selectionGroup'><input type="radio" name="layer" value="criminal-cases" id="criminal-cases"><label for="criminal-cases">Criminal Cases</label></div> -->
<div class='selectionGroup'>
<div class="toggles selectionGroupButton active" data-layer="all">All</div>
<div class="toggles selectionGroupButton selectionGroupButtonEducation smallTransparent" data-layer="myneta-loksabha-points education"><span class='dot' style="background:hsl(116, 85%, 39%)"></span>Education</div>
<div class="toggles selectionGroupButton selectionGroupButtonAssets smallTransparent" data-layer="myneta-loksabha-points assets"><span class='dot' style="background:white"></span>Assets</div>
<div class="toggles selectionGroupButton selectionGroupButtonCriminalCases smallTransparent" data-layer="myneta-loksabha-points criminal"><span class='dot' style="background:#f37321"></span>Criminal Cases</div>
</div>
</form>
</div>
<div class='rounded-toggle'>
<!-- <a class='active' href='#'>Map</a> -->
<!-- <a href='https://github.com/folography/netafilter' target="_blank"><img src='img/github.png' target="_blank" class='contribute'/></a> -->
</div>
</div>
</div>
<div id='map-tooltip'>
<div id='map-control'>
<div id='map-search'>
</div>
</div>
</div>
<div id='darkBackground'></div>
<div id='info'>
<h2>About NetaFilter</h2>
<img class='infoButton infoCloseButton' src='img/close.png'/>
<p style='float:left'>Netafilter has been built on top of <a href='http://www.myneta.info' target='_blank'>MyNeta's</a> database which contains data of the educational qualifications, net assests owned and criminal cases, as declared by the Lok Sabha members of the <a href="https://en.wikipedia.org/wiki/List_of_members_of_the_16th_Lok_Sabha">16th Lok Sabha.</a></p>
<div class='lightGreyLine'></div>
<h2>A quick guide to NetaFilter</h2>
<img src='img/helperImage1.png' class='helperImage'/>
<img src='img/helperImage2.png' class='helperImage'/>
<p>Hover over a constituency to view information about the MP of that constituency in the tooltip on bottom-right. Larger circles represent a larger value of each field of data.</p>
<p class='helpText' style='margin-top:10px;'>You are empowered to copy, share and improve this project for a better tomorrow <a class='forkMe github button short' href='https://github.com/folography/netafilter'>Contribute & Provide Feedback</a></p>
<img class='infoButton infoCloseButton hideBig' src='img/close.png'/>
</div>
<div id='mapLegend'>
<div data-map='legend'>
<!-- <h3><a class="active" href="#" data-map-layer='myneta-loksabha' onclick="mapToggle(this)">MP Information</a></h3> -->
{% raw %}
<div id="netafilters"></div>
<script id='netafilters-template' type='text/ractive'>
<form method="GET">
{{#filters}}
{{>filterlist}}
{{/}}
</form>
{{#partial filterlist}}
<fieldset><input name='main-filter' id='{{label}}' type="radio" {{#if layer === selectedLayer}}checked{{/if}} on-change="changeFilter:{{layer}},{{mapFilter}}">
<label for='{{label}}'>{{label}}</label></fieldset>
<dl class="keyline-top space-bottom1">
{{# {parent: layer}}}
{{#filters}}
{{> filternode {parent: parent}}}
{{/}}
{{/}}
</dl>
{{/partial}}
{{#partial filternode}}
<dt>
<input id='{{label}}' type="checkbox" {{#if parent === selectedLayer}}checked{{else}}disabled{{/if}} on-change="changeSubfilter:{{parent}}, {{layer}},{{mapFilter}}">
<span class='dot' style="background-color:{{color}}"></span>
<label for='{{label}}'>{{label}}</label>
{{#if typeof this.filters !== 'undefined'}}
{{>filterlist}}
{{/if}}
</dt>
{{/partial}}
</script>
{% endraw %}
</div>
</div>
<!-- Escape ractive handlebars from Jekyll parsing -->
{% raw %}
<script id='myneta-tooltip' type='text/ractive'>
{{#if (typeof id === 'undefined') }}
<p class='emptyTooltip'>
<span class='hoverORTap-Hover'>Hover over</span><span class='hoverORTap-Tap'>Tap on</span> a constituency for details
</p>
{{else}}
<table width=100%>
<tr>
<td colspan=2 style='padding-top: 0px;'>
<div class='locationGroup'>
<img class='icon-location' src='img/location.png'/>
<div class='constituencyName'><a href="https://en.wikipedia.org/wiki/{{constituency}}_(Lok_Sabha_constituency)" target='_blank'>{{constituency}} ({{state}}) - {{category}}</a></div>
</div>
<div class='fl'>
<div class='dot micro fl {{party}} party'></div>
<div class='candidateName'>{{candidate}}</div>
<div class='label colorBlack partyName'>{{party}}</div>
</div>
</td>
</tr>
<tr>
<td>
<img class='icon' src='img/criminal-cases.png'/>
<div class='label titleText'>Criminal Cases</div>
<div class='criminalCases value'>{{cases}}</div>
</td>
</tr>
<tr>
<td>
<img class='icon' src='img/education.png'/>
<div class='label titleText'>Educational qualification</div>
<div class='education value breakText'>{{qualification}}</div>
</td>
</tr>
<tr>
<td>
<img class='icon' src='img/assets.png'/>
<div class='label titleText'>Net Assets (in Rs)</div>
<div class='netAssets value'>{{assets}}</div>
</td>
</tr>
</table>
{{/if}}
</script>
{% endraw %}
<link rel="stylesheet" href="./js/vendor/nv.d3.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script type="text/javascript" src="./js/build.js"></script>
<!-- <script type="text/javascript" src="/js/app.js"></script> -->
<script>
$( document ).ready(function() {
$( ".infoButton" ).click(function() {
$( "#info" ).toggle();
$("#darkBackground").toggle();
});
$("#darkBackground").click(function(){
$( "#info" ).toggle();
$("#darkBackground").toggle();
});
$("#showEducation").click(function(){
$(".selectionGroupButton").removeClass('selectionGroupButtonSelected');
$("#showEducation").addClass('selectionGroupButtonSelected');
})
});
</script>