Skip to content

Instantly share code, notes, and snippets.

@imakewebthings
imakewebthings / gist:1216527
Created September 14, 2011 13:20
Extended Slide Events
(function($, deck, undefined) {
$(document).bind('deck.change', function(e, from, to) {
var $prev = $[deck]('getSlide', to-1),
$next = $[deck]('getSlide', to+1);
$[deck]('getSlide', to).trigger('deck.becameCurrent');
$prev && $prev.trigger('deck.becamePrevious');
$next && $next.trigger('deck.becameNext');
});
})(jQuery, 'deck');
@imakewebthings
imakewebthings / gist:1113084
Created July 29, 2011 03:44
TNF- Assets with copy
REMOVED /account/btnCheckOrderStatus.png
REMOVED /account/btnCreateAccount.png
REMOVED /account/btnCreateAccountR.png
REMOVED /account/btnEditPrefs.png
REMOVED /account/btnSavePrefs.png
REMOVED /account/btnSignInR.png
REMOVED /account/btnUnsubscribe.png
REMOVED /checkout/btnApply.png
REMOVED /checkout/btnApplyBalance.png
REMOVED /checkout/btnBackToOffer.png
@imakewebthings
imakewebthings / modernizr-bgc-text.js
Created April 5, 2011 07:44
backgroundClip: text; revision for FF4?
Modernizr.addTest('backgroundcliptext',function(){
var div = document.createElement('div');
var bgClip = false;
if ('backgroundClip' in div.style) bgClip = true;
'Webkit Moz O ms Khtml'.replace(/([A-Za-z]*)/g, function(val) {
if (val+'BackgroundClip' in div.style) bgClip = true;
});
if (bgClip) {
div.style.backgroundClip = 'text';
if (div.style.backgroundClip === 'text') return true;