Skip to content

Instantly share code, notes, and snippets.

@jmlweb
Created March 23, 2012 12:52
Show Gist options
  • Save jmlweb/2170422 to your computer and use it in GitHub Desktop.
Save jmlweb/2170422 to your computer and use it in GitHub Desktop.
Chopshop.coffee
$ ->
#Colorbox
$('a.popup', '#content').colorbox(colorboxOpts)
#General
$('nav.categories a span, h2 span').hide()
$('.slideshow .banner').cycle
fx: 'scrollLeft'
speed: 1500
timeout: 8000
pager: '#slideNav'
pagerAnchorBuilder: (idx, slide) -> return '#slideNav li:eq(' + idx + ') a'
((function(){$(function(){$("a.popup","#content").colorbox(colorboxOpts);$("nav.categories a span, h2 span").hide();return $(".slideshow .banner").cycle({fx:"scrollLeft",speed:1500,timeout:8e3,pager:"#slideNav",pagerAnchorBuilder:function(a,b){return"#slideNav li:eq("+a+") a"}})})})).call(this);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment