Skip to content

Instantly share code, notes, and snippets.

@zzuhan
Last active December 26, 2015 03:19
Show Gist options
  • Save zzuhan/7085471 to your computer and use it in GitHub Desktop.
Save zzuhan/7085471 to your computer and use it in GitHub Desktop.
code_structure singleton
var slideshow = {
context: false,
tabs: false,
timeout: 1000,
slideSpeed: 1000,
tabSpeed: 300,
fx: 'scrollLeft'
init: function () {
this.context = $('#slideshow');
//
this.$tabs = $('.slide-nav li', this.context);
this.$tabs.remove();
this.prepareSlideshow();
},
prepareSlideshow: function () {
},
prepareTabs: function () {
},
activeTab: function () {
}
}
jQuery(function() {
slideshow.init();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment