Skip to content

Instantly share code, notes, and snippets.

@csessig86
csessig86 / daytona-500.html
Created February 15, 2016 20:45
Daytona 500 embed
<div class="left">
<div id="daytona500"> </div>
<script>// <![CDATA[
var pymParent = new pym.Parent('daytona500','http://thegazette.com/sports/daytona-500-related-links', {});
$('#more-author').addClass('display-none');
// ]]></script>
</div>
@csessig86
csessig86 / medicaid-money.html
Last active February 14, 2016 21:09
Medicaid money embed
<div class="center">
<div id="chart"> </div>
<script type="text/javascript">
var pymParent = new pym.Parent('chart','http://thegazette.com/data/medicaid-money#amerigroup', {});
</script>
<p class="embed-subhead" style="font-size: 18px !important; line-height: 25px !important; font-weight: bold;">To see the full visualization, <a href="http://thegazette.com/data/medicaid-money#amerigroup" target="_blank">click here</a>.</p>
</div>
@csessig86
csessig86 / window-load-pym.js
Created February 9, 2016 17:53
Window load pym
$(window).load(function() {
pymChild = new pym.Child();
});
@csessig86
csessig86 / extrapictures.html
Created February 8, 2016 14:35
extrapictures.html
[%{ExtraPictures}
<div id="mediawell">
<div style="display:none;" class="mediawell-object" id="mediawell-photos">
<%ExtraPictures%>
</div>
</div>
%]
@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>
@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 / 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 / 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 / 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 / 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>