This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Paste this after your CSS, but before the media queries begin. */ | |
| .spev-jpac-top h1 { | |
| color: #FFF; | |
| } | |
| .spev-jpac-top { | |
| position: relative; | |
| top: 130px; | |
| left: 10px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #mia #yearlycost th, #mia #yearlycost .header{ | |
| font-size: 11px; | |
| text-transform: uppercase; | |
| color: #999; | |
| font-weight: normal; | |
| } | |
| #mia #yearlycost td, th { | |
| padding: 10px; | |
| text-align: left; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- START OF MIA SPEV --> | |
| <style type="text/css"> | |
| #spev-mia { | |
| width: 956px; | |
| height: 580px; | |
| position: relative; | |
| padding-top: 10px; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script type="text/javascript" src="http://propublica.s3.amazonaws.com/projects/projectx/jquerytypeahead.js"></script> | |
| <script type="text/javascript"> | |
| propublica.views.nameTypeahead = propublica.View.extend({ | |
| tag : "input", | |
| cssClass : "name_typeahead", | |
| render : function(){ | |
| var typeaheadName = [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- TAKEAWAY BOX | |
| make sure you include the socialsnippet.js, get-involved.css, and socialsnippet.css | |
| --> | |
| <script type="text/javascript" src="http://propublica.s3.amazonaws.com/assets/social/socialsnippet.js"></script> | |
| <link type="text/css" rel="stylesheet" href="http://www.propublica.org/css/get-involved.css?20130301" type="text/css" media="all" charset="utf-8" /> | |
| <link rel="stylesheet" href="http://propublica.s3.amazonaws.com/assets/social/socialsnippet.css"> | |
| <div class="right-sidebar-media" id="some-id"> | |
| <h2>Takeaways</h2> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .annotation { | |
| background: #cecbc3 ; | |
| border-radius: 3px; | |
| padding: 0px 3px; | |
| transition: all 0.10s ease-in-out; | |
| -webkit-transition: all 0.10s ease-in-out; | |
| -moz-transition: all 0.10s ease-in-out; | |
| cursor:pointer; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $('.overlaydiv').bind('mousewheel', function (e) { | |
| $(this).scrollTop($(this).scrollTop() - e.originalEvent.wheelDeltaY); | |
| //prevent page fom scrolling | |
| return false; | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function showInfo(data, tabletop) { | |
| var m_td = []; | |
| var senators = []; | |
| $.each( tabletop.sheets("Members").all(), function(i, member) { | |
| if (member.office == "Senate") { | |
| if (member.twitter) { | |
| var twitter = "@" + member.twitter | |
| } else { | |
| var twitter = "" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| task :import => :environment do | |
| Member.delete_all | |
| f = FasterCSV.open("#{Rails.root.to_s}/db/initial/membersgrades.csv", :headers => true) | |
| f.each do |row| | |
| m = Member.new | |
| m.grade = row["grade"] | |
| m.nra_rating = row["rating"] | |
| m.full_name = row["full_name"] | |
| m.lastname = row["lastname"] | |
| m.firstname = row["firstname"] |