-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
76 lines (64 loc) · 2.24 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
---
layout: default
title: Home
---
<style>.embed-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; height: auto; } .embed-container iframe, .embed-container object, .embed-container embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }</style>
<div class="row">
<div class="portlet">
<div class="portlet-header">
<h3>
<i class="fa fa-tasks"></i>
Get to know your representatives in Parliament
</h3>
</div> <!-- /.portlet-header -->
<div class="portlet-content">
<div class="col-sm-8">
<div class="embed-container">
<iframe src="https://player.vimeo.com/video/164415074?autoplay=0&loop=1&title=0&byline=0&portrait=0" width="700" height="394" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div>
</div>
<div class="col-md-4">
<div class="portlet">
<div class="portlet-header">
<h3>Find MP by District</h3>
</div>
<div class="portlet-content">
<div class="district">
<select id="select2" class="form-control" placeholder="Start typing name of MP" onchange="window.location='{{ site.baseurl }}'+this.value">
<option value="">Select a district</option>
{% for district in site.districts %}
<option value="{{ district.url }}">{{ district.name }}</option>
</div>
{% endfor %}
</select>
</div>
</div>
</div>
<div class="portlet">
<div class="portlet-header">
<h3>Find MPs by Post</h3>
</div>
<div class="portlet-content">
{% for post in site.term_10_posts %}
<div class="post">
<a href="{{ post.url | prepend: site.baseurl }}">{{ post.label }}</a>
</div>
{% endfor %}
</div>
</div>
<div class="portlet">
<div class="portlet-header">
<h3>Find MPs by Tenure</h3>
</div>
<div class="portlet-content">
{% for term in site.events %}
<div class="term">
<a href="{{ term.url | prepend: site.baseurl }}">{{ term.name }}</a>
</div>
{% endfor %}
</div>
</div>
</div>
</div>
<script type="text/javascript">
$('select').select2();
</script>