-
Notifications
You must be signed in to change notification settings - Fork 0
/
house-data.html
139 lines (136 loc) · 7.47 KB
/
house-data.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
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>TransGov</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link href='https://fonts.googleapis.com/css?family=Roboto+Slab' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Roboto+Condensed' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Roboto+Mono' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="style/main-style.css">
</head>
<body>
<div class="body" id="app">
<header class="container header">
<div class="col-12">
<div class="title col-12">
<div class="tgif-info">
<div class="row">
<h1 class="texttgif col-12 col-sm-12 col-md-3 col-xl-3 col-lg-3" href="home-starter-page.html">TGIF</h1>
<div class="mailinfo col-12 col-sm-12 offset-lg-5 offset-xl-5 offset-md-5 col-md-4 col-xl-4 col-lg-4">
<a href="mailto:info@tgif.net">info@tgif.net</a>
</div>
</div>
</div>
</div>
<nav class="col-12 navbar fixed-top">
<div class="list-inline row">
<span class="border-1"></span>
<div class="col-12 col-xl-2 col-lg-2 col-md-2 col-sm-12"><a class="texthome" href="index.html">Home</a></div>
<div class="dropdown col-12 col-xl-2 col-lg-2 col-md-2 col-sm-12">
<a class="dropdown-toggle" data-toggle="dropdown">Congress 113</a>
<div class="dropdown-menu">
<a class="dropdown-item" href="senate-data.html">Senate</a>
<a class="dropdown-item" href="house-data.html">House</a>
</div>
</div>
<div class="name-site col-12 col-xl-2 col-lg-2 col-md-2 col-sm-12"><h2>House</h2></div>
<div class="dropdown col-12 col-xl-2 col-lg-2 col-md-2 col-sm-12">
<a class="dropdown-toggle" data-toggle="dropdown">Attendance</a>
<div class="dropdown-menu">
<a class="dropdown-item" href="senate_attendance.html">Senate</a>
<a class="dropdown-item" href="house_attendance.html">House</a>
</div>
</div>
<div class="dropdown col-12 col-xl-2 col-lg-2 col-md-2 col-sm-12">
<a class="dropdown-toggle" data-toggle="dropdown">Party Loyalty</a>
<div class="dropdown-menu">
<a class="dropdown-item" href="senate_house_party_loyalty.html">Senate</a>
<a class="dropdown-item" href="house_house_party_loyalty.html">House</a>
</div>
</div>
</div>
</nav>
</div>
</header>
<div class="container">
<div class="div-loader" v-if="allMembers.length == 0">
<div class="loader"></div>
</div>
<div class="on-loading" v-if="members.length > 0" v-cloak>
<div class="row">
<div class="col-12">
<h2>Congressmen</h2>
<p>The major power of the House is to pass federal legislation that affects the entire country, although its bills must also be passed by the Senate and further agreed to by the U.S. President before becoming law (unless both the House and Senate re-pass the legislation with a two-thirds majority in each chamber). The House has some exclusive powers: the power to initiate revenue bills, to impeach officials (impeached officials are subsequently tried in the Senate), and to elect the U.S. President in case there is no majority in the Electoral College.</p>
<p>Each U.S. state is represented in the House in proportion to its population as measured in the census, but every state is entitled to at least one representative. </p>
</div>
</div>
<div class="row">
<div class="party col-12 col-sm-12 col-xl-6 col-lg-6 col-md-6">
<div>
<p>Filter by Party:</p>
</div>
<input type="checkbox" id="dem" name="party" value="D" @click="filter" checked>
<label>Democrat</label>
<input type="checkbox" id="rep" name="party" value="R" @click="filter" checked>
<label>Republican</label>
<input type="checkbox" id="ind" name="party" value="I" @click="filter" checked>
<label>Independent</label>
</div>
<div class="state col-12 col-sm-12 col-xl-6 col-lg-6 col-md-6">
<div>
<p>Filter by State:</p>
</div>
<div>
<select name="states" id="states" @change="filter">
<option value="all">--All--</option>
<option v-for="state in states" :value="state">{{state}}</option>
</select>
</div>
</div>
</div>
<table class="table table-hover">
<thead>
<tr>
<td>Name</td>
<td>Party</td>
<td>State</td>
<td>Seniority</td>
<td>Votes Pct</td>
</tr>
</thead>
<tbody id="house-main-table">
<tr v-for="member in members">
<td>
<a :href="member.url">{{member.last_name}}, {{member.first_name}} <span v-if="member.middle_name">{{member.middle_name}}</span> </a>
</td>
<td>{{ member.party }} </td>
<td>{{ member.state }} </td>
<td>{{ member.seniority }} </td>
<td>{{ member.votes_with_party_pct }} </td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="notification-container container">
<div class="notification is-danger" v-if="canShowAdvice && members.length == 0">
No member with this criteria. Try to change State or Party to solve it.
</div>
</div>
<footer class="container footer main-info">
<div class="col-12">
<p>©2016 TGIF | All Rights Reserved</p>
</div>
</footer>
</div>
<!-- jQuery -->
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<!--Vue.js -->
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<!-- My JavaScript-->
<script src="script/vue-app.js"></script>
<script src="script/main.js"></script>
</body>
</html>