2 * Galleria Classic Theme
3 * http://galleria.aino.se
5 * Copyright (c) 2010, Aino
6 * Licensed under the MIT license.
15 css: 'galleria.classic.css',
21 init: function(options) {
23 this.addElement('info-link','info-close');
25 'info' : ['info-link','info-close']
28 this.$('loader').show().fadeTo(200, .4);
29 this.$('counter').show().fadeTo(200, .4);
31 this.$('thumbnails').children().hover(function() {
32 $(this).not('.active').children().stop().fadeTo(100, 1);
34 $(this).not('.active').children().stop().fadeTo(400, .4);
35 }).not('.active').children().css('opacity',.4);
37 this.$('container').hover(this.proxy(function() {
38 this.$('image-nav-left,image-nav-right,counter').fadeIn(200);
39 }), this.proxy(function() {
40 this.$('image-nav-left,image-nav-right,counter').fadeOut(500);
43 this.$('image-nav-left,image-nav-right,counter').hide();
45 var elms = this.$('info-link,info-close,info-text').click(function() {
49 if (options.show_caption) {
50 elms.trigger('click');
53 this.bind(Galleria.LOADSTART, function(e) {
55 this.$('loader').show().fadeTo(200, .4);
58 this.$('info').show();
60 this.$('info').hide();
64 this.bind(Galleria.LOADFINISH, function(e) {
65 this.$('loader').fadeOut(200);
67 this.bind(Galleria.LOADSTART, function(e) {
68 $(e.thumbTarget).css('opacity',1).parent().addClass('active')
69 .siblings('.active').removeClass('active').children().css('opacity',.4);