Scroll around a beautiful parallax sky, built with canvas for buttery-smooth performance.
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
/* Magnific Popup CSS */ | |
//////////////////////// | |
// | |
// Contents: | |
// | |
// 1. Default Settings | |
// 2. General styles | |
// - Transluscent overlay | |
// - Containers, wrappers |
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
// Will Absolute Centering work in this browser? | |
Modernizr.testStyles('#modernizr { height: 50px; width: 50px; margin: auto; position: absolute; top: 0; left: 0; bottom: 0; right: 0; }', function(elem, rule) { | |
Modernizr.addTest('absolutecenter', Math.round(window.innerHeight / 2 - 25) === elem.offsetTop); | |
}); | |
// Does this browser support Display: Table variable height? | |
Modernizr.testStyles('#modernizr { display: table; height: 50px; width: 50px; margin: auto; position: absolute; top: 0; left: 0; bottom: 0; right: 0; }', function(elem, rule) { | |
Modernizr.addTest('absolutecentercontent', Math.round(window.innerHeight / 2 - 25) === elem.offsetTop); | |
}); |
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 | |
/*//////////////////////////////////////// | |
WORDPRESS PAGE CHECKLIST | |
////////////////////////////////////////*/ | |
// Load WordPress | |
require_once( './wp/wp-load.php' ); | |
?><html> | |
<head> |
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
(function($){ | |
var addClass = $.fn.addClass; | |
$.fn.addClass = function(value) { | |
var orig = addClass.apply(this, arguments); | |
var elem, | |
i = 0, | |
len = this.length; | |
for (; i < len; i++ ) { |
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 | |
function north_cast_api_data($content) { | |
if (is_numeric($content)) $content = intval($content); | |
else { | |
$unserialized_content = @unserialize($content); | |
// we got serialized content | |
if ($unserialized_content !== false) { | |
// make sure that integers are represented as such, instead of str | |
foreach ($unserialized_content as $fn => &$c) { |
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
#!/bin/sh | |
# Output file for HTML5 video | |
# Requirements: ffmpeg .6+ with libvorbis, theora and libvpx | |
# ( Install via brew with `brew install ffmpeg --with-libvorbis --with-libvpx --with-theora` ) | |
# Usage: `./html5video.sh infile.mp4` | |
# Optional parameters: | |
# `./html5video.sh infile.mp4 -y` to force overwriting existing videos | |
# `./html5video.sh infile.mp4 -n 640x480` to force an output size |
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
// jQuery's removeClass doesn't work for SVG, but this does! | |
// takes the object obj to remove from, and removes class remove | |
// returns true if successful, false if remove does not exist in obj | |
(function($){ | |
$.fn.addClassSVG = function(addclass) { | |
var elem, | |
i = 0, | |
len = this.length; |
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
(function($) { | |
$.fn.flipster = function(options) { | |
var defaults = { | |
itemContainer: 'ul', // Container for the flippin' items. | |
itemSelector: 'li', // Selector for children of itemContainer to flip | |
// style: 'coverflow', // Switch between 'coverflow' or 'carousel' display styles | |
// display: 'all', // Number of items to display. Set to 'all' to show all | |
sideItems: 'all', // Number of items to display on each side. Set to 'all' to show all. | |
loop: false, |
OlderNewer