Skip to content

Instantly share code, notes, and snippets.

@mcsheffrey
Created September 1, 2013 22:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcsheffrey/6407659 to your computer and use it in GitHub Desktop.
Save mcsheffrey/6407659 to your computer and use it in GitHub Desktop.
Example Module pattern
carousel = function(){
var config = {
CSS:{
classes:{
current:'current',
scrollContainer:'scroll'
},
IDs:{
maincontainer:'carousel'
}
},
labels:{
previous:'back',
next:'next',
auto:'play'
},
settings:{
amount:5,
skin:'blue',
autoplay:false
},
};
function init(){
};
function scroll(){
};
function highlight(){
};
return {config:config,init:init}
}();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment