Subversion Repositories My Stuff

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
15 kardasa 1
$(document).ready(function(){
2
    var galleries = $('.ae-gallery').aeGallery({
3
            loader_image: 'modules/Gallery/templates/ae-gallery/loader.gif',
4
            slideshow: {
5
              autostart: false,
6
              speed: 5000,
7
              start_label: 'Start',
8
              stop_label: 'Stop',
9
              stop_on_scroll: false,
10
            },  
11
            callbacks: {
12
              init: function() {
13
                this.preloadImage(0);
14
              },
15
          afterImageVisible: function() {
16
                        $('.ae-image > img').click(function(){
17
                                $.fancybox(
18
                                                {
19
                                                        'speedIn':      300,
20
                                                        'speedOut':     300,
21
                                                        'overlayColor': '#000',
22
                                                        'overlayOpacity':       0.7,
23
                                                        'centerOnScroll': true,
24
                                                        'titlePosition': 'over',
25
                                                        'transitionIn':  'elastic',
26
                                                        'transitionOut': 'elastic',
27
                                                        'showNavArrows': false,
28
                                                        'showCloseButton':      true,
29
                                                        'href': $(this).attr('src'),
30
                                                        'title': $(this).parent().find('p').html()
31
                                                }
32
                                        );
33
                        });
34
                var context = this;
35
                this.preloadImage(this.current_index + 1);
36
                }
37
          }
38
    });
39
});