This file contains 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
/** | |
* Event | |
* ------------------------------------------------------------------------ | |
* event{} | |
* @version 1.0 | April 23rd 2013 | |
* @author Beau Charman | @beaucharman | http://beaucharman.me | |
* @link https://gist.github.com/beaucharman/5127116 | |
* @method add | |
* @method remove | |
* @method getTarget |
This file contains 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
<?php | |
/** | |
* Simple Capture Form | |
* | |
* <input type="hidden" name="first_name" value="" /> | |
* <input type="hidden" name="form_submitted" value="true" /> | |
* | |
* May need to consider using https://github.com/PHPMailer/PHPMailer | |
* with an SMTP server if mail from this form goes to spam folder | |
*/ |
This file contains 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
// examples | |
;(function () { | |
ajax.json('file.php', {best: "cats", awesome: "javascript"}, function (json) { | |
var foo = document.getElementById('foo'); | |
for (var ii = 0, len = json.length; ii < len; ii++) { | |
foo.innerHTML += '<li>' + json[ii].name + ': ' + json[ii].details + '</li>'; | |
} | |
}); |
This file contains 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
/** | |
* RoundTo | |
* ------------------------------------------------------------------------ | |
* roundTo() | |
* @version 1.0 | April 18th 2013 | |
* @author Beau Charman | @beaucharman | http://www.beaucharman.me | |
* @link https://gist.github.com/beaucharman/5401683 | |
* @param {float} n | the subject number we are rounding | |
* @param {integer} d | the number to decimal places to round to | |
* @param {string} dir | 'round', 'floor' or 'ceil' |
This file contains 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
/** | |
* Rhythm | |
* ------------------------------------------------------------------------ | |
* rhythm() | |
* @version 1.0 | April 25th 2013 | |
* @author Beau Charman | @beaucharman | http://www.beaucharman.me | |
* @link https://gist.github.com/beaucharman/5459188/ | |
* @param {em} $fontsize | em unit value | |
* @param {float} $lineheight | decimal value | |
* @return {em} em unit value |
This file contains 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
/** | |
* Equal Height | |
* ======================================================================== */ | |
(function ($) { | |
$.fn.equalheight = function () { | |
var tallest = 0; | |
var height = 0; | |
//var offest = 0; | |
var $elements = $(this); | |
var resizeElements = function () { |
This file contains 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
/** | |
* Get Query Vars | |
*/ | |
var getUrlVars = function () { | |
var vars = []; | |
var hash; | |
var href = window.location.href; | |
if (href.indexOf('#') !== -1) { | |
href = href.substr(0, href.indexOf('#')); | |
} |
This file contains 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
<?php | |
/** | |
* ACF Layout | |
* @version 1.0 | November 12th 2013 | |
* @author Beau Charman | http://twitter.com/beaucharman | |
* @link https://gist.github.com/beaucharman/7181406 | |
* @license MIT license | |
* | |
* Logical layout automation for Advanced Custom Fields and it's Flexible Content Field add on. |
This file contains 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
/** | |
* | |
* Equal Height Columns | |
* | |
* Horizontally Even Columns | |
* | |
* @param {object} | |
* @param {boolean} 'responsive' | |
* @param {integer} 'responsiveDelay' | |
* @param {string} 'bindTo' |
OlderNewer