A Pen by Derick Montague on CodePen.
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
<!--[if lt IE 9]> | |
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> | |
<![endif]--> | |
</head> | |
<body> |
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
// http://www.robertmullaney.com/2010/11/12/safe-email-mailto-links-using-jquery/ | |
generateMail : (function() { | |
$('a[href*="[at]"][href*="[dot]"]').each(function() { | |
var email = $(this).attr('href').split('[at]').join('@').split('[dot]').join('.'); | |
$(this).attr('href', 'mailto:' + email.toLowerCase()); | |
$(this).text(email); | |
}); | |
}), |
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
// Custom function to check if column is middle column | |
// of a three column layout based on the index | |
function is_middle_column($index) | |
{ | |
$isMiddleColumn = false; | |
$postIndex = $index; | |
if (($postIndex - 1) % 3 == 0) | |
{ | |
$isMiddleColumn = true; |
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
<script> | |
/**************************************************************************************************** | |
Checking for old IE and Firefox versions and defaulting to flash with html 5 fallback | |
Not serving .ogg file so Firefox requires Flash | |
Flash does not like dimensions set to auto, so set these to 100% when using flash for playback | |
****************************************************************************************************/ | |
$(document).ready(function(){ | |
var ua = $.browser; | |
var uaVersion = ua.version.slice(0,3); |
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
/* Some tweaks needed to accommodate different background and foreground colors colors */ | |
text-shadow-dark { | |
text-shadow: 0 1px 1px rgba(255, 255, 255, .5), 0 -1px 1px rgba(0, 0, 0, .5) | |
} | |
text-shadow-light { | |
text-shadow: 0 1px 1px rgba(255, 255, 255, .9), 0 -1px 1px rgba(0, 0, 0, .1); | |
} |
NewerOlder