ranking.html 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <title>119th Congress — Member Rankings</title>
  7. <link rel="stylesheet" href="app.css">
  8. <script src="ranking.js" defer></script>
  9. </head>
  10. <body>
  11. <noscript>This dashboard requires JavaScript.</noscript>
  12. <div id="polisci-root" data-base="./data/">
  13. <header class="ps-header">
  14. <h1>119th Congress — Member Rankings</h1>
  15. <nav class="ps-nav"><a href="app.html">Member</a> · <a href="compare.html">Compare</a> · <a href="ranking.html" aria-current="page">Rankings</a></nav>
  16. <p class="ps-subtitle">Rank every House or Senate member of the 119th Congress by any of the dashboard metrics. Click a row to open that member's full dashboard.</p>
  17. </header>
  18. <div class="ps-layout">
  19. <aside class="sidebar" id="sidebar">
  20. <button type="button" class="sidebar-toggle" id="sidebar-toggle" aria-expanded="true" aria-controls="sidebar-body">Controls</button>
  21. <div class="sidebar-body" id="sidebar-body">
  22. <fieldset class="filter-group" id="filter-chamber">
  23. <legend>Chamber</legend>
  24. <label><input type="radio" name="chamber" value="H" checked> House</label>
  25. <label><input type="radio" name="chamber" value="S"> Senate</label>
  26. </fieldset>
  27. <fieldset class="filter-group" id="filter-party">
  28. <legend>Party</legend>
  29. <label><input type="checkbox" name="party" value="R" checked> Republican</label>
  30. <label><input type="checkbox" name="party" value="D" checked> Democrat</label>
  31. <label><input type="checkbox" name="party" value="I" checked> Independent</label>
  32. </fieldset>
  33. <fieldset class="filter-group">
  34. <legend>Metric</legend>
  35. <label for="rank-metric" class="sr-only">Metric</label>
  36. <select id="rank-metric">
  37. <option value="total">Total Votes</option>
  38. <option value="yeas">Yeas</option>
  39. <option value="nays">Nays</option>
  40. <option value="participation_pct">Participation %</option>
  41. <option value="voted_with_gop">Voted With GOP (count)</option>
  42. <option value="voted_with_gop_pct">Voted With GOP %</option>
  43. <option value="voted_with_dem">Voted With Dem (count)</option>
  44. <option value="voted_with_dem_pct">Voted With Dem %</option>
  45. <option value="voted_against_gop">Voted Against GOP (count)</option>
  46. <option value="voted_against_gop_pct">Voted Against GOP %</option>
  47. <option value="voted_against_dem">Voted Against Dem (count)</option>
  48. <option value="voted_against_dem_pct">Voted Against Dem %</option>
  49. <option value="lone_wolf">Lone Wolf Votes</option>
  50. <option value="lone_wolf_pct">Lone Wolf %</option>
  51. </select>
  52. </fieldset>
  53. <fieldset class="filter-group">
  54. <legend>Order</legend>
  55. <label><input type="radio" name="order" value="desc" checked> Highest first</label>
  56. <label><input type="radio" name="order" value="asc"> Lowest first</label>
  57. </fieldset>
  58. <button type="button" id="rank-reset" class="btn-reset">Reset</button>
  59. <p class="filter-hint">% metrics are computed as a share of votes cast.</p>
  60. </div>
  61. </aside>
  62. <main class="main-content">
  63. <section class="rank-summary" id="rank-summary"></section>
  64. <section class="vote-table-section">
  65. <div class="table-scroll">
  66. <table id="rank-table">
  67. <thead>
  68. <tr>
  69. <th>Rank</th>
  70. <th>Member</th>
  71. <th>Party</th>
  72. <th>State</th>
  73. <th id="rank-metric-header">Metric</th>
  74. </tr>
  75. </thead>
  76. <tbody></tbody>
  77. </table>
  78. </div>
  79. </section>
  80. <footer class="ps-footer">
  81. <p>Rankings exclude members with zero votes cast (denominators undefined).</p>
  82. <p>Source data:
  83. <a href="https://clerk.house.gov/Votes" target="_blank" rel="noopener noreferrer">House Clerk roll-call XML</a> ·
  84. <a href="https://www.senate.gov/legislative/votes_new.htm" target="_blank" rel="noopener noreferrer">Senate roll-call XML</a> ·
  85. <a href="Methodology.md" target="_blank" rel="noopener">Methodology</a>
  86. </p>
  87. <p>Last regenerated: <span id="last-generated">(populated)</span></p>
  88. </footer>
  89. </main>
  90. </div>
  91. </div>
  92. </body>
  93. </html>