Skip to content

Instantly share code, notes, and snippets.

View bbthorson's full-sized avatar
👋

Brad Thorson bbthorson

👋
View GitHub Profile
@bbthorson
bbthorson / color palette.md
Last active August 29, 2015 13:57
Possible color palette replacement for roster

##New Palette Grey

  • #AAAAAA
  • (170, 170, 170)

Blue

  • #0074D9
  • (0, 116, 217)
@bbthorson
bbthorson / PostPlacement
Last active August 29, 2015 14:05
End of Post AdsNative Placement
<div id="adsnative-inpost">
<div class="adsnative-sponsor">Sponsored Content</div>
<div class="adsnative-thumbnail">
{{ feature_image(a=true) }}
</div>
<div class="adsnative-post">
{{ post_title(h="h3") }}
{{ post_summary(tagName="p") }}
<div class="adsnative-post-meta">
{{ post_author(tagName="small") }}
@bbthorson
bbthorson / PostPlacement
Last active August 29, 2015 14:05
End of Post Placement CSS Styling
.adsnative-reset {
clear:both;
}
#adsnative-inpost {
clear:both;
margin:1% 0%;
padding:1% 0%;
min-height:200px;
}
#adsnative-inpost .adsnative-sponsor {

#AdsNative CSS Path Documentation

AdsNative follows it's own format to specify the CSS path to simplify and optimize native ad injection.

One example is as follows: #div-id > div.class:eq(0) > div.class2:eq(2)

Here are some basic rules to follow:

  1. Start with listing outermost element from left to right.
  2. AdsNative will insert the placement just before the element for which you configure the cssPath for, unless you have :after after the last element, in which case it will insert it after the element. For example, #div-id &gt; div.class:eq(0) &gt; div.class2:eq(2):after will output the placement after the given element.
@bbthorson
bbthorson / contactModal.html
Created November 5, 2014 19:51
Example Contact Modal for landing page
<!-- Modal -->
<div class="modal" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
<h4 class="modal-title" id="myModalLabel">Modal title</h4>
</div>
<div class="modal-body">
<form role="form">
NPR,Fresh Air,http://www.npr.org/rss/podcast.php?id=381444908
,Wait Wait... Don't Tell Me,http://www.npr.org/rss/podcast.php?id=344098539
,Bullseye with Jesse Thorn,http://npr.org/rss/podcast.php?id=510309
,On Point With Tom Ashbrook,http://www.npr.org/rss/podcast.php?id=510053
,Only A Game,http://www.npr.org/rss/podcast.php?id=510052
,Here & Now,http://www.npr.org/rss/podcast.php?id=510051
,Latino USA,http://www.npr.org/rss/podcast.php?id=510016
,Car Talk,http://www.npr.org/rss/podcast.php?id=510208
,Piano Jazz Shorts,http://www.npr.org/rss/podcast.php?id=510056
,From The Top,http://www.npr.org/rss/podcast.php?id=510026
{
"id": 820982911946154508,
"email": "[email protected]",
"closed_at": null,
"created_at": "2020-04-06T10:29:55-04:00",
"updated_at": "2020-04-06T10:29:55-04:00",
"number": 234,
"note": null,
"token": "123456abcd",
"gateway": null,