Rev 15 | Details | Compare with Previous | 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'), |
||
16 | kardasa | 30 | 'title': $(this).parent().find('p').html(), |
31 | 'onComplete' : function() { |
||
32 | $("#fancybox-wrap").hover(function() { |
||
33 | $("#fancybox-title").slideDown(); |
||
34 | }, function() { |
||
35 | $("#fancybox-title").slideUp(); |
||
36 | }); |
||
37 | } |
||
15 | kardasa | 38 | } |
39 | ); |
||
16 | kardasa | 40 | }).hover(function(){ |
41 | $(this).parent().find('.ae-image-description:first').slideDown(); |
||
42 | }, function(){ |
||
43 | $(this).parent().find('.ae-image-description:first').slideUp(); |
||
15 | kardasa | 44 | }); |
45 | var context = this; |
||
46 | this.preloadImage(this.current_index + 1); |
||
47 | } |
||
48 | } |
||
49 | }); |
||
50 | }); |