This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<xsl:template match="table[@class='ou-btns_group_style1']"> | |
<xsl:for-each select="tbody/tr"> | |
<xsl:variable name="icon-className" select="td[3]"/> | |
<xsl:variable name="btn-bgcolor"> | |
<xsl:choose> | |
<xsl:when test="contains(td[4]/text(), 'red')">red</xsl:when> | |
<xsl:when test="contains(td[4]/text(), 'black')">black</xsl:when> | |
<!-- default no bg overlay --> | |
<xsl:otherwise>red</xsl:otherwise> | |
</xsl:choose> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function(){ | |
if ( window.location.href.indexOf("cfpage=") !== -1 ){ | |
// select the classes(or IDs) here that should be hidden | |
$(".images").hide(); | |
$(".intro-text").hide(); | |
} | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Execute a PULL or GET ApiCall | |
/// </summary> | |
/// <param name="url">The full URL including the querystring parameters</param> | |
/// <param name="type">PULL or GET</param> | |
/// <param name="cookies">A CookieContainer that can be used to string </param> | |
/// <returns>Resturns a string of the response from the API call.</returns> | |
protected string APICall(string url, string type, CookieContainer cookies) { | |
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href="http://jessclark.com" onclick="ga('send', { | |
hitType: 'event', | |
eventCategory: 'link', | |
eventAction: 'click', | |
eventLabel: 'Jesse' });">Jesse Clark</a> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
$(document).ready(function () { | |
displayResults(); | |
}); | |
</script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>FlexSlider Demo</title> | |
<link rel="stylesheet" href="http://flexslider.woothemes.com/css/flexslider.css" type="text/css" /> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> | |
<script src="http://flexslider.woothemes.com/js/jquery.flexslider.js"></script> | |
</head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript" charset="utf-8"> | |
$(window).load(function() { | |
// get the total number of slides: | |
var numberOfSlides = $(".slides li").size(); | |
// select a random number between 0 and numberOfSlides. | |
var randomStart = Math.floor( Math.random() * numberOfSlides ); | |
$('.flexslider').flexslider({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- ========== START Snippet ========== --> | |
<xsl:template match="table[@class='ou-alex-example']"> | |
<div class="panel break-below"> | |
<xsl:choose> | |
<xsl:when test="$ou:action = 'pub'"> | |
<xsl:apply-templates select="tbody/tr/td/node()"/> | |
</xsl:when> | |
<xsl:otherwise> | |
<p><strong>This content will be removed on publish</strong></p> | |
<xsl:apply-templates select="tbody/tr/td/node()"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<table id="ou-snippet" class="ou-alex-example"> | |
<thead> | |
<tr> | |
<th class="butter ou-help snippet-heading">Alex Example</th></tr> | |
</thead> | |
<tbody> | |
<tr> | |
<td>This is sample content that Jesse placed in here.</td> | |
</tr> | |
</tbody> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<xsl:template match="a[contains(@href, '.php')]"> | |
<xsl:element name="a"> | |
<xsl:for-each select="@*"> | |
<xsl:choose> | |
<xsl:when test="name(.) = 'href'"> | |
<xsl:attribute name="href"> | |
<xsl:value-of select ="replace(., '.php', '')"/> | |
</xsl:attribute> | |
</xsl:when> | |
<xsl:otherwise> |