-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsenate-data.html
190 lines (171 loc) · 8.97 KB
/
senate-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
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
<!DOCTYPE html>
<html lang="en">
<head>
<title>TGIF Senators</title>
<meta charset="utf-8">
<!--bootstrap v.4.3.1 viewport and stylesheet-->
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<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">
<!--font awesome v5.8.1 (icons)-->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">
<!--my css created in another file named main.css-->
<link href="main.css" rel="stylesheet" type="text/css"/>
</head>
<body id=senate>
<div class="container" id="app">
<!--first row (bootstrap): icon + logo + email logo + email-->
<div class="row">
<!--icon-->
<div class="col-1 pt-4 fa-stack fa">
<i class="chart-bar far fa-chart-bar fa-stack-1x"></i>
<i class="fas fa-search fa-3x fa-stack-2x "></i>
</div>
<!--logo-->
<div class="col-8 pt-3">
<img src="tgif-logo.png" alt="tgif logo">
</div>
<!--email logo-->
<div class="col-1 pt-4 text-right p-0">
<i class="far fa-envelope"></i>
</div>
<!--email-->
<div class="col-2 pt-4">
<a href="mailto:info@tgif.net"><u>info@tgif.net</u></a>
</div>
</div>
<!--second row (bootstrap): navbar-->
<div class="row">
<div class="col">
<!--navbar general design-->
<nav class="navbar navbar-expand navbar-light bg-light border border-secondary">
<div class="collapse navbar-collapse" id="navbarNavDropdown">
<ul class="navbar-nav">
<!--home-->
<li class="nav-item">
<a class="nav-link" href="home.html">Home</a>
</li>
<!--dropdown menu-->
<li class="nav-item dropdown">
<!--congress 113-->
<a class="pt-2 nav-link dropdown-toggle text-primary" href="#" id="navbarNavDropdownMenuLink" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" >Congress 113<span class="caret"></span></a>
<div class="dropdown-menu" aria-labelledby="navbarNavDropdownMenuLink">
<!--senate-->
<a class="dropdown-item nav-item active" href="senate-data.html">Senate</a>
<!--house-->
<a class="dropdown-item" href="house-data.html">House</a>
</div>
</li>
<li class="nav-item dropdown">
<!--attendance-->
<a class="pt-2 nav-link dropdown-toggle" href="#" id="navbarNavDropdownMenuLink" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" >Attendance<span class="caret"></span></a>
<div class="dropdown-menu" aria-labelledby="navbarNavDropdownMenuLink">
<!--senate attendance-->
<a class="dropdown-item nav-item" href="senate-attendance.html">Senate</a>
<!--house attendance-->
<a class="dropdown-item" href="house-attendance.html">House</a>
</div>
</li>
<li class="nav-item dropdown">
<!--party loyalty-->
<a class="pt-2 nav-link dropdown-toggle" href="#" id="navbarNavDropdownMenuLink" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" >Party Loyalty<span class="caret"></span></a>
<div class="dropdown-menu" aria-labelledby="navbarNavDropdownMenuLink">
<!--senate party loyalty-->
<a class="dropdown-item nav-item" href="senate-loyalty.html">Senate</a>
<!--house party loyalty-->
<a class="dropdown-item" href="house-loyalty.html">House</a>
</div>
</li>
</ul>
</div>
</nav>
</div>
</div><br/><br/><br/><br/>
<!--third row (bootstrap): text title-->
<div class="row">
<div class="col">
<h2>Senators</h2>
</div>
</div>
<!--fourth row (bootstrap): main text-->
<div class="row">
<div class="col">
<pre>
First convened in 1789, the composition and powers of the Senate are established
in Article One of the U.S. Constitution. Each state is represented by two senators,
regardless of population, who serve staggered six-year terms.The Senate has several
exclusive powers not granted to the House, including consenting to treaties as a
precondition to their ratification and consenting to or confirming appointments of
Cabinet secretaries, federal judges, other federal executive officials, military
officers, regulatory officials, ambassadors, and other federal uniformed officers,
as well as trial of federal officials impeached by the House.
</pre>
</div>
</div><br/>
<!--fifth row (bootstrap): filter by party -->
<div class="row">
<!--filter by party -->
<div class="col-10">
<form>
<p>Filter by Party: </p>
<input type="checkbox" name="filter-by-party" id="R" value="R" v-model="checkedParty" checked>Republican
<input type="checkbox" name="filter-by-party" id="D" value="D" v-model="checkedParty" checked>Democrat
<input type="checkbox" name="filter-by-party" id="I" value="I" v-model="checkedParty" checked>Independent
</form>
</div>
<!--filter by state -->
<div class="col-2">
<form>
<p>Filter by State: </p>
<select v-model="checkedStates">
<option value="All" selected> All </option>
<option v-for="state in stateSort()" :value="state">{{state}}</option>
</select>
</form>
</div>
</div><br/>
<!--sixth row (bootstrap): senators table-->
<div class="row">
<table class="table table-bordered table-sm text-center">
<thead>
<tr>
<th scope="col">Senator</th>
<th scope="col">Party</th>
<th scope="col">State</th>
<th scope="col">Years in Office</th>
<th scope="col">% Votes w/ Party</th>
</tr>
</thead>
<tbody>
<tr v-for="value in filterMembers()">
<td> <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>
<!--seventh row (bootstrap): footer-->
<footer>
<div class="row card-footer bg-light border border-secondary pt-4 mb-2">
<div class="col">
<p class="text-center">© 2Ø16 TGIF | All Rights Reserved</p>
</div>
</div>
</footer>
</div>
<!-- Vue.js development version, includes helpful console warnings -->
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<!--bootstrap version 4.3.1-->
<!-- jQuery library -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<!-- Popper JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<!-- Latest compiled JavaScript -->
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
<!-- json with congress senate members: <script src="pro-congress-113-senate.js"></script>
and main.js-->
<script src="main.js"></script>
</body>
</html>