You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
772 B

/*
** Summary - Creates an sliding effect for an image gallery. To use create a new instance of the Accordian object.
**
** leftSelector, rightSelector : jquery selector pointing to the left and right buttons
** scrollerSelector : jquery selector for the scrolling element
** imageWidth : width of each image in the gallery - should include outer space like margins etc.
** imageCount : number of images in the gallery
** options : optional params object to enable/disable scroll buttons - leftClickHide, leftClickShow, rightClickHide, rightClickShow
*/
function Accordion(leftSelector, rightSelector, scrollerSelector, imageWidth, imageCount, pageSize, options) {
"use strict";
var _page = 0;
var _scrollAmount = imageWidth * pageSize;