-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathatten_house.html
163 lines (155 loc) · 9.43 KB
/
atten_house.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Attendance House</title>
<link rel="stylesheet" href="./css/style.css">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous">
</head>
<body>
<div id="app" class="container">
<header class="d-flex flex-row justify-content-between align-items-end ">
<img src="img/logotgif.png" alt="Logo">
<a class="" href="mailto:info@tgif.net"><img src="./img/mail.png" alt="sobre">info@tgif.net</a>
</header>
<nav class="navbar navbar-expand-lg bg-dark mb-3">
<div class="container-fluid">
<a class="navbar-brand text-primary" href="index.html">Home</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNavDropdown"
aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNavDropdown">
<ul class="navbar-nav">
<li class="nav-item dropdown">
<a class="nav-link text-primary dropdown-toggle" href="#" id="navbarDropdownMenuLink" role="button"
data-bs-toggle="dropdown" aria-expanded="true">Congress 113</a>
<ul class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
<li><a class="dropdown-item" href="house.html">House</a></li>
<li><a class="dropdown-item" href="senate.html">Senate</a></li>
</ul>
</li>
<li class="nav-item dropdown">
<a class="nav-link text-primary dropdown-toggle" href="#" id="navbarDropdownMenuLink" role="button"
data-bs-toggle="dropdown" aria-expanded="true">Attendance</a>
<ul class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
<li><a class="dropdown-item" href="atten_house.html">House</a></li>
<li><a class="dropdown-item" href="atten_senate.html">Senate</a></li>
</ul>
</li>
<li class="nav-item dropdown">
<a class="nav-link text-primary dropdown-toggle" href="#" id="navbarDropdownMenuLink" role="button"
data-bs-toggle="dropdown" aria-expanded="true">Party Loyalty</a>
<ul class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
<li><a class="dropdown-item" href="loyalty_house.html">House</a></li>
<li><a class="dropdown-item" href="loyalty_senate.html">Senate</a></li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
<main class="d-flex flex-column justify-content-between">
<div class="d-flex flex-row justify-content-between">
<div class="col-6 m-2">
<h2>Attendance</h2>
<p>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>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-4 m-5">
<h3>Senate at a glance</h3>
<table class="table table-responsive table-hover d-flex flex-column align-center glance">
<thead>
<tr class="d-flex">
<th class="col">Party</th>
<th class="col">N° of Reps</th>
<th class="col">% Voted w/ Party</th>
</tr>
</thead>
<tbody>
<tr class="d-flex">
<td class="col">Republicans</td>
<td class="col">{{partidoR.length}}</td>
<td class="col">{{(sumVotesR / (sumVotesID + sumVotesR + sumVotesD) * 100).toFixed(2)}} %</td>
</tr>
<tr class="d-flex">
<td class="col">Democrats</td>
<td class="col">{{partidoD.length}}</td>
<td class="col">{{(sumVotesD / (sumVotesID + sumVotesR + sumVotesD) * 100).toFixed(2)}} %</td>
</tr>
<tr class="d-flex">
<td class="col">Independents</td>
<td class="col">{{partidoID.length}}</td>
<td class="col">{{(sumVotesID / (sumVotesID + sumVotesR + sumVotesD) * 100).toFixed(2)}} %</td>
</tr>
<tr class="d-flex">
<td class="col">Total</td>
<td class="col">{{partidoID.length + partidoR.length + partidoD.length}}</td>
<td class="col">100%</td>
</tr>
</tbody>
</table>
</div>
</div>
<hr>
<div class="d-flex flex-row justify-content-around mt-5">
<div class="col-5">
<h3 class="text-center mb-5">Lest Engaged(Top 10% Attendance)</h3>
<table class="table table-responsive table-hover d-flex flex-column align-center mt-3 overflow-auto">
<thead>
<tr class="d-flex">
<th class="col">Name</th>
<th class="col">N° Missed Votes</th>
<th class="col">% Missed</th>
</tr>
</thead>
<tbody v-for="member in leastEnganged">
<tr class="d-flex">
<th class="col"><a v-bind:href="member.url" target="_blank">{{member.first_name}} {{member.middle_name || ""}} {{member.last_name}}</a></th>
<th class="col">{{member.missed_votes}}</th>
<th class="col">{{member.missed_votes_pct}} %</th>
</tr>
</tbody>
</table>
</div>
<div class="col-5">
<h3 class="text-center mb-5">Most Engaged(Top 10% Attendance)</h3>
<table class="table table-responsive table-hover d-flex flex-column align-center mt-3 overflow-auto">
<thead>
<tr class="d-flex">
<th class="col">Name</th>
<th class="col">N° Missed Votes</th>
<th class="col">% Missed</th>
</tr>
</thead>
<tbody v-for="member in mostEnganged">
<tr class="d-flex">
<th class="col"><a v-bind:href="member.url" target="_blank">{{member.first_name}} {{member.middle_name || ""}}
{{member.last_name}}</a></th>
<th class="col">{{member.missed_votes}}</th>
<th class="col">{{member.missed_votes_pct}} %</th>
</tr>
</tbody>
</table>
</div>
</div>
</main>
<footer class="d-flex justify-content-around rounded-pill border border-dark bg-primary text-white m-5 p-2">
<span class="text-center">© 2016 TGIF | All rights reserved</span>
</footer>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.bundle.min.js"
integrity="sha384-gtEjrD/SeCtmISkJkNUaaKMoLD0//ElJ19smozuHV6z3Iehds+3Ulb9Bn9Plx0x4"
crossorigin="anonymous"></script>
<script src="https://unpkg.com/vue@next"></script>
<script src="./vue.js"></script>
</body>
</html>