Skip to content

Instantly share code, notes, and snippets.

<div id="welcome-tik-tok" class="mytimeline-html"></div>
propublica.views.hoverExplanations = propublica.View.extend({
tag:"*",
cssClass: "define-me",
bindings : {
"mouseenter" : 'showToolTip',
"mouseleave" : 'hideToolTip',
"mousemove" : 'moveToolTip'
},
<script type="text/javascript">
propublica.views.heatMap = propublica.View.extend({
cssClass : "heatmap",
render : function() {
// wide width
var chartWidth = $(".heatmap-section").width();
var domainGutter = chartWidth*6/350
var boxSize = chartWidth/160
@media screen and (max-width: 1100px) {
#cruiseapp .cruise-section {
width: 40%;
margin-left: 45%
}
cd ~
cd LenaCode/graphics
git branch <-- you should be on the master branch!
git pull origin master
git add . <-- if that doesn't work then do: git add --all
git commit -am "fix from lena"
git push origin master
bundle exec cap deploy:update
#content-header .wrapper {
padding-left:0px;
}
.step-section, .step, .indv-card,#selection-box, #selectionbar > div,#selectionbar,#drawstuff, #op #selectionbar input[type="text"], .indv-card >div.payments .totals, .indv-card >div.expandable, .indv-card >div.expandable span {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
<div class="dd-name">
<p class="close-button" data-el="Device_<%= d.id %>"><span></span></p>
<h2><%= d.devicename %></h2>
</div>
<div class="payments">
<div class="dd-name">
<p class="close-button" data-el="Drug_<%= d.id %>"><span></span></p>
<h2><%= d.drugname %></h2>
<% if (d.categories.length > 0) { %>
<h4> Drug <%= categories.length == 1 ? "Class" : "Classes" %>:
<% $.each(d.categories, function(index, value){ %>
<span><%= value.name %></span>
propublica.views.stickyNav = propublica.View.extend({
cssClass : "sticky_nav",
render : function() {
_.bindAll(this, "stick");
this.jWindow = $(window);
this.jFooter = $("footer");
this.offsetTop = this.el.offset().top;
this.elHeight = this.el.height();
this.jWindow.scroll(this.stick);
<div class="drones-bar"></div><p>A U.S. drone strike in northwest Pakistan has killed al-Qaida's second-in-command, officials from both countries have confirmed..."</p></div>
<div class="drones-bar"></div><p>Earlier Tuesday, U.S. officials said that al-Libi was killed by a CIA drone strike in Pakistan launched Monday."</p></div>
<div class="drones-bar"></div><p>The CIA had targeted Libi with three separate drone-launched missile attacks over three days, finally succeeding early Monday in strikes that destroyed a house and a vehicle, U.S. and Pakistani officials said."</p></div>
<div id="drones-blurb"></div>
<!--this is the tooltip, similar to your landline_tooltip_tmpl -->
<script id="drone-templ" type="text/jst">
<div id="drones-source">According to: <%%=source%></div>
<div id="drones-claim"><%%=claim%></div>