Skip to content

Instantly share code, notes, and snippets.

@freshhold
freshhold / _twitter_with_flexslider.html
Last active January 11, 2016 23:11
Implementing a slider of latest tweets - based on Jason Mayes' excellent TwitterFetcher
<section class="latest-tweets clearfix">
<div class="container">
<h2 class="center padbottommore">{{ child.name }}</h2>
<div class="row">
<div class="col-md-8 col-md-offset-2 center">
<div id="tweets"></div>
</div>
</div>
</div>
</section>
@freshhold
freshhold / set-sticky-url-parameter.html
Last active October 31, 2015 01:23
System to track original recruiter in NB
{% unless request.sorta_logged_in? %}
<script type="text/javascript">
/* A function to capture the value of a specific URL parameter */
function getQueryVariable(variable) {
var query = window.location.search.substring(1);
var vars = query.split("&");
for (var i = 0; i < vars.length; i++) {
var pair = vars[i].split("=");
if (pair[0] == variable) {
return pair[1];
@freshhold
freshhold / _search.html
Created September 29, 2015 20:39
The partial file used to add a custom search page to your NationBuilder site - BOOTSTRAP VERSION
<style type="text/css">
.gcsc-branding, .gsc-adBlock {
display: none!important;
}
.gsc-table-result, .gsc-thumbnail-inside, .gsc-url-top {
padding-left: 0px!important;
}
.gsc-tabHeader:first-letter {
text-transform: uppercase;
}
@freshhold
freshhold / _search.html
Last active September 29, 2015 20:35
The partial file used to add a custom search page to your NationBuilder site
<style type="text/css">
.gcsc-branding, .gsc-adBlock {
display: none!important;
}
.gsc-table-result, .gsc-thumbnail-inside, .gsc-url-top {
padding-left: 0px!important;
}
.gsc-tabHeader:first-letter {
text-transform: uppercase;
}