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.carousel = function(config) { | |
var defaults = { | |
slider: '.slider', | |
slide: '.slide', | |
prevSlide: '.prev', | |
nextSlide: '.next', | |
speed: 500 | |
}, | |
opt = $.extend(defaults, config); |
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
{ | |
"images" : { | |
"image1" : [ | |
{ | |
"src" : "path/to/img1.png", | |
"width" : "190px", | |
"layer" : "3", | |
"rotation": [ | |
{ | |
"degrees" : -90, |
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
// also handles swipeleft, swiperight | |
$.event.special.swipe = { | |
setup: function() { | |
var thisObject = this, | |
$this = $( thisObject ); | |
$this | |
.bind( touchStartEvent, function( event ) { | |
var data = event.originalEvent.touches ? | |
event.originalEvent.touches[ 0 ] : |
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
/*/ | |
alert("Commented out."); | |
//*/ | |
//*/ | |
alert("Runs normally."); |
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
/* TODO: Something about keyboard support. */ | |
(function(win, undefined){ | |
support = { | |
detailToggle : function() { | |
var fakeBody, | |
doc = document, | |
de = doc.documentElement, | |
bod = doc.body || (function() { | |
fakeBody = 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
.faderotate { | |
height: 250px; | |
position: relative; | |
width: 100%; | |
} | |
.faderotate .slide { | |
left: 0; | |
position: absolute; | |
top: 0; |
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
$.support.positionFixed = (function (){ | |
var contain = $( document.documentElement ); | |
if ( 'getBoundingClientRect' in contain[0] ) { | |
var el = $( "<div style='position:fixed;top:100px;'>x</div>" ).appendTo( contain ), | |
originalHeight = contain[ 0 ].style.height, | |
w = window, | |
result; | |
contain.height( screen.height * 2 + "px" ); |
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
var vendors = [ "Webkit", "Moz", "O" ]; | |
function validStyle( prop, value, check_vend ) { | |
var div = document.createElement('div'), | |
uc = function( txt ) { | |
return txt.charAt( 0 ).toUpperCase() + txt.substr( 1 ) | |
}, | |
vend_pref = function( vend ) { | |
return "-" + vend.charAt( 0 ).toLowerCase() + vend.substr( 1 ) + "-"; | |
}, |
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.accessibleTabs = function(){ | |
return this.each(function(e) { | |
var $el = $(this); | |
$el.find("li").keydown(function(e) { | |
var $el = $(this), | |
$prevTab = $el.prev().find('a'), | |
$nextTab = $el.next().find('a'), | |
$first = $el.parent().find("li:first a"), |
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 depjson, | |
builderhtml = [], | |
sortable = [], | |
groupBy = function( jsondata ) { | |
var newarray = []; | |
for (key in jsondata) { | |
console.log( key ); | |
} |
OlderNewer