-
Notifications
You must be signed in to change notification settings - Fork 0
/
house-data.html
142 lines (124 loc) · 7.64 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
140
141
142
<!DOCTYPE html>
<html lang="en">
<head>
<!--- LOADING: metadata, IE config, Bootstrap, CSS -->
<title>TGIF-House</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" href="style/style.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js"></script>
<script src="https://kit.fontawesome.com/3526fd308e.js"></script>
</head>
<body>
<div class="container" id="app">
<!--- HEADER PART WITH LOGO AND E-MAIL ICON -->
<div class="row">
<div id="logo" class="col-md-6 col-sm-6">
<img alt="TGIF logo image" class="img-fluid" src="img/tgif_logo5.png">
</div>
<div id="email" class="col-md-6 col-sm-6">
<p class="float-right py-3"><a id="mailtext" href="mailto: [email protected]" class="maillink ">[email protected]</a></p>
<img alt="Email icon" class="img-fluid float-right" src="img/mail-icon.png">
</div>
</div>
<!--- NAVIGATION BAR WITH DROPDOWN MENUS -->
<div id="navigationBar" class="row">
<nav class="navbar sticky-top navbar-expand-lg">
<ul class="nav nav-pills navbar-right">
<li class="nav-item active">
<a href="home.html" class="nav-link">Home</a>
</li>
<li class="nav-item dropdown">
<a href="#" id="navbarDropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="nav-link dropsown-toggle">Congress 113</a>
<div aria-labelledby="navbarDropdownMenuLink" class="dropdown-menu">
<a href="house-data.html" class="dropdown-item">House</a>
<a href="senate-data.html" class="dropdown-item">Senate</a>
</div>
</li>
<li class="nav-item dropdown">
<a href="#" id="navbarDropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="nav-link dropsown-toggle">Attendance</a>
<div aria-labelledby="navbarDropdownMenuLink" class="dropdown-menu">
<a href="house_attendance.html" class="dropdown-item">House</a>
<a href="senate_attendance.html" class="dropdown-item">Senate</a>
</div>
</li>
<li class="nav-item dropdown">
<a href="#" id="navbarDropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="nav-link dropsown-toggle">Party Loyalty</a>
<div aria-labelledby="navbarDropdownMenuLink" class="dropdown-menu">
<a href="house_loyalty.html" class="dropdown-item">House</a>
<a href="senate_loyalty.html" class="dropdown-item">Senate</a>
</div>
</li>
</ul>
</nav>
</div>
<!--- HOMEPAGE BODY WITH HOUSE OF DATA TABLE -->
<div class="row">
<div class="col-md-7 col-sm-9" id="congressment">
<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 class="col-md-5 col-sm-3"></div>
</div>
<!---Table, Checkbox-->
<div class="row">
<div class="col float-left " id="filterByParty">
Filter by Party:
<input type="checkbox" id="d_checkbox" v-on:click="checkedData" checked> Democrat
<input type="checkbox" id="r_checkbox" v-on:click="checkedData" checked> Republican
<input type="checkbox" id="i_checkbox" v-on:click="checkedData" checked> Independent
<div class="float-right pr-5">Filter by State:
<select id="states" v-on:change="checkedData">
<option value="All">All States</option>
<option v-for="(value,key) in states" :value="key">{{value}}</option>
</select>
</div>
</div>
</div>
<div>
<table class="table table-stripped" v-if="isTableFull">
<tbody id="table-data" class="table-sm">
<tr class="tableheader">
<th class="textRight">Name</th>
<th>Party Affiliation</th>
<th>State</th>
<th>Seniority</th>
<th>Percentage of Votes</th>
</tr>
<tr v-for="(value,key) in checkedDataArray">
<td class="textRight"><a :href="value.url">{{value.first_name}} {{value.middle_name}} {{value.last_name}}</a></td>
<td>{{value.party}}</td>
<td>{{value.state}}</td>
<td>{{value.seniority}}</td>
<td>{{value.votes_with_party_pct}}</td>
</tr>
</tbody>
</table>
<div class="loadergif" v-if="hidegif">
<img src="/img/loading.gif">
</div>
<p class="noMatch" v-if="!isTableFull"><i class="fas fa-times"></i> No matches found <i class="fas fa-times"></i></p>
</div>
<!--- FOOTER -->
<div id="footerrow" class="row">
<div id="footer" class="col">
<footer class="page-footer font-small">
<div class="footer-copyright text-center py-3">
© 2016 TGIF | All Rights Reserved
</div>
</footer>
</div>
</div>
</div>
<button id="topBtn"><i class="fas fa-arrow-up"></i></button>
<!--- LOADING: JSON, JS scripts, jQuery, Bootstrap -->
<script src="https://unpkg.com/vue/dist/vue.js"></script>
<!---<script src="js/pro-congress-113-senate.js"></script>--->
<script src="js/script.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
</body></html>