-
Notifications
You must be signed in to change notification settings - Fork 0
/
house-attendance.html
146 lines (138 loc) · 7.77 KB
/
house-attendance.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<!-- Popper JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
<!-- Latest compiled JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
</head>
<body>
<header>
<nav class="navbar navbar-expand-sm bg-light navbar-light justify-content-between">
<div class="d-inline-flex">
<a class="navbar-brand" href="#">
<img src="img/logo.jpg" alt="Logo" style="width:40px;">
</a>
<h1 class="h1">TGIF</h1>
</div>
<div>
<p class="text-right"><i class="material-icons">mail_outline</i><a href="mailto:[email protected]">[email protected]</a></p>
</div>
</nav>
<nav class="navbar navbar-expand-sm bg-dark navbar-dark">
<ul class="navbar-nav">
<li class="nav-item">
<a href="index.html" class="nav-link">Home</a></li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbardrop" data-toggle="dropdown">Congress 113</a>
<div class="dropdown-menu">
<a href="senate-page.html" class="dropdown-item" >Senate</a>
<a href="house-page.html" class="dropdown-item" >House</a>
</div>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbardrop" data-toggle="dropdown">Attendance</a>
<div class="dropdown-menu">
<a href="senate-attendance.html" class="dropdown-item" >Senate</a>
<a href="house-attendance.html" class="dropdown-item" >House</a>
</div>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbardrop" data-toggle="dropdown">Loyalty</a>
<div class="dropdown-menu">
<a href="senate_loyalty.html" class="dropdown-item" >Senate</a>
<a href="house_loyalty.html" class="dropdown-item" >House</a>
</div>
</li>
</ul>
</nav>
</header>
<br>
<!--Table container-->
<div class="container" id="main">
<div class="container row">
<div class="col-md-6">
<h3 class="h3-responsive text-center text-nowrap">Attendance</h3>
<p class="text-secondary text-indent">The Constitution specifies that a majority of members constitutes a quorum to do business in each house. Representatives and senators rarely force the presence of a quorum by demanding quorum calls; thus, in most cases, debates continue even if a majority is not present.</p>
<p class="text-secondary text-indent">The Senate uses roll-call votes; a clerk calls out the names of all the senators, each senator stating "aye" or "no" when his or her name is announced. The House reserves roll-call votes for the most formal matters, as a roll-call of all 435 representatives takes quite some time; normally, members vote by electronic device. In the case of a tie, the motion in question fails. In the Senate, the Vice President may (if present) cast the tiebreaking vote.</p>
</div>
<div class="col-md-6">
<h3 class="h3-responsive text-center text-nowrap">Senate at a glance</h3>
<table id="senate-data" class="table table-bordered table-striped mb-0">
<thead>
<tr>
<th>Party</th>
<th>Number of Reps</th>
<th>% Voted with Prty</th>
</tr>
</thead>
<tbody>
<tr>
<td>Republican</td>
<td>{{statistics.membRep.length}}</td>
<td>%{{statistics.withPrtyRep}}</td>
</tr>
<tr>
<td>Democrats</td>
<td>{{statistics.membDem.length}}</td>
<td>%{{statistics.withPrtyDem}}</td>
</tr>
<tr>
<td>Independent</td>
<td>{{statistics.membInd.length}}</td>
<td>%{{statistics.withPrtyIndp}}</td>
</tr>
</tbody>
</table>
</div>
</div>
<br>
<hr style="border:2px;">
<div class="container" id="eng">
<div class="container row">
<div class="col-md-6">
<h3 class="h3-responsive text-center text-nowrap">Least Engaged (Bottom 10% Attendance)</h3>
<table id="senate-data" class="table table-bordered table-striped mb-0">
<thead>
<tr>
<th>Name</th>
<th>Number of Missed Votes</th>
<th>% Missed</th>
</tr>
</thead>
<tbody v-for="least in engaged.least">
<tr><td>{{least.first_name}} {{least.middle_name}} {{least.last_name}}</td><td>{{least.missed_votes}}</td><td>{{least.missed_votes_pct}}</td></tr>
</tbody>
</table>
</div>
<div class="col-md-6">
<h3 class="h3-responsive text-center text-nowrap">Most Engaged (Top 10% Attendance)</h3>
<table id="senate-data" class="table table-bordered table-striped mb-0">
<thead>
<tr>
<th>Name</th>
<th>Number of Missed Votes</th>
<th>% Missed</th>
</tr>
</thead>
<tbody v-for="most in engaged.most">
<tr><td>{{most.first_name}} {{most.middle_name}} {{most.last_name}}</td><td>{{most.missed_votes}}</td><td>{{most.missed_votes_pct}}</td></tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<!-- <script src="js/senate.js"></script>
-->
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script src="js/main.js"></script>
</body>
</html>