http://git-wip-us.apache.org/repos/asf/james-project/blob/6170f93f/src/site/resources/js/galleria/plugins/galleria.flickr.js ---------------------------------------------------------------------- diff --git a/src/site/resources/js/galleria/plugins/galleria.flickr.js b/src/site/resources/js/galleria/plugins/galleria.flickr.js deleted file mode 100644 index 9e0bf59..0000000 --- a/src/site/resources/js/galleria/plugins/galleria.flickr.js +++ /dev/null @@ -1,221 +0,0 @@ -/*! - * Galleria Flickr Plugin v 1.2 - * http://galleria.aino.se - * - * Copyright 2010, Aino - * Licensed under the MIT license. - */ - -(function($) { - -// If no Galleria, fail silently -var G = window.Galleria; -if (typeof G == 'undefined') { - return; -} - -var F = G.Flickr = function(api_key) { - - if (!api_key) { - G.raise('No API key found'); - return; - } - - this.callback = function() {}; - - // The required API key - this.api_key = api_key; - - this.options = { - max: 40, // photos to return - size: 'big', // photo size ( small,medium,big,original ) - sort: 'interestingness-desc', // sort option ( date-posted-asc, date-posted-desc, date-taken-asc, date-taken-desc, interestingness-desc, interestingness-asc, relevance ) - description: false // set this to true to get description as caption - }; -}; - -F.prototype = { - - // find any photos by search string - search: function( str ) { - this._set(arguments); - return this._find({ - text: str - }); - }, - - // find any photos by tagname - getTags: function( str ) { - this._set(arguments); - return this._find({ - tags: str - }); - }, - - // get photos from a user - getUser: function(username) { - var args = arguments; - return this._call({ - method: 'flickr.urls.lookupUser', - url: 'flickr.com/photos/' + username - }, function(data) { - this._set(args); - this._find({ - user_id: data.user.id, - method: 'flickr.people.getPublicPhotos' - }); - }); - }, - - // get photos from a photoset - getSet: function(photoset_id) { - this._set(arguments); - return this._find({ - photoset_id: photoset_id, - method: 'flickr.photosets.getPhotos' - }); - }, - - // get photos from a gallery - getGallery: function(gallery_id) { - this._set(arguments); - return this._find({ - gallery_id: gallery_id, - method: 'flickr.galleries.getPhotos' - }); - }, - - // search for groups by search string, returns an array with group objects - // use getGroup to get the photos from a group ID - // added in 1.2 - searchGroup: function(str, callback) { - callback = callback || function() {}; - this._call({ - text: str, - method: 'flickr.groups.search' - }, function(data) { - callback.call( window, data.groups.group); - }); - return this; - }, - - // get photos from a group ID - // added in 1.2 - getGroup: function ( group_id ) { - this._set( arguments ); - return this._find({ - group_id: group_id, - method: 'flickr.groups.pools.getPhotos' - }); - }, - - // set options - setOptions: function( options ) { - $.extend(this.options, options); - return this; - }, - - // shortens the arguments and applies options - // private - _set: function( args ) { - - args = Array.prototype.slice.call(args); - - this.callback = args[2] || args[1]; - - if (typeof args[1] == 'object') { - this.setOptions(args[1]); - } - - return this; - }, - - // call Flickr and raise errors - _call: function( params, callback ) { - - var url = 'http://api.flickr.com/services/rest/?'; - - var scope = this; - - params = $.extend({ - format : 'json', - jsoncallback : '?', - api_key: this.api_key - }, params ); - - $.each(params, function( key, value ) { - url += '&' + key + '=' + value; - }); - - $.getJSON(url, function(data) { - if ( data.stat == 'ok' ) { - callback.call(scope, data); - } else { - Galleria.raise( data.code.toString() + ' ' + data.stat + ': ' + data.message ); - } - }); - return scope; - }, - - // ask flickr for photos, parse the result and call the callback with the galleria-ready data array - _find: function(params) { - - params = $.extend({ - method: 'flickr.photos.search', - extras: 'url_t, url_m, url_o, url_s, url_l, description', - sort: this.options.sort - }, params ); - - return this._call(params, function(data) { - - var gallery = [], - photos = data.photos ? data.photos.photo : data.photoset.photo, - len = Math.min(this.options.max, photos.length); - - for ( var i=0; i<len; i++ ) { - var photo = photos[i], - img = photo.url_m; - - switch(this.options.size) { - case 'small': - img = photo.url_s; - break; - - case ( 'big' || 'large' ): - if ( photo.url_l ) { - img = photo.url_l; - } else if ( parseInt( photo.width_o ) > 1280 ) { - img = 'http://farm'+photo['farm']+'.static.flickr.com/'+photo['server']+ - '/'+photo['id']+'_' + photo['secret'] + '_b.jpg'; - - } else if( photo.url_o ) { - img = photo.url_o; - } - break; - - case 'original': - if( photo.url_o ) { - img = photo.url_o; - } - break; - } - var item = { - thumb: photos[i].url_t, - image: img, - title: photos[i].title, - description: this.options.description && photos[i].description ? photos[i].description._content : '' - }; - gallery.push( item ); - } - this.callback.call( this, gallery ); - }); - } -}; - -// Static -// TODO: fetch any flickr feed ( YQL integration ) -F.getFeed = function(type, params) { - -}; - -})( jQuery ); \ No newline at end of file
http://git-wip-us.apache.org/repos/asf/james-project/blob/6170f93f/src/site/resources/js/galleria/themes/classic/README.rst ---------------------------------------------------------------------- diff --git a/src/site/resources/js/galleria/themes/classic/README.rst b/src/site/resources/js/galleria/themes/classic/README.rst deleted file mode 100644 index df0e20e..0000000 --- a/src/site/resources/js/galleria/themes/classic/README.rst +++ /dev/null @@ -1,10 +0,0 @@ -====================== -Galleria Classic Theme -====================== - -This is the Galleria Classic Theme that fetches image data from a list of IMG elements and generates thumbnails. If the thumbnailâs total width exceeds the containing width, Galleria automatically adds a carousel (unless disabled). Galleria automatically adjusts itâs width to the containing elementâs size. - -Check out classic-demo.html for example usage. - -Copyright (c) 2010, Aino -Licensed under the MIT license. \ No newline at end of file http://git-wip-us.apache.org/repos/asf/james-project/blob/6170f93f/src/site/resources/js/galleria/themes/classic/classic-demo.html ---------------------------------------------------------------------- diff --git a/src/site/resources/js/galleria/themes/classic/classic-demo.html b/src/site/resources/js/galleria/themes/classic/classic-demo.html deleted file mode 100644 index 54015c2..0000000 --- a/src/site/resources/js/galleria/themes/classic/classic-demo.html +++ /dev/null @@ -1,41 +0,0 @@ -<!DOCTYPE html> -<html lang="en"> - <head> - <meta charset="utf-8"> - <title>Galleria Classic Theme</title> - <script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> - <script src="../../../src/galleria.js"></script> - <style> - html,body{background:#333} - .content{color:#eee;font:14px/1.4 "helvetica neue", arial,sans-serif;width:620px;margin:20px auto} - h1{line-height:1.1;letter-spacing:-1px;} - a {color:#fff;} - #galleria{height:400px;} - </style> - </head> -<body> - <div class="content"> - <h1>Galleria Classic Theme</h1> - - <div id="galleria"> - <img alt="Squirrel! That is all." src="http://upload.wikimedia.org/wikipedia/commons/thumb/0/02/Eichh%C3%B6rnchen_D%C3%BCsseldorf_Hofgarten_edit.jpg/800px-Eichh%C3%B6rnchen_D%C3%BCsseldorf_Hofgarten_edit.jpg"> - <img src="http://upload.wikimedia.org/wikipedia/commons/thumb/f/f8/Sea-otter-morro-bay_13.jpg/800px-Sea-otter-morro-bay_13.jpg"> - <img src="http://upload.wikimedia.org/wikipedia/commons/thumb/7/70/Kuznetsk_Alatau_3.jpg/500px-Kuznetsk_Alatau_3.jpg"> - <img alt="Strawberries, yum yum! Shiny red" src="http://upload.wikimedia.org/wikipedia/commons/thumb/d/de/Basket_of_strawberries_red_accent.jpg/500px-Basket_of_strawberries_red_accent.jpg"> - <img src="http://upload.wikimedia.org/wikipedia/commons/2/2d/Ns1-unsharp.jpg"> - <img src="http://upload.wikimedia.org/wikipedia/commons/thumb/6/67/Laser_effects.jpg/500px-Laser_effects.jpg"> - <img src="http://upload.wikimedia.org/wikipedia/commons/thumb/1/1b/PizBernina3.jpg/500px-PizBernina3.jpg"> - <img src="http://upload.wikimedia.org/wikipedia/commons/thumb/4/47/La_Galera_2.jpg/500px-La_Galera_2.jpg"> - <img src="http://upload.wikimedia.org/wikipedia/commons/thumb/9/92/Costa_rica_santa_elena_skywalk.jpg/500px-Costa_rica_santa_elena_skywalk.jpg"> - <img src="http://upload.wikimedia.org/wikipedia/commons/thumb/b/b2/Smoky_forest.jpg/500px-Smoky_forest.jpg"> - <img src="http://upload.wikimedia.org/wikipedia/commons/thumb/a/a9/Alcea_rosea_and_blue_sky.jpg/500px-Alcea_rosea_and_blue_sky.jpg"> - </div> - </div> - <script> - // Load the classic theme - Galleria.loadTheme('galleria.classic.js'); - // Initialize Galleria - $('#galleria').galleria(); - </script> - </body> -</html> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/james-project/blob/6170f93f/src/site/resources/js/galleria/themes/classic/classic-loader.gif ---------------------------------------------------------------------- diff --git a/src/site/resources/js/galleria/themes/classic/classic-loader.gif b/src/site/resources/js/galleria/themes/classic/classic-loader.gif deleted file mode 100644 index 27df81f..0000000 Binary files a/src/site/resources/js/galleria/themes/classic/classic-loader.gif and /dev/null differ http://git-wip-us.apache.org/repos/asf/james-project/blob/6170f93f/src/site/resources/js/galleria/themes/classic/classic-map.png ---------------------------------------------------------------------- diff --git a/src/site/resources/js/galleria/themes/classic/classic-map.png b/src/site/resources/js/galleria/themes/classic/classic-map.png deleted file mode 100644 index 8d3c8c4..0000000 Binary files a/src/site/resources/js/galleria/themes/classic/classic-map.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/james-project/blob/6170f93f/src/site/resources/js/galleria/themes/classic/galleria.classic.css ---------------------------------------------------------------------- diff --git a/src/site/resources/js/galleria/themes/classic/galleria.classic.css b/src/site/resources/js/galleria/themes/classic/galleria.classic.css deleted file mode 100644 index a46caf8..0000000 --- a/src/site/resources/js/galleria/themes/classic/galleria.classic.css +++ /dev/null @@ -1,202 +0,0 @@ -/* - * Galleria Classic Theme - * Copyright (c) 2010, Aino - * Licensed under the MIT license. - */ - -.galleria-container { - position: relative; - overflow: hidden; - background: #000; -} -.galleria-container img { - -moz-user-select: none; - -webkit-user-select: none; - -o-user-select: none; -} -.galleria-stage { - position: absolute; - top: 10px; - bottom: 60px; - left: 10px; - right: 10px; - overflow:hidden; -} -.galleria-thumbnails-container { - height: 50px; - bottom: 0; - position: absolute; - left: 10px; - right: 10px; - z-index: 2; -} -.galleria-carousel .galleria-thumbnails-list { - margin-left: 30px; - margin-right: 30px; -} -.galleria-thumbnails .galleria-image { - height: 40px; - width: 60px; - background: #000; - margin: 0 5px 0 0; - border: 1px solid #000;; - float: left; - cursor: pointer; -} -.galleria-counter { - position: absolute; - bottom: 10px; - left: 10px; - text-align: right; - color: #fff; - font: normal 11px/1 arial,sans-serif; - z-index: 2; -} -.galleria-loader { - background: #000; - width: 20px; - height: 20px; - position: absolute; - top: 10px; - right: 10px; - z-index: 2; - display: none; - background: url(classic-loader.gif) no-repeat 2px 2px; -} -.galleria-info { - width: 50%; - top: 15px; - left: 15px; - z-index: 2; - position: absolute; -} -.galleria-info-text { - background-color: #000; - padding: 12px; - display: none; - /* IE7 */ zoom:1; -} -.galleria-info-title { - font: bold 12px/1.1 arial,sans-serif; - margin: 0; - color: #fff; -} -.galleria-info-description { - font: italic 12px/1.4 georgia,serif; - margin: 0; - color: #bbb; -} -.galleria-info-title+.galleria-info-description { - margin-top: 7px; -} -.galleria-info-close { - width: 9px; - height: 9px; - position: absolute; - top: 5px; - right: 5px; - background-position: -753px -11px; - opacity: .5; - filter: alpha(opacity=50); - cursor: pointer; - display: none; -} -.galleria-info-close:hover{ - opacity:1; - filter: alpha(opacity=100); -} -.galleria-info-link { - background-position: -669px -5px; - opacity: .7; - filter: alpha(opacity=70); - position: absolute; - width: 20px; - height: 20px; - cursor: pointer; - background-color: #000; -} -.galleria-info-link:hover { - opacity: 1; - filter: alpha(opacity=100); -} -.galleria-image-nav { - position: absolute; - top: 50%; - margin-top: -62px; - width: 100%; - height: 62px; - left: 0; -} -.galleria-image-nav-left, -.galleria-image-nav-right { - opacity: .3; - filter: alpha(opacity=30); - cursor: pointer; - width: 62px; - height: 124px; - position: absolute; - left: 10px; - z-index: 2; - background-position: 0 46px; -} -.galleria-image-nav-right { - left: auto; - right: 10px; - background-position: -254px 46px; - z-index: 2; -} -.galleria-image-nav-left:hover, -.galleria-image-nav-right:hover { - opacity: 1; - filter: alpha(opacity=100); -} -.galleria-thumb-nav-left, -.galleria-thumb-nav-right { - cursor: pointer; - display: none; - background-position: -495px 5px; - position: absolute; - left: 0; - top: 0; - height: 40px; - width: 23px; - z-index: 3; - opacity: .8; - filter: alpha(opacity=80); -} -.galleria-thumb-nav-right { - background-position: -578px 5px; - border-right: none; - right: 0; - left: auto; -} -.galleria-thumbnails-container .disabled { - opacity: .2; - filter: alpha(opacity=20); - cursor: default; -} -.galleria-thumb-nav-left:hover, -.galleria-thumb-nav-right:hover { - opacity: 1; - filter: alpha(opacity=100); - background-color: #111; -} -.galleria-thumbnails-container .disabled:hover { - opacity: 0.2; - filter: alpha(opacity=20); - background-color: transparent; -} - -.galleria-carousel .galleria-thumb-nav-left, -.galleria-carousel .galleria-thumb-nav-right { - display: block; -} -.galleria-thumb-nav-left, -.galleria-thumb-nav-right, -.galleria-info-link, -.galleria-info-close, -.galleria-image-nav-left, -.galleria-image-nav-right { - background-image: url(classic-map.png); - background-repeat: no-repeat; -} http://git-wip-us.apache.org/repos/asf/james-project/blob/6170f93f/src/site/resources/js/galleria/themes/classic/galleria.classic.js ---------------------------------------------------------------------- diff --git a/src/site/resources/js/galleria/themes/classic/galleria.classic.js b/src/site/resources/js/galleria/themes/classic/galleria.classic.js deleted file mode 100644 index 1d32775..0000000 --- a/src/site/resources/js/galleria/themes/classic/galleria.classic.js +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Galleria Classic Theme v. 1.5 2010-10-28 - * http://galleria.aino.se - * - * Copyright (c) 2010, Aino - * Licensed under the MIT license. - */ - -(function($) { - -Galleria.addTheme({ - name: 'classic', - author: 'Galleria', - version: '1.5', - css: 'galleria.classic.css', - defaults: { - transition: 'slide', - thumb_crop: 'height', - - // set this to false if you want to show the caption all the time: - _toggle_info: true - }, - init: function(options) { - - // add some elements - this.addElement('info-link','info-close'); - this.append({ - 'info' : ['info-link','info-close'] - }); - - // cache some stuff - var toggle = this.$('image-nav-left,image-nav-right,counter'), - info = this.$('info-link,info-close,info-text'), - click = Galleria.TOUCH ? 'touchstart' : 'click'; - - // show loader & counter with opacity - this.$('loader,counter').show().css('opacity',.4) - - // some stuff for non-touch browsers - if (! Galleria.TOUCH ) { - - // fade thumbnails - this.$('thumbnails').children().hover(function() { - $(this).not('.active').children().stop().fadeTo(100, 1); - }, function() { - $(this).not('.active').children().stop().fadeTo(400, .6); - }); - - this.addIdleState( this.get('image-nav-left'), { left:-50 }); - this.addIdleState( this.get('image-nav-right'), { right:-50 }); - this.addIdleState( this.get('counter'), { opacity:0 }); - } - - // toggle info - if ( options._toggle_info ) { - info.bind( click, function() { - info.toggle(); - }); - } - - // bind some stuff - this.bind(Galleria.THUMBNAIL, function(e) { - $(e.thumbTarget).parent(':not(.active)').children().css('opacity',.6) - }); - - this.bind(Galleria.LOADSTART, function(e) { - if (!e.cached) { - this.$('loader').show().fadeTo(200, .4); - } - - this.$('info').toggle( this.hasInfo() ); - - $(e.thumbTarget).css('opacity',1).parent().siblings().children().css('opacity',.6); - }); - - this.bind(Galleria.LOADFINISH, function(e) { - this.$('loader').fadeOut(200); - }); - } -}); - -})(jQuery); http://git-wip-us.apache.org/repos/asf/james-project/blob/6170f93f/src/site/resources/js/galleria/themes/fullscreen/b.png ---------------------------------------------------------------------- diff --git a/src/site/resources/js/galleria/themes/fullscreen/b.png b/src/site/resources/js/galleria/themes/fullscreen/b.png deleted file mode 100644 index 42ee9a0..0000000 Binary files a/src/site/resources/js/galleria/themes/fullscreen/b.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/james-project/blob/6170f93f/src/site/resources/js/galleria/themes/fullscreen/down.gif ---------------------------------------------------------------------- diff --git a/src/site/resources/js/galleria/themes/fullscreen/down.gif b/src/site/resources/js/galleria/themes/fullscreen/down.gif deleted file mode 100644 index 006dcc2..0000000 Binary files a/src/site/resources/js/galleria/themes/fullscreen/down.gif and /dev/null differ http://git-wip-us.apache.org/repos/asf/james-project/blob/6170f93f/src/site/resources/js/galleria/themes/fullscreen/fix.gif ---------------------------------------------------------------------- diff --git a/src/site/resources/js/galleria/themes/fullscreen/fix.gif b/src/site/resources/js/galleria/themes/fullscreen/fix.gif deleted file mode 100644 index 35d42e8..0000000 Binary files a/src/site/resources/js/galleria/themes/fullscreen/fix.gif and /dev/null differ http://git-wip-us.apache.org/repos/asf/james-project/blob/6170f93f/src/site/resources/js/galleria/themes/fullscreen/fullscreen-demo.html ---------------------------------------------------------------------- diff --git a/src/site/resources/js/galleria/themes/fullscreen/fullscreen-demo.html b/src/site/resources/js/galleria/themes/fullscreen/fullscreen-demo.html deleted file mode 100644 index 29aa95c..0000000 --- a/src/site/resources/js/galleria/themes/fullscreen/fullscreen-demo.html +++ /dev/null @@ -1,34 +0,0 @@ -<!DOCTYPE html> -<html lang="sv"> - <head> - <title>Galleria Fullscreen Theme Demo 01</title> - <script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> - <script src="../../galleria.js"></script> - <script src="../../plugins/galleria.flickr.js"></script> - <style> - body{background:#000;} - </style> - </head> -<body> - <div id="galleria"> - <img alt="Squirrel! That is all." src="http://upload.wikimedia.org/wikipedia/commons/thumb/0/02/Eichh%C3%B6rnchen_D%C3%BCsseldorf_Hofgarten_edit.jpg/800px-Eichh%C3%B6rnchen_D%C3%BCsseldorf_Hofgarten_edit.jpg"> - <img src="http://upload.wikimedia.org/wikipedia/commons/thumb/f/f8/Sea-otter-morro-bay_13.jpg/800px-Sea-otter-morro-bay_13.jpg"> - <img src="http://upload.wikimedia.org/wikipedia/commons/thumb/7/70/Kuznetsk_Alatau_3.jpg/500px-Kuznetsk_Alatau_3.jpg"> - <img alt="Strawberries, yum yum! Shiny red" src="http://upload.wikimedia.org/wikipedia/commons/thumb/d/de/Basket_of_strawberries_red_accent.jpg/500px-Basket_of_strawberries_red_accent.jpg"> - <img src="http://upload.wikimedia.org/wikipedia/commons/2/2d/Ns1-unsharp.jpg"> - <img src="http://upload.wikimedia.org/wikipedia/commons/thumb/6/67/Laser_effects.jpg/500px-Laser_effects.jpg"> - <img src="http://upload.wikimedia.org/wikipedia/commons/thumb/1/1b/PizBernina3.jpg/500px-PizBernina3.jpg"> - <img src="http://upload.wikimedia.org/wikipedia/commons/thumb/4/47/La_Galera_2.jpg/500px-La_Galera_2.jpg"> - <img src="http://upload.wikimedia.org/wikipedia/commons/thumb/9/92/Costa_rica_santa_elena_skywalk.jpg/500px-Costa_rica_santa_elena_skywalk.jpg"> - <img src="http://upload.wikimedia.org/wikipedia/commons/thumb/b/b2/Smoky_forest.jpg/500px-Smoky_forest.jpg"> - <img src="http://upload.wikimedia.org/wikipedia/commons/thumb/a/a9/Alcea_rosea_and_blue_sky.jpg/500px-Alcea_rosea_and_blue_sky.jpg"> - </div> - <script> - // Load theme - Galleria.loadTheme('galleria.fullscreen.js'); - - $('#galleria').galleria(); - - </script> - </body> -</html> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/james-project/blob/6170f93f/src/site/resources/js/galleria/themes/fullscreen/galleria.fullscreen.css ---------------------------------------------------------------------- diff --git a/src/site/resources/js/galleria/themes/fullscreen/galleria.fullscreen.css b/src/site/resources/js/galleria/themes/fullscreen/galleria.fullscreen.css deleted file mode 100644 index b52f657..0000000 --- a/src/site/resources/js/galleria/themes/fullscreen/galleria.fullscreen.css +++ /dev/null @@ -1,42 +0,0 @@ -html,body{background:#000;} -.galleria-container{height:100%;overflow:hidden;position:fixed;top:0;left:0;width:100%;background:#000;} -.galleria-container img{-moz-user-select:none;-webkit-user-select:none;-o-user-select:none} -.galleria-stage{width:100%;height:100%;position:absolute;} -.galleria-thumbnails-container{position:absolute;bottom:0;z-index:2;padding-top:16px;width:100%;} -.galleria-thumbnails-tab{opacity:.7;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";filter:alpha(opacity=70); - position:absolute;left:50%;margin-left:-50px;top:0;height:16px;width:100px;background:#000 url(up.gif) no-repeat 50% 5px;cursor:pointer; - -moz-border-radius-topleft:4px;-moz-border-radius-topright:4px;-webkit-border-top-right-radius:4px;-webkit-border-top-left-radius:4px} - -.galleria-thumbnails-tab:hover{opacity:1;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";filter:alpha(opacity=100);} -.galleria-thumbnails-tab.open, -.galleria-thumbnails-tab.open:hover{background-image:url(down.gif);opacity:1;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";filter:alpha(opacity=100);} -.galleria-thumbnails{background:#000;overflow:hidden;} -.galleria-thumbnails-list{background:#000;padding-top:5px;padding-bottom:5px;overflow:hidden;} -.galleria-thumbnails .galleria-image{width:80px;height:50px;float:left;cursor:pointer;margin-right:5px;} -.galleria-thumbnails .galleria-image img{background:#000;} -.galleria-thumbnails .active{cursor:default;} -.galleria-carousel .galleria-thumbnails-list{border-left:30px solid #000;border-right:30px solid #000;} -.galleria-image-nav{width:100%;height:100%;position:absolute;top:0;left:0;} -.galleria-image-nav-right, -.galleria-image-nav-left{width:100px;right:0;top:0;height:100%;background: url(r.gif) no-repeat 50% 50%;position:absolute;cursor:pointer;z-index:2;display:none;} -.galleria-image-nav-left{left:0;right:auto;background-image:url(l.gif);} -.galleria-loader{width:30px;height:30px;background:#fff url(loader.gif) no-repeat 50% 50%;position:absolute;top:50%;left:50%;margin-top:-15px;margin-left:-15px;z-index:3;} - -.galleria-info{z-index:4;font:11px/1.4 arial,sans-serif;text-shadow:rgba(0,0,0,.2) 1px 1px 1px;color:#fff;position:absolute;top:0;width:100%; - border-top:2px solid #000;display:none;text-align:center;padding:10px 0;background:rgba(0,0,0,.4);} -.galleria-info-text{width:50%;margin:0 auto;} -.galleria-info-title{font-weight:bold;} - -.galleria-thumb-nav-left, -.galleria-thumb-nav-right{cursor:pointer;display:none;background:url(p.gif) no-repeat 50% 50%;position:absolute;left:5px;top:21px;bottom:5px;width:20px;z-index:3; - opacity:.8;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";filter:alpha(opacity=80);} - -.galleria-thumb-nav-right{background-image:url(n.gif);left:auto;right:5px;} -.galleria-carousel .galleria-thumb-nav-left, -.galleria-carousel .galleria-thumb-nav-right{display:block;} -.galleria-carousel .galleria-thumb-nav-left:hover, -.galleria-carousel .galleria-thumb-nav-right:hover{background-color:#222;} -.galleria-thumb-nav-left.disabled, -.galleria-thumb-nav-right.disabled, -.galleria-thumb-nav-left.disabled:hover, -.galleria-thumb-nav-right.disabled:hover{opacity:.2;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=20)";filter:alpha(opacity=20);cursor:default;} http://git-wip-us.apache.org/repos/asf/james-project/blob/6170f93f/src/site/resources/js/galleria/themes/fullscreen/galleria.fullscreen.js ---------------------------------------------------------------------- diff --git a/src/site/resources/js/galleria/themes/fullscreen/galleria.fullscreen.js b/src/site/resources/js/galleria/themes/fullscreen/galleria.fullscreen.js deleted file mode 100644 index 82550d7..0000000 --- a/src/site/resources/js/galleria/themes/fullscreen/galleria.fullscreen.js +++ /dev/null @@ -1,163 +0,0 @@ -/* - * Galleria Fullscreen Theme v. 2.2 2010-10-28 - * http://galleria.aino.se - * - * Copyright (c) 2010, Aino - * Licensed under the MIT license. - */ - -(function($) { - -Galleria.addTheme({ - name: 'fullscreen', - author: 'Galleria', - version: '2.2', - css: 'galleria.fullscreen.css', - defaults: { - transition: 'none', - image_crop: true, - thumb_crop: 'height', - // set this to false if you want to keep the thumbnails: - _hide_dock: true, - // set this to true if you want to shrink the carousel when clicking a thumbnail: - _close_on_click: false - }, - init: function(options) { - - this.addElement('thumbnails-tab'); - this.appendChild('thumbnails-container', 'thumbnails-tab'); - - var tab = this.$('thumbnails-tab'), - loader = this.$('loader'), - thumbs = this.$('thumbnails-container'), - list = this.$('thumbnails-list'), - infotext = this.$('info-text'), - info = this.$('info'), - OPEN = !options._hide_dock, - POS = 0, - CLICK = Galleria.TOUCH ? 'touchstart' : 'click'; - - if (Galleria.IE) { - this.addElement('iefix'); - this.appendChild('container', 'iefix'); - this.$('iefix').css({ - zIndex: 3, - position: 'absolute', - backgroundColor: '#000', - opacity: .4 - }); - } - - if ( options.thumbnails === false ) { - thumbs.hide(); - } - - var fixCaption = this.proxy(function(img) { - - if (!(img || img.width)) { - return; - } - var w = Math.min(img.width, $(window).width()); - infotext.width(w - 40); - if (Galleria.IE && this.getOptions('show_info')) { - this.$('iefix').width(info.outerWidth()).height(info.outerHeight()); - } - }); - this.bind(Galleria.RESCALE, function() { - POS = this.getStageHeight() - tab.height() - 2; - thumbs.css('top', OPEN ? POS - list.outerHeight() + 2 : POS); - var img = this.getActiveImage(); - if (img) { - fixCaption(img); - } - }); - - this.bind(Galleria.LOADSTART, function(e) { - if (!e.cached) { - loader.show().fadeTo(100, 1); - } - $(e.thumbTarget).css('opacity', 1).parent().siblings().children().css('opacity', .6); - }); - - this.bind(Galleria.LOADFINISH, function(e) { - loader.fadeOut(300); - this.$('info, iefix').toggle(this.hasInfo()); - }); - - this.bind(Galleria.IMAGE, function(e) { - fixCaption(e.imageTarget); - }); - - this.bind(Galleria.THUMBNAIL, function(e) { - $(e.thumbTarget).parent(':not(.active)').children().css('opacity', .6); - $(e.thumbTarget).click(function() { - if (OPEN && options._close_on_click) { - tab.click(); - } - }); - }); - - this.trigger(Galleria.RESCALE); - - this.addIdleState(thumbs, { opacity: 0 }); - this.addIdleState(this.get('info'), { opacity: 0 }); - - if (Galleria.IE) { - this.addIdleState(this.get('iefix'), { opacity: 0 }); - } - - this.$('image-nav-left, image-nav-right').css('opacity', 0.01).hover(function() { - $(this).animate({opacity: 1}, 100); - }, function() { - $(this).animate({opacity: 0}); - }).show(); - - if (options._hide_dock) { - tab.click(this.proxy(function() { - tab.toggleClass('open', !OPEN); - if (!OPEN) { - thumbs.animate({ - top: POS - list.outerHeight() + 2 - }, 400, 'galleria'); - } else { - thumbs.animate({ - top: POS - }, 400, 'galleria'); - } - OPEN = !OPEN; - })); - } else { - this.bind(Galleria.THUMBNAIL, function() { - thumbs.css('top', POS - list.outerHeight() + 2); - }); - tab.css('visibility', 'hidden'); - } - - this.$('thumbnails').children().hover(function() { - $(this).not('.active').children().stop().fadeTo(100, 1); - }, function() { - $(this).not('.active').children().stop().fadeTo(400, .6); - }); - - this.enterFullscreen(); - this.attachKeyboard({ - escape: function(e) { - return false; - }, - up: function(e) { - if (!OPEN) { - tab.click(); - } - e.preventDefault(); - }, - down: function(e) { - if (OPEN) { - tab.click(); - } - e.preventDefault(); - } - }); - } -}); - -})(jQuery); \ No newline at end of file http://git-wip-us.apache.org/repos/asf/james-project/blob/6170f93f/src/site/resources/js/galleria/themes/fullscreen/i.png ---------------------------------------------------------------------- diff --git a/src/site/resources/js/galleria/themes/fullscreen/i.png b/src/site/resources/js/galleria/themes/fullscreen/i.png deleted file mode 100644 index 2e61d85..0000000 Binary files a/src/site/resources/js/galleria/themes/fullscreen/i.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/james-project/blob/6170f93f/src/site/resources/js/galleria/themes/fullscreen/l.gif ---------------------------------------------------------------------- diff --git a/src/site/resources/js/galleria/themes/fullscreen/l.gif b/src/site/resources/js/galleria/themes/fullscreen/l.gif deleted file mode 100644 index 36b43fa..0000000 Binary files a/src/site/resources/js/galleria/themes/fullscreen/l.gif and /dev/null differ http://git-wip-us.apache.org/repos/asf/james-project/blob/6170f93f/src/site/resources/js/galleria/themes/fullscreen/loader.gif ---------------------------------------------------------------------- diff --git a/src/site/resources/js/galleria/themes/fullscreen/loader.gif b/src/site/resources/js/galleria/themes/fullscreen/loader.gif deleted file mode 100644 index e005708..0000000 Binary files a/src/site/resources/js/galleria/themes/fullscreen/loader.gif and /dev/null differ http://git-wip-us.apache.org/repos/asf/james-project/blob/6170f93f/src/site/resources/js/galleria/themes/fullscreen/n.gif ---------------------------------------------------------------------- diff --git a/src/site/resources/js/galleria/themes/fullscreen/n.gif b/src/site/resources/js/galleria/themes/fullscreen/n.gif deleted file mode 100644 index df1d4ed..0000000 Binary files a/src/site/resources/js/galleria/themes/fullscreen/n.gif and /dev/null differ http://git-wip-us.apache.org/repos/asf/james-project/blob/6170f93f/src/site/resources/js/galleria/themes/fullscreen/p.gif ---------------------------------------------------------------------- diff --git a/src/site/resources/js/galleria/themes/fullscreen/p.gif b/src/site/resources/js/galleria/themes/fullscreen/p.gif deleted file mode 100644 index 9626e4e..0000000 Binary files a/src/site/resources/js/galleria/themes/fullscreen/p.gif and /dev/null differ http://git-wip-us.apache.org/repos/asf/james-project/blob/6170f93f/src/site/resources/js/galleria/themes/fullscreen/r.gif ---------------------------------------------------------------------- diff --git a/src/site/resources/js/galleria/themes/fullscreen/r.gif b/src/site/resources/js/galleria/themes/fullscreen/r.gif deleted file mode 100644 index 2d6a6ea..0000000 Binary files a/src/site/resources/js/galleria/themes/fullscreen/r.gif and /dev/null differ http://git-wip-us.apache.org/repos/asf/james-project/blob/6170f93f/src/site/resources/js/galleria/themes/fullscreen/up.gif ---------------------------------------------------------------------- diff --git a/src/site/resources/js/galleria/themes/fullscreen/up.gif b/src/site/resources/js/galleria/themes/fullscreen/up.gif deleted file mode 100644 index fc00d14..0000000 Binary files a/src/site/resources/js/galleria/themes/fullscreen/up.gif and /dev/null differ --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org