Skip to content

Instantly share code, notes, and snippets.

@csessig86
csessig86 / teaser.html
Last active September 25, 2015 16:02
New fire responses embed
<div class="left">
<h3><a href="http://thegazette.com/data/fire-responses" target="_blank">Is your fire department responding quickly enough to fires near you?</a></h3>
<a href="http://thegazette.com/data/fire-responses" target="_blank"><img style="width: 100%;" src="http://www.thegazette.com/Includes/data/projects/fire-responses/ss.jpg" alt="" /></a>
<p class="embed-subhead">The National Fire Protection Association recommends urban fire departments respond to fires in under 5 minutes and 21 seconds at least 90 percent of the time. Use this website to see how quickly your local department responded to fires near you.</p>
</div>
@csessig86
csessig86 / cr-bike-trails.html
Last active October 2, 2015 17:09
CR bike trails embed
<div class="center">
<h3 style="margin-bottom:0px">Miles of trails built in Cedar Rapids per year</h3>
<div id="cr-bike-trails"> </div>
<script type="text/javascript">// <![CDATA[
var pymParent = new pym.Parent('cr-bike-trails','http://files.gazlab.com/content-host/d3charts/projects/cr-bike-trails/index.html', {});
// ]]></script>
<p class="embed-subhead">* This chart shows how many miles of trails have been built in Cedar Rapids for every year since 1975. After going decades without building any trails, the city has built several miles worth of trails every year since 1999.</p>
</div>
@csessig86
csessig86 / cr-bike-trails-new.html
Last active October 2, 2015 21:20
cr-bike-trails-new.html
<div class="center">
<h3>Miles of trails built in Cedar Rapids by year</h3>
<div id="cr-bike-trails"></div>
<script type="text/javascript">var pymParent = new pym.Parent('cr-bike-trails','http://files.gazlab.com/content-host/d3charts/projects/cr-bike-trails/index.html', {});</script>
<p class="embed-subhead">* This chart shows how many miles of trails have been built in Cedar Rapids for every year since 1975. After going decades without building any trails, the city has built several miles worth of trails every year since 1999.</p>
</div>
@csessig86
csessig86 / i380-accidents.html
Created December 18, 2015 18:35
I-380 accidents embed
<div class="center" style="border-top: 1px solid #ccc; border-bottom: 1px solid #ccc;"><iframe frameborder="0" height="500" src="http://cdr-gadev.newscyclecloud.com/data/i380-accidents" width="100%"></iframe>
<p class="embed-subhead" style="font-size: 16px!important; font-weight: bold;"><a href="http://thegazette.com/data/i380-accidents" target="_blank">Check out our interactive look at the accidents on I-380</a></p>
</div>
@csessig86
csessig86 / guns-shall-issue-1.html
Last active December 31, 2015 21:10
Guns shall issue 1
<div class="center">
<div id="chart-1"> </div>
<script type="text/javascript">// <![CDATA[
var pymParent = new pym.Parent('chart-1','http://files.gazlab.com/content-host/d3charts/projects/guns-shall-issue/index.html', {});
// ]]></script>
<p class="embed-subhead">This chart shows the number of residents in Iowa who received background checks through the <a href="https://www.fbi.gov/about-us/cjis/nics" target="_blank">National Instant Criminal Background Check System</a> program. Data was made available by <a href="https://github.com/BuzzFeedNews/nics-firearm-background-checks" target="_blank">Buzzfeed</a>. Seasonally adjusted data was obtained through <a href="http://www.seasonal.website/" target="_blank">Seasonal</a>.</p>
<p class="embed-subhead hide-desktop show-600-inline" style="margin-top: -10px;">The spike in the number of background checks came in the same month that Iowa's shall issue law took effect.</p>
</div>
@csessig86
csessig86 / guns-shall-issue-2.html
Created December 31, 2015 21:11
Guns shall issue 2
<div class="center">
<div id="chart-2"> </div>
<script type="text/javascript">// <![CDATA[
var pymParent = new pym.Parent('chart-2','http://files.gazlab.com/content-host/d3charts/projects/guns-shall-issue/index.html#concealed_adjusted', {});
// ]]></script>
<p class="embed-subhead">This chart shows the number of residents in Iowa who received concealed carry permits. Data was made available by the <a href="http://www.dps.state.ia.us/asd/weapon_permits.shtml" target="_blank">Iowa Department of Public Safety</a>. Seasonally adjusted data was obtained through <a href="http://www.seasonal.website/" target="_blank">Seasonal</a>.</p>
<p class="embed-subhead hide-desktop show-600-inline" style="margin-top: -10px;">The spike in the number of permits came in the same month that Iowa's shall issue law took effect.</p>
</div>
@csessig86
csessig86 / pym-child.js
Last active December 8, 2016 20:18
Pym for child iframe
var pymChild;
$(window).load(function(){
pymChild = new pym.Child();
});
@csessig86
csessig86 / pym-include.html
Created January 6, 2016 17:35
Pym include HTML
<script src="http://www.thegazette.com/Includes/data/js/lib/pym.min.js"></script>
@csessig86
csessig86 / mobile.html
Last active January 8, 2016 18:35
GA mobile meta tags
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="apple-touch-fullscreen" content="yes" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta http-equiv="cleartype" content="on">
<link rel="apple-touch-icon" href="http://www.thegazette.com/images/glogo.png"/>
@csessig86
csessig86 / cr-shots-fired.html
Last active July 19, 2016 17:16
Embed: CR shots fired 2016
<div class="center">
<h3 class="hide-desktop show-mobile">MAP: All shots fired incidents in 2014-16</h3>
<p class="hide-desktop show-mobile">
<a href="http://www.thegazette.com/data/cr-shootings" target="_blank">
<img src="http://www.thegazette.com/Includes/data/projects/cr-shootings/imgs/ss-2016.jpg" alt="" width="100%" />
</a>
</p>
<div class="hide-650">
<iframe frameborder="0" height="700px" src="http://www.thegazette.com/data/cr-shootings" width="100%"></iframe>
</div>