Skip to content

Instantly share code, notes, and snippets.

@hansek

hansek/gist:3951452

Created Oct 25, 2012
Embed
What would you like to do?
Basic call of jQuery Cycle for Adapt
// banner slideshow
if ($('#js-banner-wrapper').children().length > 1) {
$('#js-banner-wrapper').cycle({
fx: 'fade',
activePagerClass: 'active',
timeout: 0,
next: '#js-banner-next',
prev: '#js-banner-prev',
width: '100%',
fit: 1,
pager: '#js-banner-pager',
pagerAnchorBuilder: function(idx, slide) {
return '<li><a href="#"><img src="' + $(slide).data('imgsrc') + '" width="72" height="45" /></a></li>';
}
});
}
else {
$('#js-banner-control').hide();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment