Skip to content

Instantly share code, notes, and snippets.

@gaboesquivel
Created September 27, 2012 21:21
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 gaboesquivel/3796542 to your computer and use it in GitHub Desktop.
Save gaboesquivel/3796542 to your computer and use it in GitHub Desktop.
cycle
cycle_rtc = (e) ->
$(e).cycle
fx: "fade"
speed: 'fast'
timeout: 0
next: '.next'
prev: '.prev'
pager: '#rtc_pager ul'
pagerEvent: "click"
after: on_after
pagerAnchorBuilder: (idx, slide) ->
title = $(slide).data("pager-title")
return "<li class='pager-step step#{(idx+1)}' ><span class='title'><a href='#''>#{title}</a></li>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment