Skip to content

Instantly share code, notes, and snippets.

@csessig86
csessig86 / index.html
Created November 22, 2016 18:02
Judicial nominating commissions embed
<div class="center-no-margin">
<h4 style="text-align: center;">Breakdown of Iowa's judicial nominating commissions</h4>
<div id="ia-boards" class="full-width-mobile"></div>
<script type="text/javascript">// <![CDATA[
var pymParent = new pym.Parent('ia-boards','http://files.gazlab.com/content-host/static-content/projects/ia-boards/index.html', {});
// ]]></script>
<p class="embed-subhead">Shown are the political affiliations of the judicial nominating commission members. Of the 78 positions, Branstand has filled 53 of them. All of his appointees have been Republicans.</p>
</div>
@csessig86
csessig86 / culinary-walk.html
Created September 13, 2016 21:34
Culinary walk submission
<p dir="ltr">Stroll through downtown Iowa City and enjoy delicious dishes made from local ingredients at seven area restaurants including:&nbsp;</p><ul><li dir="ltr"><p dir="ltr">&nbsp; <a href="http://www.newpi.coop/">New Pioneer Food Co-op</a></p></li><li dir="ltr"><p dir="ltr">&nbsp; <a href="http://www.sharewinelounge.com/">Share Lounge &amp; Wine Bar</a></p></li><li dir="ltr"><p dir="ltr">&nbsp; <a href="http://pullmandiner.com/">Pullman Bar &amp; Diner</a></p></li><li dir="ltr"><p dir="ltr">&nbsp; <a href="http://www.atlasiowacity.com/">Atlas</a></p></li><li dir="ltr"><p dir="ltr">&nbsp; <a href="http://www.bastaiowacity.com/">Basta</a></p></li><li dir="ltr"><p dir="ltr">&nbsp; <a href="http://www.devotay.net/">Devotay</a></p></li><li dir="ltr"><p dir="ltr">&nbsp; <a href="http://www.motleycowcafe.com/">Motley Cow Café</a></p></li></ul><p dir="ltr"><br></p><p dir="ltr">Early Bird rates: $20; $15 for students &amp; low-Income. All ticket prices $30 after September 10. Tickets for sale at all three <a hre
@csessig86
csessig86 / ads-homepage.html
Created August 30, 2016 22:25
Inline ads still on homepage
<div id="div-gpt-ad-1414709823913-0-oop">
<script type='text/javascript'>
googletag.cmd.push(function() {
googletag.display('div-gpt-ad-1414709823913-0-oop');
});
</script>
</div>
<div id="ad-out-of-page">
<script type='text/javascript'>
@csessig86
csessig86 / header-bidding-3.js
Created August 30, 2016 18:36
Header bidding requirement 3
<div id="ad-leaderboard"></div>
@csessig86
csessig86 / header-bidding-2.js
Created August 30, 2016 18:24
Header bidding requirement part 2
<div id="ad-leaderboard">
<script type='text/javascript'>
googletag.cmd.push(function() {
googletag.display('ad-leaderboard');
});
</script>
</div>
@csessig86
csessig86 / header-bidding-1.js
Created August 30, 2016 18:21
Header bidding requirement part 1
// Header bidding
pbjs.que.push(function() {
pbjs.setTargetingForGPTAsync()
});
googletag.enableServices();
@csessig86
csessig86 / dfp.html
Last active August 31, 2016 15:07
New DFP code
<script type='text/javascript'>
// DFP ad calls
googletag.cmd.push(function() {
// Leaderboard
var mappingleaderboard = googletag.sizeMapping()
.addSize([0, 0], [320, 50])
.addSize([768, 0], [[728, 90], [320, 100], [320, 50]])
.addSize([990, 0], [728, 90])
.addSize([1300, 0], [[970, 90],[728, 90]])
.build();
@csessig86
csessig86 / ad-names.js
Created August 29, 2016 16:11
GA ad names
googletag.display('ad-leaderboard');
googletag.display('ad-medrec-top');
googletag.display('ad-medrec-middle');
googletag.display('ad-medrec-bottom');
googletag.display('ad-scoreboard-leaderboard-top');
googletag.display('ad-mobile-leaderboard');
googletag.display('ad-medrec-mobile');
@csessig86
csessig86 / flood-gauges.html
Created August 25, 2016 18:25
Flood gauge embed
<h3 class="hide-desktop show-mobile">MAP: Flood threats in Iowa</h3>
<p class="hide-desktop show-mobile"><a href="http://files.gazlab.com/content-host/flood_gauges/index.html" target="_blank"> <img src="http://files.gazlab.com/content-host/flood_gauges/ss.jpeg" alt="" width="100%" /> </a></p>
<div class="hide-650">
<div class="center"><iframe frameborder="0" height="600" scrolling="no" src="http://files.gazlab.com/content-host/flood_gauges/index.html" width="300"></iframe></div>
</div>
<div class="iframe-open-window hide-desktop show-mobile"> </div>
@csessig86
csessig86 / navarticles.html
Created August 23, 2016 16:04
navigationItem using AJAX
<script>
$(document).ready(function() {
$.get('/section/&template=NavArticles&navProfile=<%Script_Profile_ID%>', function(data) {
$('.profile<%Script_Profile_ID%>').html(data);
});
});
</script>