|
|
Not so sure if this is useful generally, but attached is a patched version
of glider.js which supports observers that can perform whatever action they
are configured, whenever the sections slide.
Example observer updates page counts for the items within each section (eg,
"Showing items 1-5" to "Showing items 6-10" when someone slides from
section1 to section2, etc.
Pass observers to the constructor:
var myGlider = new Glider('myGlider', {
duration:0.9,
changeObservers: [ new PageRangeUpdater($('page-range'), 5, 17) ],
initialSection: 'section1'});
|