metadin
clone your own copy | download snapshot

Snapshots | iceberg

Inside this repository

slideshow-page.js
application/javascript

Download raw (735 bytes)

/*
 * metaflop - web interface
 * © 2012 by alexis reigel
 * www.metaflop.com
 *
 * licensed under gpl v3
 */

$(function () {
    var box = $('.box-slideshow');
    var slideshow = box.find('.box-content');
    var progress = box.find('h2 span');
    var initSlideshow = function() {
        slideshow.bjqs({
            width: slideshow.width(),
            height: 540,
            nextText: '',
            prevText: '',
            rotationSpeed: 4000,
            showControls: false,
            showMarkers: false,
            mouseNav: true,
            nextImageLoaded: function(position, slideCount) {
              progress.html(position + 1 + "/" + slideCount);
            }
        });
    };

    initSlideshow();
});