X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=www%2Fthemes%2Fdots%2Fgalleria.dots.js;fp=www%2Fthemes%2Fdots%2Fgalleria.dots.js;h=5501bb6af68ee9899872d1def6098be3e9aaa9a5;hb=6468e8c20ecbb8ca9601058bc17b0d18d178e171;hp=0000000000000000000000000000000000000000;hpb=2dbf4d0209064d7c481ae33df8a2e0fa2b5a4982;p=scribo diff --git a/www/themes/dots/galleria.dots.js b/www/themes/dots/galleria.dots.js new file mode 100644 index 0000000..5501bb6 --- /dev/null +++ b/www/themes/dots/galleria.dots.js @@ -0,0 +1,43 @@ +/*! + * Galleria Dots Theme + * http://galleria.aino.se + * + * Copyright (c) 2010, Aino + * Licensed under the MIT license. + */ + +(function($) { + +Galleria.addTheme({ + name: 'dots', + author: 'Galleria', + version: '1.1', + css: 'galleria.dots.css', + defaults: { + transition: 'slide', + transition_speed: 500, + thumbnails: 'empty', + carousel: false, + image_crop: false, + autoplay: true + }, + init: function(options) { + this.$('thumbnails').find('.galleria-image').css('opacity',0.5).hover(function() { + $(this).fadeTo(200,1); + }, function() { + $(this).not('.active').fadeTo(200,.5); + }); + this.$('info').insertAfter(this.target); + this.bind(Galleria.LOADSTART, function(e) { + if (!e.cached) { + this.$('loader').show().fadeTo(200, .8); + } + $(e.thumbTarget).parent().stop().css('opacity',1).siblings('.active').css('opacity',0.5) + }); + this.bind(Galleria.LOADFINISH, function(e) { + this.$('loader').fadeOut(200); + }); + } +}); + +})(jQuery); \ No newline at end of file