-
Notifications
You must be signed in to change notification settings - Fork 0
/
senate-data.html
140 lines (120 loc) · 7.43 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
<!DOCTYPE html>
<html lang="en">
<head>
<!--- LOADING: metadata, IE config, Bootstrap, CSS -->
<title>TGIF-Senate</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 SENATE DATA TABLE -->
<div class="row">
<div class="col-md-7 col-sm-9" id="congressment">
<h2>Senators</h2>
<p>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.</p>
</div>
<div class="col-md-5 col-sm-3"></div>
</div>
<!---Table, Checkbox-->
<div class="row">
<div class="col" 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" v-if="hideTable">
<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>
<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="js/pro-congress-113-senate.js"></script>--->
<script src="https://unpkg.com/vue/dist/vue.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>