Merge pull request #417 from saimn/update-galleria

Update galleria to v1.6.1 and add new themes
This commit is contained in:
Simon Conseil
2020-12-17 23:52:44 -03:00
committed by GitHub
38 changed files with 3098 additions and 164 deletions

View File

@@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9, pypy3]
python-version: [3.6, 3.7, 3.8, 3.9]
steps:
- uses: actions/checkout@v2

View File

@@ -12,6 +12,8 @@ Released on 2020-xx-xx.
- Avoid crash when thumbnail cannot be generated [:issue:`401`].
- Replace deprecated usage of `imp`.
- Fix video thumbnail creation when delay > video length [:issue:`411`].
- Update photoswipe to 4.4.0 [:issue:`415`].
- Update galleria to v1.6.1 and add new themes [:issue:`417`].
Version 2.1.1
~~~~~~~~~~~~~

View File

@@ -34,6 +34,7 @@ _DEFAULT_CONFIG = {
'datetime_format': '%c',
'destination': '_build',
'files_to_copy': (),
'galleria_theme': 'classic',
'google_analytics': '',
'google_tag_manager': '',
'ignore_directories': [],

View File

@@ -24,6 +24,9 @@ source = 'pictures'
# directory
theme = 'galleria'
# Theme for galleria (https://galleriajs.github.io/themes/)
# galleria_theme = 'classic'
# Author. Used in the footer of the pages and in the author meta tag.
# author = ''

View File

@@ -1,14 +1,30 @@
/**
* Galleria v1.5.7 2017-05-10
* http://galleria.io
* Galleria v1.6.1
*
* Copyright (c) 2010 - 2016 worse is better UG
* Copyright (c) 2010 - 2019 worse is better UG
* Licensed under the MIT license
* https://raw.github.com/worseisbetter/galleria/master/LICENSE
*
*/
(function( $, window, Galleria, undef ) {
( function( window, factory ) {
if ( typeof define == 'function' && define.amd ) {
define( [ 'jquery' ], function( jQuery ) {
return factory( window, jQuery );
});
} else if ( typeof module == 'object' && module.exports ) {
module.exports = factory(
window,
require('jquery')
);
} else {
// browser global
window.Galleria = factory(
window,
window.jQuery
);
}
}( window, function factory( window, $, Galleria, undef ) {
/*global jQuery, navigator, Image, module, define */
@@ -16,12 +32,13 @@
var doc = window.document,
$doc = $( doc ),
$win = $( window ),
jQuery = $,
// native prototypes
protoArray = Array.prototype,
// internal constants
VERSION = 1.57,
VERSION = 1.61,
DEBUG = true,
TIMEOUT = 30000,
DUMMY = false,
@@ -128,7 +145,7 @@ var doc = window.document,
return PROT + '//img.youtube.com/vi/'+this.id+'/default.jpg';
},
get_image: function( data ) {
return PROT + '//img.youtube.com/vi/'+this.id+'/hqdefault.jpg'; }
return PROT + '//img.youtube.com/vi/'+this.id+'/maxresdefault.jpg'; }
},
vimeo: {
reg: /https?:\/\/(?:www\.)?(vimeo\.com)\/(?:hd#)?([0-9]+)/i,
@@ -885,7 +902,7 @@ var doc = window.document,
// If failed, tell the dev to download the latest theme
Galleria.raise( 'Theme CSS could not load after 20 sec. ' + ( Galleria.QUIRK ?
'Your browser is in Quirks Mode, please add a correct doctype.' :
'Please download the latest theme at http://galleria.io/customer/.' ), true );
'Please download the latest theme.' ), true );
},
timeout: 5000
});
@@ -1866,8 +1883,14 @@ Galleria = function() {
var image = self._controls.getActive().image;
if ( image ) {
$( image ).width( big.image.width ).height( big.image.height )
.attr( 'style', $( big.image ).attr('style') )
.attr( 'src', big.image.src );
.attr( 'style', $( big.image ).attr('style') );
if (big.image.src.srcset) {
$( image ).attr( 'srcset', big.image.src.srcset );
}
if (big.image.src.sizes) {
$( image ).attr( 'sizes', big.image.src.sizes );
}
$( image ).attr( 'src', big.image.src );
}
}
});
@@ -3873,22 +3896,37 @@ Galleria.prototype = {
} else if( href && elem.hasClass('iframe') ) {
data.iframe = href;
} else {
data.image = data.big = href;
data.image = href;
}
if ( rel ) {
data.big = rel;
}
// alternative extraction from HTML5 data attribute, added in 1.2.7
$.each( 'big title description link layer image'.split(' '), function( i, val ) {
data.imagesrcset = parent.data( 'srcset' );
data.imagesizes = parent.data( 'sizes' );
data.thumbsizes = elem.attr( 'sizes' );
data.thumbsrcset = elem.attr( 'srcset' );
// alternative extraction from HTML5 data attribute
$.each( 'big bigsrcset bigsizes title description link layer image imagesrcset imagesizes'.split(' '), function( i, val ) {
if ( elem.data(val) ) {
data[ val ] = elem.data(val).toString();
}
});
if (elem.data('srcset')) {
data.imagesrcset = elem.data('srcset');
}
if (elem.data('sizes')) {
data.imagesizes = elem.data('sizes');
}
if ( !data.big ) {
data.big = data.image;
data.bigsrcset = data.imagesrcset;
data.bigsizes = data.imagesizes;
}
// mix default extractions with the hrefs and config
@@ -3950,6 +3988,15 @@ Galleria.prototype = {
current = self._data[ i ];
// q&d hack to attach srcset & sizes to src
$.each( 'big image thumb'.split(' '), function( i, val ) {
if ( data[ val] ) {
data[val] = new String(data[val]);
data[val].srcset = data [val + 'srcset'];
data[val].sizes = data [val + 'sizes'];
}
});
// copy image as thumb if no thumb exists
if ( 'thumb' in data === false ) {
current.thumb = data.image;
@@ -4029,6 +4076,7 @@ Galleria.prototype = {
this.clearTimer();
Utils.removeFromArray( _instances, this );
Utils.removeFromArray( _galleries, this );
_video._inst = [];
if ( Galleria._waiters !== undefined && Galleria._waiters.length ) {
$.each( Galleria._waiters, function( i, w ) {
if ( w ) window.clearTimeout( w );
@@ -6168,11 +6216,22 @@ Galleria.Picture.prototype = {
*/
preload: function( src ) {
$( new Image() ).on( 'load', (function(src, cache) {
var $image = $( new Image() ).on( 'load', (function(src, cache) {
return function() {
cache[ src ] = src;
};
}( src, this.cache ))).attr( 'src', src );
}( src, this.cache )));
// due to a bug in safari, need to set srcset first
if (src.srcset) {
$image.attr( 'srcset', src.srcset );
}
if (src.sizes) {
$image.attr( 'sizes', src.sizes );
}
$image.attr( 'src', src );
},
/**
@@ -6340,7 +6399,14 @@ Galleria.Picture.prototype = {
});
// begin load and insert in cache when done
$image.on( 'load', onload ).on( 'error', onerror ).attr( 'src', src );
$image.on( 'load', onload ).on( 'error', onerror );
if (src.srcset) {
$image.attr( 'srcset', src.srcset );
}
if (src.sizes) {
$image.attr( 'sizes', src.sizes );
}
$image.attr( 'src', src );
// return the container
return this.container;
@@ -6915,16 +6981,7 @@ $.fn.galleria = function( options ) {
};
// export as AMD or CommonJS
if ( typeof module === "object" && module && typeof module.exports === "object" ) {
module.exports = Galleria;
} else {
window.Galleria = Galleria;
if ( typeof define === "function" && define.amd ) {
define( "galleria", ['jquery'], function() { return Galleria; } );
}
}
// phew
return Galleria;
}( jQuery, this ) );
}));

File diff suppressed because one or more lines are too long

View File

@@ -1,14 +1,30 @@
/**
* Galleria History Plugin 2016-09-03
* http://galleria.io
* Galleria History Plugin
*
* Copyright (c) 2010 - 2017 worse is better UG
* Licensed under the MIT license
* https://raw.github.com/worseisbetter/galleria/master/LICENSE
*
* Copyright (c) 2010 - 2019 worse is better UG
* Licensed under the MIT License.
*/
(function( $, window ) {
( function( window, factory ) {
if ( typeof define == 'function' && define.amd ) {
define( ['../galleria', 'jquery' ], function( Galleria, jQuery ) {
return factory( window, Galleria, jQuery );
});
} else if ( typeof module == 'object' && module.exports ) {
module.exports = factory(
window,
require('galleria'),
require('jquery')
);
} else {
factory(
window,
window.Galleria,
window.jQuery
);
}
}( window, function factory( window, Galleria, $ ) {
/*global jQuery, Galleria, window */
@@ -143,5 +159,6 @@ Galleria.History = (function() {
};
}());
}( jQuery, this ));
return Galleria;
}));

View File

@@ -1,11 +1,10 @@
/**
* Galleria - v1.5.7 2017-05-10
* https://galleria.io
* Galleria - v1.6.1 2019-10-17
*
*
* Copyright (c) 2010 - 2017 worse is better UG
* Copyright (c) 2010 - 2019 worse is better UG
* Licensed under the MIT License.
* https://raw.github.com/worseisbetter/galleria/master/LICENSE
*
*/
!function(a,b){Galleria.requires(1.25,"The History Plugin requires Galleria version 1.2.5 or later."),Galleria.History=function(){var c,d=[],e=!1,f=b.location,g=b.document,h=Galleria.IE,i="onhashchange"in b&&(void 0===g.mode||g.mode>7),j=function(a){return a=c&&!i&&Galleria.IE?a||c.location:f,parseInt(a.hash.substr(2),10)},k=j(f),l=[],m=function(){a.each(l,function(a,c){c.call(b,j())})},n=function(){a.each(d,function(a,b){b()}),e=!0},o=function(a){return"/"+a};return i&&h<8&&(i=!1),i?n():a(function(){b.setInterval(function(){var a=j();isNaN(a)||a==k||(k=a,f.hash=o(a),m())},50);h?a('<iframe tabindex="-1" title="empty">').hide().attr("src","about:blank").one("load",function(){c=this.contentWindow,n()}).insertAfter(g.body):n()}),{change:function(a){l.push(a),i&&(b.onhashchange=m)},set:function(a){isNaN(a)||(!i&&h&&this.ready(function(){var b=c.document;b.open(),b.close(),c.location.hash=o(a)}),f.hash=o(a))},ready:function(a){e?a():d.push(a)}}}()}(jQuery,this);
!function(a,b){"function"==typeof define&&define.amd?define(["../galleria","jquery"],function(c,d){return b(a,c,d)}):"object"==typeof module&&module.exports?module.exports=b(a,require("galleria"),require("jquery")):b(a,a.Galleria,a.jQuery)}(window,function(a,b,c){return b.requires(1.25,"The History Plugin requires Galleria version 1.2.5 or later."),b.History=function(){var d,e=[],f=!1,g=a.location,h=a.document,i=b.IE,j="onhashchange"in a&&(void 0===h.mode||h.mode>7),k=function(a){return a=d&&!j&&b.IE?a||d.location:g,parseInt(a.hash.substr(2),10)},l=k(g),m=[],n=function(){c.each(m,function(b,c){c.call(a,k())})},o=function(){c.each(e,function(a,b){b()}),f=!0},p=function(a){return"/"+a};return j&&i<8&&(j=!1),j?o():c(function(){a.setInterval(function(){var a=k();isNaN(a)||a==l||(l=a,g.hash=p(a),n())},50);i?c('<iframe tabindex="-1" title="empty">').hide().attr("src","about:blank").one("load",function(){d=this.contentWindow,o()}).insertAfter(h.body):o()}),{change:function(b){m.push(b),j&&(a.onhashchange=n)},set:function(a){isNaN(a)||(!j&&i&&this.ready(function(){var b=d.document;b.open(),b.close(),d.location.hash=p(a)}),g.hash=p(a))},ready:function(a){f?a():e.push(a)}}}(),b});

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,312 @@
/**
* Galleria Azur Theme
*
*
* Copyright (c) 2010 - 2019 worse is better UG
* Licensed under the MIT License.
*/
( function( window, factory ) {
if ( typeof define == 'function' && define.amd ) {
define( ['../galleria', 'jquery' ], function( Galleria, jQuery ) {
return factory( window, Galleria, jQuery );
});
} else if ( typeof module == 'object' && module.exports ) {
module.exports = factory(
window,
require('galleria'),
require('jquery')
);
} else {
factory(
window,
window.Galleria,
window.jQuery
);
}
}( window, function factory( window, Galleria, $ ) {
/*global jQuery, Galleria, window */
Galleria.addTheme({
name: 'azur',
version: 1.60,
author: 'Galleria',
css: 'galleria.azur.css',
// begin site script
defaults: {
transition: 'fade',
transitionSpeed: 500,
imageCrop: true,
thumbCrop: 'height',
idleMode: 'hover',
idleSpeed: 500,
fullscreenTransition: false,
_locale: {
show_captions: 'Show captions',
hide_captions: 'Hide captions',
play: 'Play slideshow',
pause: 'Pause slideshow',
enter_fullscreen: 'Enter fullscreen',
exit_fullscreen: 'Exit fullscreen',
next: 'Next image',
prev: 'Previous image',
showing_image: 'Showing image %s of %s'
},
_toggleCaption: true,
_showCaption: true,
_showTooltip: true
},
init: function(options) {
Galleria.requires( 1.6, 'This version of Azur theme requires Galleria version 1.6 or later');
// add some elements
this.addElement('bar','fullscreen','play','progress').append({
'stage' : 'progress',
'container': 'bar',
'bar' : ['fullscreen','play','thumbnails-container']
}).prependChild( 'stage', 'info' ).appendChild( 'container', 'tooltip' );
// copy the scope
var gallery = this,
document = window.document,
lang = options._locale,
canvSupport = ( 'getContext' in document.createElement('canvas') );
// progress animation
(function() {
if ( !canvSupport ) {
gallery.addElement( 'progressbar' ).appendChild( 'progress', 'progressbar' );
gallery.$( 'progress' ).addClass('nocanvas');
var w = gallery.$( 'progress' ).width();
gallery.bind( 'progress', function(e) {
gallery.$( 'progressbar' ).width( e.percent/100 * w );
});
return;
}
var dim = 24,
canvas = document.createElement('canvas'),
ctx = canvas.getContext('2d'),
radius = function( degrees ) {
return degrees * ( Math.PI/180 );
},
arc = function( degrees, color ) {
ctx.strokeStyle = color || '#000';
ctx.lineWidth = 3;
ctx.clearRect( 0, 0, dim, dim );
ctx.beginPath();
ctx.arc( dim/2, dim/2, dim/2-2, radius(-90), radius(degrees-90), false );
ctx.stroke();
ctx.closePath();
};
canvas.width = dim;
canvas.height = dim;
$( canvas ).css({
zIndex: 10000,
position: 'absolute',
right:10,
top:10
}).appendTo( gallery.get('container') );
gallery.bind( 'progress', function(e) {
$( canvas ).fadeIn(200);
arc( e.percent*3.6, 'rgba(255,255,255,.7)' );
});
gallery.bind( 'pause', function() {
$( canvas ).fadeOut( 200, function() {
ctx.clearRect( 0, 0, dim, dim );
});
});
}());
// loader
(function() {
var requestFrame = (function(){
var r = 'RequestAnimationFrame';
return window.requestAnimationFrame ||
window['webkit'+r] ||
window['moz'+r] ||
window['o'+r] ||
window['ms'+r] ||
function( callback ) {
window.setTimeout(callback, 1000 / 60);
};
}());
if ( !canvSupport ) {
gallery.$( 'loader' ).addClass( 'nocanvas' );
return;
}
var elem = document.createElement('canvas'),
ctx = elem.getContext('2d'),
M = Math,
_restore = function( ctx, size, back ) {
var n = back ? -2 : 2;
ctx.translate( size/n, size/n );
},
step = 28;
$(elem).hide().appendTo( gallery.get('loader') ).fadeIn(500);
var draw = function( ctx, st ) {
var size = 48,
lines = 28,
l;
ctx.clearRect(0, 0, size, size);
ctx.lineWidth = 1.5;
for (var i=0; i < lines; i++) {
l = i+st >= lines ? i-lines+st : i+st;
ctx.strokeStyle = 'rgba(255,255,255,' + M.max(0, l/lines ) + ')';
ctx.lineWidth = 1;
ctx.beginPath();
ctx.moveTo( size/2, size/2-16 );
ctx.lineTo( size/2, 0 );
ctx.stroke();
_restore( ctx, size, false );
ctx.rotate( ( 360/lines ) * M.PI/180 );
_restore( ctx, size, true );
}
ctx.save();
_restore( ctx, size, false );
ctx.rotate( -1 * ( 360/lines/8 ) * M.PI/180 );
_restore( ctx, size, true );
};
(function loop() {
requestFrame(loop);
draw(ctx, step);
step = step === 0 ? 28 : step-1;
}())
}());
var infoState = Galleria.IE < 9 ? { bottom: -100 } : { bottom: -50, opacity: 0 },
counterState = Galleria.IE < 9 ? { top: -20 } : { opacity: 0, top: -20 };
this.bind( 'play', function() {
this.$( 'play' ).addClass( 'pause' );
if ( !canvSupport ) {
this.$( 'progress' ).show();
}
}).bind( 'pause', function() {
this.$( 'play' ).removeClass( 'pause' );
if ( !canvSupport ) {
this.$( 'progress' ).hide();
}
}).bind( 'loadstart', function(e) {
if ( !e.cached ) {
this.$( 'loader' ).show();
}
}).bind( 'loadfinish', function(e) {
if ( canvSupport ) {
this.$( 'loader' ).fadeOut(100);
} else {
this.$( 'loader' ).hide();
}
});
this.addIdleState( this.get('info'), infoState, Galleria.IE < 9 ? {} : { opacity: 1 }, true)
.addIdleState( this.get('image-nav-left'), { opacity: 0, left: 0 }, { opacity: 1 }, true)
.addIdleState( this.get('image-nav-right'), { opacity: 0, right: 0 }, { opacity: 1 }, true)
.addIdleState( this.get('counter'), counterState, Galleria.IE < 9 ? {} : { opacity: 0.9 }, true);
this.$( 'fullscreen' ).on('click:fast', function(e) {
e.preventDefault();
gallery.toggleFullscreen();
});
this.$( 'play' ).on('click:fast', function(e) {
e.preventDefault();
gallery.playToggle();
});
if ( options._toggleCaption ) {
this.$( 'info' ).addClass( 'toggler' );
this.addElement( 'captionopen' ).appendChild( 'stage', 'captionopen' );
this.addElement( 'captionclose' ).appendChild( 'info', 'captionclose' );
this.$( 'captionopen' ).on('click:fast', function() {
gallery.$( 'info' ).addClass( 'open' );
$(this).hide();
}).html( lang.show_captions );
this.bind( 'loadstart', function() {
this.$( 'captionopen' ).toggle( !gallery.$( 'info' ).hasClass( 'open' ) && this.hasInfo() );
});
this.$( 'captionclose' ).on('click:fast', function() {
gallery.$( 'info' ).removeClass( 'open' );
if ( gallery.hasInfo() ) {
gallery.$( 'captionopen' ).show();
}
}).html('&#215;');
if ( options._showCaption ) {
this.$( 'captionopen' ).trigger('click:fast');
}
}
if ( options._showTooltip ) {
this.bindTooltip({
'fullscreen': function() {
return gallery.isFullscreen() ? lang.exit_fullscreen : lang.enter_fullscreen;
},
'play': function() {
return gallery.isPlaying() ? lang.pause : lang.play;
},
'captionclose': lang.hide_captions,
'image-nav-right': lang.next,
'image-nav-left': lang.prev,
'counter': function() {
return lang.showing_image.replace( /\%s/, gallery.getIndex() + 1 ).replace( /\%s/, gallery.getDataLength() );
}
});
}
}
// end site script
});
return Galleria;
}));

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,10 @@
/**
* Galleria - v1.6.1 2019-10-17
*
*
* Copyright (c) 2010 - 2019 worse is better UG
* Licensed under the MIT License.
*/
!function(a,b){"function"==typeof define&&define.amd?define(["../galleria","jquery"],function(c,d){return b(a,c,d)}):"object"==typeof module&&module.exports?module.exports=b(a,require("galleria"),require("jquery")):b(a,a.Galleria,a.jQuery)}(window,function(a,b,c){return b.addTheme({name:"azur",version:1.6,author:"Galleria",css:"galleria.azur.css",defaults:{transition:"fade",transitionSpeed:500,imageCrop:!0,thumbCrop:"height",idleMode:"hover",idleSpeed:500,fullscreenTransition:!1,_locale:{show_captions:"Show captions",hide_captions:"Hide captions",play:"Play slideshow",pause:"Pause slideshow",enter_fullscreen:"Enter fullscreen",exit_fullscreen:"Exit fullscreen",next:"Next image",prev:"Previous image",showing_image:"Showing image %s of %s"},_toggleCaption:!0,_showCaption:!0,_showTooltip:!0},init:function(d){b.requires(1.6,"This version of Azur theme requires Galleria version 1.6 or later"),this.addElement("bar","fullscreen","play","progress").append({stage:"progress",container:"bar",bar:["fullscreen","play","thumbnails-container"]}).prependChild("stage","info").appendChild("container","tooltip");var e=this,f=a.document,g=d._locale,h="getContext"in f.createElement("canvas");!function(){if(!h){e.addElement("progressbar").appendChild("progress","progressbar"),e.$("progress").addClass("nocanvas");var a=e.$("progress").width();return void e.bind("progress",function(b){e.$("progressbar").width(b.percent/100*a)})}var b=f.createElement("canvas"),d=b.getContext("2d"),g=function(a){return a*(Math.PI/180)},i=function(a,b){d.strokeStyle=b||"#000",d.lineWidth=3,d.clearRect(0,0,24,24),d.beginPath(),d.arc(12,12,10,g(-90),g(a-90),!1),d.stroke(),d.closePath()};b.width=24,b.height=24,c(b).css({zIndex:1e4,position:"absolute",right:10,top:10}).appendTo(e.get("container")),e.bind("progress",function(a){c(b).fadeIn(200),i(3.6*a.percent,"rgba(255,255,255,.7)")}),e.bind("pause",function(){c(b).fadeOut(200,function(){d.clearRect(0,0,24,24)})})}(),function(){var b=function(){var b="RequestAnimationFrame";return a.requestAnimationFrame||a["webkit"+b]||a["moz"+b]||a["o"+b]||a["ms"+b]||function(b){a.setTimeout(b,1e3/60)}}();if(!h)return void e.$("loader").addClass("nocanvas");var d=f.createElement("canvas"),g=d.getContext("2d"),i=Math,j=function(a,b,c){var d=c?-2:2;a.translate(b/d,b/d)},k=28;c(d).hide().appendTo(e.get("loader")).fadeIn(500);var l=function(a,b){var c;a.clearRect(0,0,48,48),a.lineWidth=1.5;for(var d=0;d<28;d++)c=d+b>=28?d-28+b:d+b,a.strokeStyle="rgba(255,255,255,"+i.max(0,c/28)+")",a.lineWidth=1,a.beginPath(),a.moveTo(24,8),a.lineTo(24,0),a.stroke(),j(a,48,!1),a.rotate(360/28*i.PI/180),j(a,48,!0);a.save(),j(a,48,!1),a.rotate(360/28/8*-1*i.PI/180),j(a,48,!0)};!function a(){b(a),l(g,k),k=0===k?28:k-1}()}();var i=b.IE<9?{bottom:-100}:{bottom:-50,opacity:0},j=b.IE<9?{top:-20}:{opacity:0,top:-20};this.bind("play",function(){this.$("play").addClass("pause"),h||this.$("progress").show()}).bind("pause",function(){this.$("play").removeClass("pause"),h||this.$("progress").hide()}).bind("loadstart",function(a){a.cached||this.$("loader").show()}).bind("loadfinish",function(a){h?this.$("loader").fadeOut(100):this.$("loader").hide()}),this.addIdleState(this.get("info"),i,b.IE<9?{}:{opacity:1},!0).addIdleState(this.get("image-nav-left"),{opacity:0,left:0},{opacity:1},!0).addIdleState(this.get("image-nav-right"),{opacity:0,right:0},{opacity:1},!0).addIdleState(this.get("counter"),j,b.IE<9?{}:{opacity:.9},!0),this.$("fullscreen").on("click:fast",function(a){a.preventDefault(),e.toggleFullscreen()}),this.$("play").on("click:fast",function(a){a.preventDefault(),e.playToggle()}),d._toggleCaption&&(this.$("info").addClass("toggler"),this.addElement("captionopen").appendChild("stage","captionopen"),this.addElement("captionclose").appendChild("info","captionclose"),this.$("captionopen").on("click:fast",function(){e.$("info").addClass("open"),c(this).hide()}).html(g.show_captions),this.bind("loadstart",function(){this.$("captionopen").toggle(!e.$("info").hasClass("open")&&this.hasInfo())}),this.$("captionclose").on("click:fast",function(){e.$("info").removeClass("open"),e.hasInfo()&&e.$("captionopen").show()}).html("&#215;"),d._showCaption&&this.$("captionopen").trigger("click:fast")),d._showTooltip&&this.bindTooltip({fullscreen:function(){return e.isFullscreen()?g.exit_fullscreen:g.enter_fullscreen},play:function(){return e.isPlaying()?g.pause:g.play},captionclose:g.hide_captions,"image-nav-right":g.next,"image-nav-left":g.prev,counter:function(){return g.showing_image.replace(/\%s/,e.getIndex()+1).replace(/\%s/,e.getDataLength())}})}}),b});

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

View File

@@ -1,13 +1,3 @@
/**
* Galleria Classic Theme 2017-02-13
* http://galleria.io
*
* Copyright (c) 2010 - 2017 worse is better UG
* Licensed under the MIT license
* https://raw.github.com/worseisbetter/galleria/master/LICENSE
*
*/
#galleria-loader{height:1px!important}
.galleria-theme-classic {
@@ -67,7 +57,7 @@
right: 10px;
z-index: 2;
display: none;
background: url(classic-loader.gif) no-repeat 2px 2px;
background: url('data:image/gif;base64,R0lGODlhEAAQAPQAAAAAAP///w4ODnR0dB4eHri4uISEhP///6amptra2lJSUkBAQOrq6mJiYvr6+sjIyJaWlgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH+GkNyZWF0ZWQgd2l0aCBhamF4bG9hZC5pbmZvACH5BAAKAAAAIf8LTkVUU0NBUEUyLjADAQAAACwAAAAAEAAQAAAFdyAgAgIJIeWoAkRCCMdBkKtIHIngyMKsErPBYbADpkSCwhDmQCBethRB6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AAAAA==') no-repeat 2px 2px;
}
.galleria-theme-classic .galleria-info {
width: 50%;
@@ -220,7 +210,7 @@
.galleria-theme-classic .galleria-info-close,
.galleria-theme-classic .galleria-image-nav-left,
.galleria-theme-classic .galleria-image-nav-right {
background-image: url(classic-map.png);
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA/gAAAAfCAYAAABTcmYwAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MTA3ODRCNjVENUY3MTFERjg4NUNGOTRFNUE1NDEyNzgiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MTA3ODRCNjZENUY3MTFERjg4NUNGOTRFNUE1NDEyNzg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/wAPGEkQINMlGvbTLnWQdsoo+a5EuRCny/WO1z+/Y6RLNh45Eal3K9JxTF9r6ZBiwv+rciBVBzjOZ3cWgo0w+VyTfternG3jASlFHOstf7x/GdGseBy33/n/nYqdu7dPwMK/k+PUvFbUyUfaFq5P1yucaCcYn711a38nMvpOSOZV75FPx/Lz6fU8m35x1NxLL9bKfnXjAnaW/CVfEC5ByUVc/tfvlZ+zu/h3zWSeeVb9E9Frqfitvz+hXr9b5LJpyDOGBO08EOr1/vj/pj95aK6KnLF4gAo9wCMwOYyk0YBsHwFX8kHlHsAAFhhOnP8u+P6gHIPAAANKPhKPqDcAwBAQwq+kg8o9wAA0JCCr+QDyj0AADSk4Cv5gHIPAAANKfhKPqDcAwBAjc31NXnzqX6F3sHIA2MERuRA5L5yDwAAy1Pw+yV/PHLRCIERm4i8UO4BAGB5Cj4AAABQIz8EGAC+MAY7hAP2pgAAAABJRU5ErkJggg==');
background-repeat: no-repeat;
}
.galleria-theme-classic.galleria-container.videoplay .galleria-info,

View File

@@ -1,102 +1,117 @@
/**
* Galleria Classic Theme 2017-02-13
* http://galleria.io
* Galleria Classic Theme
*
* Copyright (c) 2010 - 2017 worse is better UG
* Licensed under the MIT license
* https://raw.github.com/worseisbetter/galleria/master/LICENSE
*
* Copyright (c) 2010 - 2019 worse is better UG
* Licensed under the MIT License.
*/
(function($) {
/*global window, jQuery, Galleria */
Galleria.addTheme({
name: 'classic',
version: 1.5,
author: 'Galleria',
css: 'galleria.classic.css',
defaults: {
transition: 'slide',
thumbCrop: 'height',
// set this to false if you want to show the caption all the time:
_toggleInfo: true
},
init: function(options) {
Galleria.requires(1.4, 'This version of Classic theme requires Galleria 1.4 or later');
// add some elements
this.addElement('info-link','info-close');
this.append({
'info' : ['info-link','info-close']
});
// cache some stuff
var info = this.$('info-link,info-close,info-text'),
touch = Galleria.TOUCH;
// show loader & counter with opacity
this.$('loader,counter').show().css('opacity', 0.4);
// some stuff for non-touch browsers
if (! touch ) {
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._toggleInfo === true ) {
info.bind( 'click:fast', function() {
info.toggle();
});
} else {
info.show();
this.$('info-link, info-close').hide();
}
// bind some stuff
this.bind('thumbnail', function(e) {
if (! touch ) {
// fade thumbnails
$(e.thumbTarget).css('opacity', 0.6).parent().hover(function() {
$(this).not('.active').children().stop().fadeTo(100, 1);
}, function() {
$(this).not('.active').children().stop().fadeTo(400, 0.6);
});
if ( e.index === this.getIndex() ) {
$(e.thumbTarget).css('opacity',1);
}
} else {
$(e.thumbTarget).css('opacity', this.getIndex() ? 1 : 0.6).bind('click:fast', function() {
$(this).css( 'opacity', 1 ).parent().siblings().children().css('opacity', 0.6);
});
}
});
var activate = function(e) {
$(e.thumbTarget).css('opacity',1).parent().siblings().children().css('opacity', 0.6);
};
this.bind('loadstart', function(e) {
if (!e.cached) {
this.$('loader').show().fadeTo(200, 0.4);
}
window.setTimeout(function() {
activate(e);
}, touch ? 300 : 0);
this.$('info').toggle( this.hasInfo() );
});
this.bind('loadfinish', function(e) {
this.$('loader').fadeOut(200);
( function( window, factory ) {
if ( typeof define == 'function' && define.amd ) {
define( ['../galleria', 'jquery' ], function( Galleria, jQuery ) {
return factory( window, Galleria, jQuery );
});
} else if ( typeof module == 'object' && module.exports ) {
module.exports = factory(
window,
require('galleria'),
require('jquery')
);
} else {
factory(
window,
window.Galleria,
window.jQuery
);
}
});
}( window, function factory( window, Galleria, $ ) {
}(jQuery));
Galleria.addTheme({
name: 'classic',
version: 1.6,
author: 'Galleria',
css: 'galleria.classic.css',
defaults: {
transition: 'slide',
thumbCrop: 'height',
// set this to false if you want to show the caption all the time:
_toggleInfo: true
},
init: function(options) {
Galleria.requires(1.4, 'This version of Classic theme requires Galleria 1.4 or later');
// add some elements
this.addElement('info-link','info-close');
this.append({
'info' : ['info-link','info-close']
});
// cache some stuff
var info = this.$('info-link,info-close,info-text'),
touch = Galleria.TOUCH;
// show loader & counter with opacity
this.$('loader,counter').show().css('opacity', 0.4);
// some stuff for non-touch browsers
if (! touch ) {
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._toggleInfo === true ) {
info.bind( 'click:fast', function() {
info.toggle();
});
} else {
info.show();
this.$('info-link, info-close').hide();
}
// bind some stuff
this.bind('thumbnail', function(e) {
if (! touch ) {
// fade thumbnails
$(e.thumbTarget).css('opacity', 0.6).parent().hover(function() {
$(this).not('.active').children().stop().fadeTo(100, 1);
}, function() {
$(this).not('.active').children().stop().fadeTo(400, 0.6);
});
if ( e.index === this.getIndex() ) {
$(e.thumbTarget).css('opacity',1);
}
} else {
$(e.thumbTarget).css('opacity', this.getIndex() ? 1 : 0.6).bind('click:fast', function() {
$(this).css( 'opacity', 1 ).parent().siblings().children().css('opacity', 0.6);
});
}
});
var activate = function(e) {
$(e.thumbTarget).css('opacity',1).parent().siblings().children().css('opacity', 0.6);
};
this.bind('loadstart', function(e) {
if (!e.cached) {
this.$('loader').show().fadeTo(200, 0.4);
}
window.setTimeout(function() {
activate(e);
}, touch ? 300 : 0);
this.$('info').toggle( this.hasInfo() );
});
this.bind('loadfinish', function(e) {
this.$('loader').fadeOut(200);
});
}
});
return Galleria;
}));

File diff suppressed because one or more lines are too long

View File

@@ -1,11 +1,10 @@
/**
* Galleria - v1.5.7 2017-05-10
* https://galleria.io
* Galleria - v1.6.1 2019-10-17
*
*
* Copyright (c) 2010 - 2017 worse is better UG
* Copyright (c) 2010 - 2019 worse is better UG
* Licensed under the MIT License.
* https://raw.github.com/worseisbetter/galleria/master/LICENSE
*
*/
!function(a){Galleria.addTheme({name:"classic",version:1.5,author:"Galleria",css:"galleria.classic.css",defaults:{transition:"slide",thumbCrop:"height",_toggleInfo:!0},init:function(b){Galleria.requires(1.4,"This version of Classic theme requires Galleria 1.4 or later"),this.addElement("info-link","info-close"),this.append({info:["info-link","info-close"]});var c=this.$("info-link,info-close,info-text"),d=Galleria.TOUCH;this.$("loader,counter").show().css("opacity",.4),d||(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})),b._toggleInfo===!0?c.bind("click:fast",function(){c.toggle()}):(c.show(),this.$("info-link, info-close").hide()),this.bind("thumbnail",function(b){d?a(b.thumbTarget).css("opacity",this.getIndex()?1:.6).bind("click:fast",function(){a(this).css("opacity",1).parent().siblings().children().css("opacity",.6)}):(a(b.thumbTarget).css("opacity",.6).parent().hover(function(){a(this).not(".active").children().stop().fadeTo(100,1)},function(){a(this).not(".active").children().stop().fadeTo(400,.6)}),b.index===this.getIndex()&&a(b.thumbTarget).css("opacity",1))});var e=function(b){a(b.thumbTarget).css("opacity",1).parent().siblings().children().css("opacity",.6)};this.bind("loadstart",function(a){a.cached||this.$("loader").show().fadeTo(200,.4),window.setTimeout(function(){e(a)},d?300:0),this.$("info").toggle(this.hasInfo())}),this.bind("loadfinish",function(a){this.$("loader").fadeOut(200)})}})}(jQuery);
!function(a,b){"function"==typeof define&&define.amd?define(["../galleria","jquery"],function(c,d){return b(a,c,d)}):"object"==typeof module&&module.exports?module.exports=b(a,require("galleria"),require("jquery")):b(a,a.Galleria,a.jQuery)}(window,function(a,b,c){return b.addTheme({name:"classic",version:1.6,author:"Galleria",css:"galleria.classic.css",defaults:{transition:"slide",thumbCrop:"height",_toggleInfo:!0},init:function(d){b.requires(1.4,"This version of Classic theme requires Galleria 1.4 or later"),this.addElement("info-link","info-close"),this.append({info:["info-link","info-close"]});var e=this.$("info-link,info-close,info-text"),f=b.TOUCH;this.$("loader,counter").show().css("opacity",.4),f||(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})),!0===d._toggleInfo?e.bind("click:fast",function(){e.toggle()}):(e.show(),this.$("info-link, info-close").hide()),this.bind("thumbnail",function(a){f?c(a.thumbTarget).css("opacity",this.getIndex()?1:.6).bind("click:fast",function(){c(this).css("opacity",1).parent().siblings().children().css("opacity",.6)}):(c(a.thumbTarget).css("opacity",.6).parent().hover(function(){c(this).not(".active").children().stop().fadeTo(100,1)},function(){c(this).not(".active").children().stop().fadeTo(400,.6)}),a.index===this.getIndex()&&c(a.thumbTarget).css("opacity",1))});var g=function(a){c(a.thumbTarget).css("opacity",1).parent().siblings().children().css("opacity",.6)};this.bind("loadstart",function(b){b.cached||this.$("loader").show().fadeTo(200,.4),a.setTimeout(function(){g(b)},f?300:0),this.$("info").toggle(this.hasInfo())}),this.bind("loadfinish",function(a){this.$("loader").fadeOut(200)})}}),b});

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,488 @@
/**
* Galleria Folio Theme
*
*
* Copyright (c) 2010 - 2019 worse is better UG
* Licensed under the MIT License.
*/
( function( window, factory ) {
if ( typeof define == 'function' && define.amd ) {
define( ['../galleria', 'jquery' ], function( Galleria, jQuery ) {
return factory( window, Galleria, jQuery );
});
} else if ( typeof module == 'object' && module.exports ) {
module.exports = factory(
window,
require('galleria'),
require('jquery')
);
} else {
factory(
window,
window.Galleria,
window.jQuery
);
}
}( window, function factory( window, Galleria, $ ) {
/*global jQuery, Galleria, window */
Galleria.addTheme({
name: 'folio',
version: 1.60,
author: 'Galleria',
css: 'galleria.folio.css',
defaults: {
transition: 'pulse',
thumbCrop: 'width',
imageCrop: false,
carousel: false,
show: false,
easing: 'galleriaOut',
trueFullscreen: false,
_webkitCursor: false,
_animate: true,
_center: false, /* Set this to false for now, for backwards compability */
_onClick: null
},
init: function(options) {
Galleria.requires( 1.6, 'This version of Folio theme requires Galleria version 1.6 or later');
this.addElement( 'preloader', 'loaded', 'close' ).append({
container: 'preloader',
preloader: 'loaded',
stage: 'close'
});
var self = this,
stage = this.$('stage'),
thumbnails = this.$('thumbnails'),
thumbContainer = this.$('thumbnails-container'),
images = this.$('images'),
info = this.$('info'),
loader = this.$('loader'),
target = this.$('target'),
len = 0,
width = target.width(),
center = options._center,
colWidth = 0,
colMargin = 0,
HASH = window.location.hash.substr( 2 ),
adjustInfo = function( width ) {
self.$('info').css({
left: self.finger ? 20 : Math.max(20, ( $(window).width()/2 - width/2 + 10 ) )
});
},
mi = function( arr ) { return Math.min.apply( window, arr ); },
ma = function(arr) { return Math.max.apply( window, arr ); },
masonry = function( elem, options ) {
options = $.extend({
speed: 400,
width: 190,
onbrick: function(){},
onheight: function(){},
delay: 0,
debug: false
}, options );
elem = $(elem);
var bricks = elem.children(),
width = elem.width(),
colCount = Math.floor( width / options.width ),
colHeight = [],
i,
thisCol,
sz,
mH,
css = {
'float': 'none',
position: 'absolute',
display: Galleria.SAFARI ? 'inline-block' : 'block'
};
if ( center ) {
var width = thumbContainer.width();
var margin = (width-(colCount*colWidth-10))/2; // TODO calc margin dynamic
thumbnails.css('left', colCount ? margin : 0);
}
if ( elem.data('colCount') === colCount ) {
return;
}
elem.data( 'colCount', colCount );
if ( !bricks.length ) {
return;
}
for ( i = 0; i < colCount; i++ ) {
colHeight[ i ] = 0;
}
elem.css( 'position', 'relative' );
bricks.css( css ).each( function( j, brick ) {
brick = $( brick );
for ( i = colCount-1; i > -1; i-- ) {
if ( colHeight[ i ] === mi( colHeight ) ) {
thisCol = i;
}
}
sz = {
top: colHeight[ thisCol ],
left: options.width * thisCol
};
if ( typeof sz.top !== 'number' || typeof sz.left !== 'number' ) {
return;
}
if ( options.speed ) {
window.setTimeout((function( brick, options, sz ) {
return function(e) {
Galleria.utils.animate( brick, sz, {
easing: 'galleriaOut',
duration: options.speed,
complete: options.onbrick
});
};
}( brick, options, sz )), j * options.delay );
} else {
brick.css( sz );
options.onbrick.call( brick );
}
if ( !brick.data( 'height' ) ) {
brick.data( 'height', brick.outerHeight( true ) );
}
colHeight[ thisCol ] += brick.data('height');
});
mH = ma( colHeight );
if (mH < 0) {
return;
}
if (typeof mH !== 'number') {
return;
}
if ( options.speed ) {
elem.animate({ height: ma( colHeight ) }, options.speed, options.onheight );
} else {
elem.height( ma( colHeight ) );
options.onheight.call( elem );
}
};
if ( center ) {
this.$('container').addClass('center');
}
this.bind( 'fullscreen_enter', function(e) {
this.$('container').css('height','100%');
if ( self.finger ) {
$.each( self._controls.slides, function( i, slide ) {
$( slide.container ).show();
});
}
});
this.bind( 'fullscreen_exit', function(e) {
if ( this.getData().iframe ) {
$(this._controls.getActive().container).find('iframe').remove();
this.$('container').removeClass('iframe');
}
Galleria.TOUCH || $( self._controls.getActive().container ).hide();
if ( self.finger ) {
$.each( self._controls.slides, function( i, slide ) {
$( slide.container ).hide();
});
}
});
this._fullscreen.beforeExit = function(ready) {
info.hide();
if ( Galleria.IE8 ) {
Galleria.utils.animate( self.getActiveImage(), {
opacity: 0
}, {
duration: 200
});
}
Galleria.utils.animate( stage[0], {
opacity: 0
}, {
duration: 200,
complete: function() {
stage.css({
visibility: 'hidden',
opacity: 1
});
thumbnails.show();
Galleria.utils.animate(thumbnails[0], {
opacity: 1
}, {
duration: 200
});
ready();
}
});
};
this.bind( 'thumbnail', function(e) {
this.addElement( 'plus' );
var thumb = e.thumbTarget,
plus = this.$( 'plus' ).css({
display:'block'
}).insertAfter( thumb ),
parent = $( thumb ).parent().data('index', e.index);
if ( options.showInfo && this.hasInfo( e.index ) ) {
plus.append( '<span>'+this.getData( e.index ).title+'</span>' );
}
colWidth = colWidth || $(thumb).parent().outerWidth(true);
colMargin = colMargin || colWidth - $(thumb).width();
$( thumb ).css( 'opacity', 0 );
parent.off( options.thumbEventType );
if (Galleria.IE) {
plus.hide();
} else {
plus.css('opacity',0);
}
if ( !Galleria.TOUCH ) {
parent.hover(function() {
if (Galleria.IE) {
plus.show();
} else {
plus.stop().css('opacity',1);
}
}, function() {
if (Galleria.IE) {
plus.hide();
} else {
plus.stop().animate({opacity:0}, 300);
}
});
} else {
parent.on('touchstart', function() {
plus.css('opacity',1);
}).on( 'touchend', function() {
plus.hide();
});
}
len++;
this.$( 'loaded' ).css('width', ( len / this.getDataLength() * 100 ) + '%' );
if ( len === this.getDataLength() ) {
this.$( 'preloader' ).fadeOut( 100 );
thumbnails.data('colCount', null);
masonry( thumbnails, {
width: colWidth,
speed: options._animate ? 400 : 0,
onbrick: function() {
var el = this,
image = $( el ).find('img, .img');
window.setTimeout( (function(image) {
return function() {
Galleria.utils.animate( image, {
opacity: 1
}, {
duration: options.transition_speed,
complete: function() {
$(image).parent().css('background', '#000');
}
});
image.parent().off( 'click:fast click' ).on('click:fast', function() {
var index = $(this).data('index');
if ( Galleria.IE < 9 ) {
$(this).find('.galleria-plus').hide();
}
if ( $.isFunction( options._onClick ) ) {
options._onClick.call(self, self.getData(index));
return;
}
stage.css({
visibility: 'visible',
opacity: 0
});
self.$( 'target' ).height( self.$('target').height() );
if ( self.finger ) {
images.css( 'opacity', 0 );
}
Galleria.utils.animate(thumbnails[0], {
opacity: 0
}, {
duration: 100,
complete: function() {
thumbnails.hide();
self.enterFullscreen();
Galleria.utils.animate( stage[0], {
opacity: 1
}, {
duration: 200,
complete: function() {
if ( self.finger ) {
images.animate({ opacity: 1 });
self.finger.moveTo( index );
}
if ( self.finger ) {
self.finger.setPosition( -index*self.finger.width );
}
self.show( index );
}
});
}
});
});
};
}( image )), options._animate ? image.parent().data('index')*100 : 0);
},
onheight: function() {
target.height( thumbnails.height() );
}
});
}
});
this.bind( 'loadstart', function(e) {
if (! e.cached ) {
loader.show();
}
});
this.bind('data', function() {
len = 0;
});
this.bind( 'loadfinish', function(e) {
if ( !e.galleriaData ) {
return;
}
loader.hide();
this.finger || info.hide();
if ( this.hasInfo() && options.showInfo && this.isFullscreen() && !this.finger ) {
info.fadeIn( options.transition ? options.transitionSpeed : 0 );
}
adjustInfo( $(e.imageTarget).width() );
this.finger && options.showInfo && info.show();
});
if ( !Galleria.TOUCH && !options._webkitCursor ) {
this.addIdleState( this.get('image-nav-left'), { left: -100 });
this.addIdleState( this.get('image-nav-right'), { right: -100 });
this.addIdleState( this.get('info'), { opacity: 0 });
}
this.$('container').css({
width: options.width,
height: 'auto'
});
if (options._webkitCursor && Galleria.WEBKIT && !Galleria.TOUCH) {
this.$('image-nav-right,image-nav-left').addClass('cur');
}
if (Galleria.TOUCH) {
this.setOptions({
transition: 'fadeslide',
initialTransition: false
});
}
this.$('close').on('click:fast', function() {
self.exitFullscreen();
});
if ( Galleria.History && HASH ) {
stage.css('visibility', 'visible');
thumbnails.css('opacity', 0);
this.$( 'preloader' ).hide();
this.enterFullscreen(function() {
this.show( parseInt(HASH, 10) );
});
}
var timer = null;
var onResize = function( e ) {
timer = null;
if ( self.isFullscreen() ) {
if ( self.getActiveImage() ) {
adjustInfo( self.getActiveImage().width );
}
return;
}
var nw = thumbContainer.width();
if( nw !== width ) {
width = nw;
masonry( thumbnails, {
width:colWidth,
delay: 50,
debug: true,
onheight: function() {
target.height( thumbnails.height() );
}
});
}
}
$(window).resize( function() {
if ( timer ) {
clearTimeout(timer);
}
timer = setTimeout(onResize, 200);
})
onResize();
}
});
return Galleria;
}));

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,219 @@
#galleria-loader{height:1px!important}
html,
body { background: #000 }
.galleria-theme-fullscreen {
height: 100%;
overflow: hidden;
position: fixed;
top: 0;
left: 0;
width: 100%;
background: #000;
-webkit-font-smoothing: antialiased;
}
.galleria-theme-fullscreen img {
-moz-user-select: none;
-webkit-user-select: none;
-o-user-select: none;
}
.galleria-theme-fullscreen .galleria-stage {
width: 100%;
height: 100%;
position: absolute;
}
.galleria-theme-fullscreen .galleria-thumbnails-container {
position: absolute;
bottom: 0;
z-index: 2;
padding-top: 16px;
width: 100%;
}
.galleria-theme-fullscreen.videoplay .galleria-thumbnails-container { display:none!important; }
.galleria-theme-fullscreen.videoplay .galleria-image-nav { top:80px; bottom:80px; height:auto; }
.galleria-theme-fullscreen .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('data:image/gif;base64,R0lGODlhBwAIAIABAP///////yH5BAEAAAEALAAAAAAHAAgAAAINjGEJq8gJVVzouBpDAQA7') 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-theme-fullscreen.light .galleria-thumbnails-tab {
background:#fff url('data:image/gif;base64,R0lGODlhBwAIAIABAAAAAP///yH/C1hNUCBEYXRhWE1QPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS4wLWMwNjAgNjEuMTM0Nzc3LCAyMDEwLzAyLzEyLTE3OjMyOjAwICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpCNTQ5NTRGQTNCMUYxMUUzODczNkFGQzMzMTgxOTcxNyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpCNTQ5NTRGQjNCMUYxMUUzODczNkFGQzMzMTgxOTcxNyI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkI1NDk1NEY4M0IxRjExRTM4NzM2QUZDMzMxODE5NzE3IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkI1NDk1NEY5M0IxRjExRTM4NzM2QUZDMzMxODE5NzE3Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+Af/+/fz7+vn49/b19PPy8fDv7u3s6+rp6Ofm5eTj4uHg397d3Nva2djX1tXU09LR0M/OzczLysnIx8bFxMPCwcC/vr28u7q5uLe2tbSzsrGwr66trKuqqainpqWko6KhoJ+enZybmpmYl5aVlJOSkZCPjo2Mi4qJiIeGhYSDgoGAf359fHt6eXh3dnV0c3JxcG9ubWxramloZ2ZlZGNiYWBfXl1cW1pZWFdWVVRTUlFQT05NTEtKSUhHRkVEQ0JBQD8+PTw7Ojk4NzY1NDMyMTAvLi0sKyopKCcmJSQjIiEgHx4dHBsaGRgXFhUUExIREA8ODQwLCgkIBwYFBAMCAQAAIfkEAQAAAQAsAAAAAAcACAAAAg2MYQmryAlVXOi4GkMBADs=') no-repeat 50% 50%;
opacity: 1;
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
filter: alpha(opacity=100);
}
.galleria-theme-fullscreen .galleria-thumbnails-tab:hover {
opacity: 1;
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
filter: alpha(opacity=100);
}
.galleria-theme-fullscreen .galleria-thumbnails-tab.open,
.galleria-theme-fullscreen .galleria-thumbnails-tab.open:hover {
background-image: url('data:image/gif;base64,R0lGODlhBwAIAIABAP///////yH5BAEAAAEALAAAAAAHAAgAAAINjG8AoaeLIJqtJetOAQA7');
opacity: 1;
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
filter: alpha(opacity=100);
}
.galleria-theme-fullscreen.light .galleria-thumbnails-tab.open,
.galleria-theme-fullscreen.light .galleria-thumbnails-tab.open:hover {
background-image: url('data:image/gif;base64,R0lGODlhBwAIAIABAAAAAP///yH/C1hNUCBEYXRhWE1QPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS4wLWMwNjAgNjEuMTM0Nzc3LCAyMDEwLzAyLzEyLTE3OjMyOjAwICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpCNTQ5NTRGNjNCMUYxMUUzODczNkFGQzMzMTgxOTcxNyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpCNTQ5NTRGNzNCMUYxMUUzODczNkFGQzMzMTgxOTcxNyI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkI1NDk1NEY0M0IxRjExRTM4NzM2QUZDMzMxODE5NzE3IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkI1NDk1NEY1M0IxRjExRTM4NzM2QUZDMzMxODE5NzE3Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+Af/+/fz7+vn49/b19PPy8fDv7u3s6+rp6Ofm5eTj4uHg397d3Nva2djX1tXU09LR0M/OzczLysnIx8bFxMPCwcC/vr28u7q5uLe2tbSzsrGwr66trKuqqainpqWko6KhoJ+enZybmpmYl5aVlJOSkZCPjo2Mi4qJiIeGhYSDgoGAf359fHt6eXh3dnV0c3JxcG9ubWxramloZ2ZlZGNiYWBfXl1cW1pZWFdWVVRTUlFQT05NTEtKSUhHRkVEQ0JBQD8+PTw7Ojk4NzY1NDMyMTAvLi0sKyopKCcmJSQjIiEgHx4dHBsaGRgXFhUUExIREA8ODQwLCgkIBwYFBAMCAQAAIfkEAQAAAQAsAAAAAAcACAAAAg2MbwChp4sgmq0l604BADs=');
}
.galleria-theme-fullscreen .galleria-thumbnails {
background: #000;
overflow: hidden;
}
.galleria-theme-fullscreen .galleria-thumbnails-list {
background: #000;
padding-top: 5px;
padding-bottom: 5px;
overflow: hidden;
}
.galleria-theme-fullscreen.light .galleria-thumbnails,
.galleria-theme-fullscreen.light .galleria-thumbnails-list {
background:#fff;
}
.galleria-theme-fullscreen .galleria-thumbnails .galleria-image {
width: 80px;
height: 50px;
float: left;
cursor: pointer;
margin-right: 5px;
}
.galleria-theme-fullscreen .galleria-thumbnails .galleria-image img { background: #000 }
.galleria-theme-fullscreen .galleria-thumbnails .active { cursor: default }
.galleria-theme-fullscreen .galleria-carousel .galleria-thumbnails-list {
border-left: 30px solid #000;
border-right: 30px solid #000;
}
.galleria-theme-fullscreen.light .galleria-carousel .galleria-thumbnails-list {
border-color: #fff;
}
.galleria-theme-fullscreen .galleria-image-nav {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
}
.galleria-theme-fullscreen .galleria-image-nav-right,
.galleria-theme-fullscreen .galleria-image-nav-left {
width: 100px;
right: 0;
top: 0;
bottom: 0;
background: url('data:image/gif;base64,R0lGODlhHgAeAIABAP///////yH5BAEAAAEALAAAAAAeAB4AAAIphI+py+0Po5y02ouz3isEnnggIo5GaaKjurGam8GYfNHmjef6zve+WQAAOw==') no-repeat 50% 50%;
position: absolute;
cursor: pointer;
z-index: 2;
display: none;
}
.galleria-theme-fullscreen.smallarrows .galleria-image-nav-right {
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpGNUE2OTE5MjNCNjQxMUUzQUI1Q0E4NEE3NjU5N0I3NSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpGNUE2OTE5MzNCNjQxMUUzQUI1Q0E4NEE3NjU5N0I3NSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkY1QTY5MTkwM0I2NDExRTNBQjVDQTg0QTc2NTk3Qjc1IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkY1QTY5MTkxM0I2NDExRTNBQjVDQTg0QTc2NTk3Qjc1Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+in5zKAAAAMBJREFUeNrE18EKxCAMBNAaWtjT/v939lTwYCNYKAu7m8yMVBBRhJdi28TSWlueaGt0Yynl5cPmvXqwBwtbBnVw7+OYz4dv6KLCo3B16H1NFHgIHmcqxaNPLMcts1mJWzZSFW7I+ShwQ99KFjfmW2RwY/9AKE7DKC6B/+FT4Y9Ecq31IOo0+Bf6LYXaEygNoygFMygMsygEK9A0rEJTsBJFq0wahapMBQpVmQo0fJPoiIMyNHWFGRgNyrNTtp0CDACOjOY0UOB3+QAAAABJRU5ErkJggg==');
}
.galleria-theme-fullscreen .galleria-image-nav-left {
left: 0;
right: auto;
background-image: url('data:image/gif;base64,R0lGODlhHgAeAIABAP///////yH5BAEAAAEALAAAAAAeAB4AAAIphI+py+0Po5y02ouz3i0EfnigIY4leHIp+o1k664qbNLujef6zvd+XgAAOw==');
}
.galleria-theme-fullscreen.smallarrows .galleria-image-nav-left {
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME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O2MWEBeRo/SUhHANfCFeRlNJCJLGARWTTYtV86XjnJ/CD6jiH1kMrPgXnaNYXtB3d4BLqOuNZdAi2QLthK7QLtkSbYWu0CfZAX2EvtAp7okXYG63Buyf6vxlja4zuavQcozcXelejrxP6HqMRCBpzoVEmGlejPwn07zSSbgEGANleQtRAGH+dAAAAAElFTkSuQmCC');
}
.galleria-theme-fullscreen .galleria-loader {
width: 30px;
height: 30px;
background: #fff url('data:image/gif;base64,R0lGODlhEAAQAPYAAFNTU1VVVWVlZX5+fomJiZiYmJycnK+vr76+vsDAwMnJydfX19jY2Orq6uzs7PHx8fT09P///1JSUlZWVllZWWhoaHJycnx8fJCQkJqamqenp6ioqLe3t7q6usPDw8bGxsjIyM7OztPT09TU1Nzc3N/f3+Pj4+Xl5evr6+7u7vLy8vb29vn5+VtbW1xcXGdnZ2lpaXR0dIGBgYSEhIyMjJGRkaKioqqqqq2trcLCwsTExMvLy8/Pz9DQ0OHh4e/v7/X19U9PT1BQUGZmZqurq7Gxsba2tr29vdnZ2e3t7fPz8/r6+lhYWHBwcKOjo/j4+FdXV3FxccXFxczMzOLi4gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/i1NYWRlIGJ5IEtyYXNpbWlyYSBOZWpjaGV2YSAod3d3LmxvYWRpbmZvLm5ldCkAIfkEAAoA/wAsAAAAABAAEAAABX5gJI6RopBoBB1NRBBRc0DpIxQuXAgPCfWIAOPFCCAiD1rkIEA8BoZEwjB4IAQHUaMAGCwcIgdjACi0RgwDeOQwMEaKFyGRQshNcjoqcUerSW1vI1sBXmtiAwFmIkxOUFJUVlgiPxFBQwRFR0kkNjgvETs9KCstoDJKKSImqiE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AkJBRSlowCGCcUOxhRSw0bkhEdUktTUB4aIhcdUwIVjksZElEdO0mCKztQGMODJBgXKopJHickIg0r0jsjlhoUUFAdHRThGpYjOyQnKw0j5x7JgioXGCTPGFBSzhFJOx1REhmJVAQIENHhwogNHqDsWCKlEqMNDZZEwTAlEgYBDUJJkdCJAokkFTaE6pAhQikREahkDJVoRYeVigIBADs=') no-repeat 50% 50%;
position: absolute;
top: 50%;
left: 50%;
margin-top: -15px;
margin-left: -15px;
z-index: 3;
}
.galleria-theme-fullscreen .galleria-info {
z-index: 4;
font: 13px/1.4 helvetica,arial,sans-serif;
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,.5);
border-bottom:1px solid rgba(0,0,0,.1);
}
.galleria-theme-fullscreen.light .galleria-info{background:rgba(255,255,255,.5);color:#000;}
.galleria-theme-fullscreen .galleria-info-text {
width: 50%;
margin: 0 auto;
}
.galleria-theme-fullscreen .galleria-info-title { font-weight: bold; display: inline-block; margin-right:10px; }
.galleria-theme-fullscreen .galleria-info-description { display:inline-block; }
.galleria-theme-fullscreen .galleria-thumb-nav-left,
.galleria-theme-fullscreen .galleria-thumb-nav-right {
cursor: pointer;
display: none;
background: url('data:image/gif;base64,R0lGODlhBwAOAIABAP///////yH5BAEAAAEALAAAAAAHAA4AAAITjA9nkNj7AlPTKRnhxbvSzF1AAQA7') 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-theme-fullscreen.light .galleria-thumb-nav-left{
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAOCAYAAADjXQYbAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54b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8+TCvkwQAAAEZJREFUeNqE0EkKADAIBMG0//9zNgi4ZNBDLjUaEWCImqbgPKZgF6YgdwbwWODhF9RCAUmjS+c34MeWQP6T7kJ0t72BJcAAQ0YMHhMIeE4AAAAASUVORK5CYII=');
}
.galleria-theme-fullscreen .galleria-thumb-nav-right {
background-image: url('data:image/gif;base64,R0lGODlhBwAOAIABAP///////yH5BAEAAAEALAAAAAAHAA4AAAISRI5geMq9mHtTRmhzujV0/wQFADs=');
left: auto;
right: 5px;
}
.galleria-theme-fullscreen.light .galleria-thumb-nav-right{
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAOCAYAAADjXQYbAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpGNUE2OTE5NjNCNjQxMUUzQUI1Q0E4NEE3NjU5N0I3NSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpGNUE2OTE5NzNCNjQxMUUzQUI1Q0E4NEE3NjU5N0I3NSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkY1QTY5MTk0M0I2NDExRTNBQjVDQTg0QTc2NTk3Qjc1IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkY1QTY5MTk1M0I2NDExRTNBQjVDQTg0QTc2NTk3Qjc1Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+ZoIU8AAAAEpJREFUeNp0kEkOADAIAoH//9le2sYFvWjCKAaSDACEKd0em8gNeJsWUJoHoHapADJ/fMCJ2M5mT2oT+mY0z5EQu6cVXEKljgADAGy8DB8XieyIAAAAAElFTkSuQmCC');
}
.galleria-theme-fullscreen .galleria-carousel .galleria-thumb-nav-left,
.galleria-theme-fullscreen .galleria-carousel .galleria-thumb-nav-right { display: block }
.galleria-theme-fullscreen .galleria-carousel .galleria-thumb-nav-left:hover,
.galleria-theme-fullscreen .galleria-carousel .galleria-thumb-nav-right:hover { background-color: #222 }
.galleria-theme-fullscreen .galleria-thumb-nav-left.disabled,
.galleria-theme-fullscreen .galleria-thumb-nav-right.disabled,
.galleria-theme-fullscreen .galleria-thumb-nav-left.disabled:hover,
.galleria-theme-fullscreen .galleria-thumb-nav-right.disabled:hover {
opacity: .2;
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=20)";
filter: alpha(opacity=20);
cursor: default;
}
.galleria-theme-fullscreen.light .galleria-carousel .galleria-thumb-nav-left:hover,
.galleria-theme-fullscreen.light .galleria-carousel .galleria-thumb-nav-right:hover { background-color: #ddd }
.galleria-theme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MzBGMzlFRSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo0MTRFNDc1MDQ0NEIxMUUwOTdFOUQ4MTQzMzBGMzlFRSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PgvyY1sAAAG9SURBVHja7Nkxa8JAFMDx0wiC4NShCB38Eg5CJ4eCH6J0zifqLP0WDl0d/BIZCqWzEOgQ0he4wCF3lyG58Br+Bw+j3mF+vOe7RGd1XZspjLmZyAACBAgQIECAAAECBAiQKUCWEkeJZ4ksMi+zc452jTrIQeJBYiuxD2Ay+97Wzj1ohNycYx/GRfjW9BqLASEXB+E+tq/fIwrnPVWQKoIxAUQ11IfPEvwc5CshkxKRqv22mSnGQrCP9CitWGtWBckC3alIjVmMgLh4OpfbmittGdlHWqyvAbSZUVda647u5MOsNe4jS3vtdOsombYEG8SnxK/WDZH7ESBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgDTjUeIscZJYReat7JyzXTPIGPLP0ObEnuzxVSKXKD2Id4mdff4l8aItI9/O8c6e8CqCuF+jBpLbTPgwPkSbNXWlZSInbAKIUiskhDEpEanab+kps6QI9pEepeXrZiohoS/7NTVmPgIi72jN6rrWqaPFhqBv2jKy6ehOvm620ZiR5gLww152xFpsm5kG8Srxo3VD5H4ECBAgQIAAAQIECBAgQP7j+BNgAOhPfpgJajmFAAAAAElFTkSuQmCC') no-repeat 0 0;
z-index:100;
cursor:pointer;
}
.galleria-theme-fullscreen .galleria-exit:hover{
background-position:0 -50px;
}

View File

@@ -0,0 +1,197 @@
/**
* Galleria Fullscreen Theme
*
*
* Copyright (c) 2010 - 2019 worse is better UG
* Licensed under the MIT License.
*/
( function( window, factory ) {
if ( typeof define == 'function' && define.amd ) {
define( ['../galleria', 'jquery' ], function( Galleria, jQuery ) {
return factory( window, Galleria, jQuery );
});
} else if ( typeof module == 'object' && module.exports ) {
module.exports = factory(
window,
require('galleria'),
require('jquery')
);
} else {
factory(
window,
window.Galleria,
window.jQuery
);
}
}( window, function factory( window, Galleria, $ ) {
Galleria.addTheme({
name: 'fullscreen',
version: '1.6',
author: 'Galleria',
css: 'galleria.fullscreen.css',
// begin site script
defaults: {
transition: 'none',
imageCrop: true,
thumbCrop: 'height',
easing: 'galleriaOut',
trueFullscreen: false,
// set this to false if you want to keep the thumbnails:
_hideDock: Galleria.TOUCH ? false : true,
// set this to true if you want to shrink the carousel when clicking a thumbnail:
_closeOnClick: false
},
init: function(options) {
Galleria.requires( 1.5, 'This version of Fullscreen theme requires Galleria version 1.5 or later');
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._hideDock,
POS = 0;
if (Galleria.IE) {
this.addElement('iefix');
this.appendChild('container', 'iefix');
this.$('iefix').css({
zIndex: 3,
position: 'absolute',
backgroundColor: this.hasVariation('light') ? '#fff' : '#000',
opacity: 0.4,
top: 0
});
}
if ( options.thumbnails === false ) {
thumbs.hide();
}
var fixCaption = this.proxy(function(img) {
var w = img.width || $(img).width();
if (!(img || w)) {
return;
}
w = Math.min(w, $(window).width());
infotext.width(w - 40);
if (Galleria.IE && this.getOptions('showInfo')) {
this.$('iefix').width(info.outerWidth()).height(info.outerHeight());
}
});
this.bind('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('loadstart', function(e) {
if (!e.cached) {
loader.show().fadeTo(100, 1);
}
$(e.thumbTarget).css('opacity', 1).parent().siblings().children().css('opacity', 0.6);
});
this.bind('loadfinish', function(e) {
loader.fadeOut(300);
this.$('info, iefix').toggle(this.hasInfo());
});
this.bind('image', function(e) {
e.imageTarget && fixCaption(e.imageTarget);
});
this.bind('thumbnail', function(e) {
$(e.thumbTarget).parent(':not(.active)').children().css('opacity', 0.6);
$(e.thumbTarget).on('click:fast', function() {
if (OPEN && options._closeOnClick) {
tab.trigger('click:fast');
}
});
});
this.trigger('rescale');
if ( !Galleria.TOUCH ) {
this.addIdleState(thumbs, { opacity: 0 });
this.addIdleState(this.get('info'), { 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 (Galleria.IE) {
this.addIdleState(this.get('iefix'), { opacity: 0 });
}
if (options._hideDock) {
tab.on('click:fast', this.proxy(function() {
tab.toggleClass('open', !OPEN);
if (!OPEN) {
thumbs.animate({
top: POS - list.outerHeight() + 2
}, 400, options.easing);
} else {
thumbs.animate({
top: POS
}, 400, options.easing);
}
OPEN = !OPEN;
}));
} else {
this.bind('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, 0.6);
});
this.enterFullscreen();
this.attachKeyboard({
escape: function(e) {
return false;
},
up: function(e) {
if (!OPEN) {
tab.trigger('click:fast');
}
e.preventDefault();
},
down: function(e) {
if (OPEN) {
tab.trigger('click:fast');
}
e.preventDefault();
}
});
}
// end site script
});
return Galleria;
}));

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,10 @@
/**
* Galleria - v1.6.1 2019-10-17
*
*
* Copyright (c) 2010 - 2019 worse is better UG
* Licensed under the MIT License.
*/
!function(a,b){"function"==typeof define&&define.amd?define(["../galleria","jquery"],function(c,d){return b(a,c,d)}):"object"==typeof module&&module.exports?module.exports=b(a,require("galleria"),require("jquery")):b(a,a.Galleria,a.jQuery)}(window,function(a,b,c){return b.addTheme({name:"fullscreen",version:"1.6",author:"Galleria",css:"galleria.fullscreen.css",defaults:{transition:"none",imageCrop:!0,thumbCrop:"height",easing:"galleriaOut",trueFullscreen:!1,_hideDock:!b.TOUCH,_closeOnClick:!1},init:function(d){b.requires(1.5,"This version of Fullscreen theme requires Galleria version 1.5 or later"),this.addElement("thumbnails-tab"),this.appendChild("thumbnails-container","thumbnails-tab");var e=this.$("thumbnails-tab"),f=this.$("loader"),g=this.$("thumbnails-container"),h=this.$("thumbnails-list"),i=this.$("info-text"),j=this.$("info"),k=!d._hideDock,l=0;b.IE&&(this.addElement("iefix"),this.appendChild("container","iefix"),this.$("iefix").css({zIndex:3,position:"absolute",backgroundColor:this.hasVariation("light")?"#fff":"#000",opacity:.4,top:0})),!1===d.thumbnails&&g.hide();var m=this.proxy(function(d){var e=d.width||c(d).width();(d||e)&&(e=Math.min(e,c(a).width()),i.width(e-40),b.IE&&this.getOptions("showInfo")&&this.$("iefix").width(j.outerWidth()).height(j.outerHeight()))});this.bind("rescale",function(){l=this.getStageHeight()-e.height()-2,g.css("top",k?l-h.outerHeight()+2:l);var a=this.getActiveImage();a&&m(a)}),this.bind("loadstart",function(a){a.cached||f.show().fadeTo(100,1),c(a.thumbTarget).css("opacity",1).parent().siblings().children().css("opacity",.6)}),this.bind("loadfinish",function(a){f.fadeOut(300),this.$("info, iefix").toggle(this.hasInfo())}),this.bind("image",function(a){a.imageTarget&&m(a.imageTarget)}),this.bind("thumbnail",function(a){c(a.thumbTarget).parent(":not(.active)").children().css("opacity",.6),c(a.thumbTarget).on("click:fast",function(){k&&d._closeOnClick&&e.trigger("click:fast")})}),this.trigger("rescale"),b.TOUCH||(this.addIdleState(g,{opacity:0}),this.addIdleState(this.get("info"),{opacity:0}),this.$("image-nav-left, image-nav-right").css("opacity",.01).hover(function(){c(this).animate({opacity:1},100)},function(){c(this).animate({opacity:0})}).show()),b.IE&&this.addIdleState(this.get("iefix"),{opacity:0}),d._hideDock?e.on("click:fast",this.proxy(function(){e.toggleClass("open",!k),k?g.animate({top:l},400,d.easing):g.animate({top:l-h.outerHeight()+2},400,d.easing),k=!k})):(this.bind("thumbnail",function(){g.css("top",l-h.outerHeight()+2)}),e.css("visibility","hidden")),this.$("thumbnails").children().hover(function(){c(this).not(".active").children().stop().fadeTo(100,1)},function(){c(this).not(".active").children().stop().fadeTo(400,.6)}),this.enterFullscreen(),this.attachKeyboard({escape:function(a){return!1},up:function(a){k||e.trigger("click:fast"),a.preventDefault()},down:function(a){k&&e.trigger("click:fast"),a.preventDefault()}})}}),b});

View File

@@ -0,0 +1,224 @@
#galleria-loader{height:1px!important}
.galleria-theme-miniml {
position: relative;
font:11px/14px arial,sans-serif;
}
.galleria-theme-miniml.dark.fullscreen {
background: transparent;
}
.galleria-theme-miniml img {
-moz-user-select: none;
-webkit-user-select: none;
-o-user-select: none;
}
.galleria-theme-miniml .galleria-stage {
position: absolute;
top: 0;
bottom: 20px;
left: 0px;
right: 0px;
overflow:hidden;
}
.galleria-theme-miniml .galleria-dots {
position:absolute;
height:10px;
bottom:0;
left:0;
}
.galleria-theme-miniml .galleria-dots div {
width:10px;
height:10px;
margin-right:5px;
color:#ccc;
color: rgba(0,0,0,.2);
font-size:36px;
line-height:12px;
float:left;
cursor:pointer;
font-family: arial,sans-serif;
}
.galleria-theme-miniml.dark .galleria-dots div {
color:#333;
}
.galleria-theme-miniml.notouch .galleria-dots div:hover,
.galleria-theme-miniml.touch .galleria-dots div:active {
color:#d77;
}
.galleria-theme-miniml .galleria-dots div.active {
color:#222;
}
.galleria-theme-miniml.dark .galleria-dots div.active {
color:#eee;
}
.galleria-theme-miniml .galleria-fs,
.galleria-theme-miniml .galleria-thumbs,
.galleria-theme-miniml .galleria-more {
width:12px;
height:12px;
cursor:pointer;
background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY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JREFUeNqMkFkKAEAIQtX737lZQGgagvxp4WURAQSSIoInknz6NGigygMyVB0M2UB5ZYYzdOtdYCJhKNV1Xa7upu/m6Xs4ffgSYACs6DMRWHKjoAAAAABJRU5ErkJggg==') no-repeat 50% 50%;
position:absolute;
bottom:0;
right:0;
}
.galleria-theme-miniml.dark .galleria-fs {
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo5QkI2NkU2ODNCNkIxMUUzQUI1Q0E4NEE3NjU5N0I3NSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo5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0E4NEE3NjU5N0I3NSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo4OUNFQTkzRTNCNkIxMUUzQUI1Q0E4NEE3NjU5N0I3NSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjg5Q0VBOTNCM0I2QjExRTNBQjVDQTg0QTc2NTk3Qjc1IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjg5Q0VBOTNDM0I2QjExRTNBQjVDQTg0QTc2NTk3Qjc1Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+CLLbSAAAADJJREFUeNpi/P//PwMaQBZghDGYGIgELFjEGLEpJNvE/7hMZyLGWpKspr3C/7j4AAEGAGluBxWW6NF5AAAAAElFTkSuQmCC');
}
.galleria-theme-miniml.notouch .galleria-fs:hover,
.galleria-theme-miniml.notouch .galleria-thumbs:hover,
.galleria-theme-miniml.notouch .galleria-more:hover,
.galleria-theme-miniml.touch .galleria-fs:active,
.galleria-theme-miniml.touch .galleria-thumbs:active,
.galleria-theme-miniml.touch .galleria-more:active,
.galleria-theme-miniml .galleria-thumbs.active,
.galleria-theme-miniml .galleria-more.active {
opacity: .5;
filter: alpha(opacity=50);
}
.galleria-theme-miniml.fullscreen .galleria-stage{
bottom:30px;
}
.galleria-theme-miniml.fullscreen .galleria-dots {
left:10px;
bottom:10px;
}
.galleria-theme-miniml.fullscreen .galleria-fs {
right:10px;
bottom:10px;
background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj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kvt7SExz13eIr4lOYvkbmTr1RPBW+k/86hDOAJcrgLMAA090b9R3huLAAAAABJRU5ErkJggg==');
}
.galleria-theme-miniml.fullscreen .galleria-thumbs {
right:25px;
bottom:10px;
}
.galleria-theme-miniml.fullscreen .galleria-more {
right:40px;
bottom:10px;
}
.galleria-theme-miniml.fullscreen .galleria-info {
bottom:10px;
margin-left:5px;
}
.galleria-theme-miniml.fullscreen .galleria-thumbnails-container{
bottom:30px;
}
.galleria-theme-miniml .galleria-counter {
display:none;
}
.galleria-theme-miniml .galleria-loader {
width: 30px;
height: 30px;
background: #fff url('data:image/gif;base64,R0lGODlhEAAQAPYAAFNTU1VVVWVlZX5+fomJiZiYmJycnK+vr76+vsDAwMnJydfX19jY2Orq6uzs7PHx8fT09P///1JSUlZWVllZWWhoaHJycnx8fJCQkJqamqenp6ioqLe3t7q6usPDw8bGxsjIyM7OztPT09TU1Nzc3N/f3+Pj4+Xl5evr6+7u7vLy8vb29vn5+VtbW1xcXGdnZ2lpaXR0dIGBgYSEhIyMjJGRkaKioqqqqq2trcLCwsTExMvLy8/Pz9DQ0OHh4e/v7/X19U9PT1BQUGZmZqurq7Gxsba2tr29vdnZ2e3t7fPz8/r6+lhYWHBwcKOjo/j4+FdXV3FxccXFxczMzOLi4gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/i1NYWRlIGJ5IEtyYXNpbWlyYSBOZWpjaGV2YSAod3d3LmxvYWRpbmZvLm5ldCkAIfkEAAoA/wAsAAAAABAAEAAABX5gJI6RopBoBB1NRBBRc0DpIxQuXAgPCfWIAOPFCCAiD1rkIEA8BoZEwjB4IAQHUaMAGCwcIgdjACi0RgwDeOQw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MFJjHmVer3yYW1QIAAh+QQACgD/ACwAAAAAEAAQAAAHuYARgoMNHCsRS4OKEQ1UESIUJxEZHYuCGxVJVFAkJBRSlowCGCcUOxhRSw0bkhEdUktTUB4aIhcdUwIVjksZElEdO0mCKztQGMODJBgXKopJHickIg0r0jsjlhoUUFAdHRThGpYjOyQnKw0j5x7JgioXGCTPGFBSzhFJOx1REhmJVAQIENHhwogNHqDsWCKlEqMNDZZEwTAlEgYBDUJJkdCJAokkFTaE6pAhQikREahkDJVoRYeVigIBADs=') no-repeat 50% 50%;
position: absolute;
top: 50%;
left: 50%;
margin-top: -15px;
margin-left: -15px;
z-index: 3;
display:none;
}
.galleria-theme-miniml .galleria-info {
position: absolute;
bottom:0px;
height:10px;
line-height:10px;
}
.galleria-theme-miniml .galleria-info-title {
display:inline;
color:#666;
}
.galleria-theme-miniml.dark .galleria-info-title {
color:#aaa;
}
.galleria-theme-miniml .galleria-info-description {
display:none!important;
}
.galleria-theme-miniml .galleria-desc {
position:absolute;
width:30%;
bottom:30px;
left:auto;
right: 10px;
background:#fff;
border:5px solid #fff;
padding:5px;
z-index:2;
font:11px/14px arial,sans-serif;
display:none;
color:#777;
cursor:pointer;
}
.galleria-theme-miniml.fullscreen .galleria-desc {
bottom: 40px;
}
.galleria-theme-miniml.dark .galleria-desc {
background:#000;
border-color:#000;
color:#aaa;
}
.galleria-theme-miniml .galleria-desc.hover{
background:#fff url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAALCAYAAACprHcmAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYw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AuZGlkOjlCQjY2RTZCM0I2QjExRTNBQjVDQTg0QTc2NTk3Qjc1Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+PfwXsQAAAE5JREFUeNqEj0kOACAIxKD//zNqYozKxg1oA6M2S0RU+jI2aB24OHZTCecy1zASnhf5lrfgshCc1QjMYMsyUPzoBLIwkUABOoEGfIQhwAAGWRgSNi2CNgAAAABJRU5ErkJggg==') no-repeat 100% 0;
}
.galleria-theme-miniml .galleria-desc strong{
color:#222;
font-weight:normal;
margin-bottom:5px;
display:block;
}
.galleria-theme-miniml.dark .galleria-desc strong{
color:#eee;
}
.galleria-theme-miniml .galleria-desc p{
margin-bottom:0;
}
.galleria-theme-miniml .galleria-image-nav {
display:none;
}
.galleria-theme-miniml .galleria-thumbnails-container {
position:absolute;
top:0;
bottom:20px;
left:0;
right:0;
background:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGCAYAAADgzO9IAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6RDQ1MkNGMkIzMjNEMTFFMDgxRDE4ODY0MzA2OTQyRjYiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6RDQ1MkNGMkMzMjNEMTFFMDgxRDE4ODY0MzA2OTQyRjYiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpENDUyQ0YyOTMyM0QxMUUwODFEMTg4NjQzMDY5NDJGNiIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpENDUyQ0YyQTMyM0QxMUUwODFEMTg4NjQzMDY5NDJGNiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PvrLLSYAAAArSURBVHjaYhQSEvoiLi7+iQEIXr58yQdjM2ETBLGZsAmC2EzYBMkzCiDAACMlLm1pB1VDAAAAAElFTkSuQmCC');
z-index:2;
overflow:hidden;
visibility: hidden;
}
.galleria-theme-miniml .galleria-thumbnails {
margin:10px;
}
.galleria-theme-miniml .galleria-thumbnails .galleria-image {
height: 50px;
width:80px;
background: #d77;
margin: 2px 8px 8px 2px;
float: left;
cursor: pointer;
-moz-box-shadow: 0 0 2px rgb(0,0,0);
-webkit-box-shadow: 0 0 2px rgb(0,0,0);
box-shadow: 0 0 2px rgb(0,0,0);
}
.galleria-theme-miniml.notouch .galleria-thumbnails .galleria-image img:hover,
.galleria-theme-miniml.touch .galleria-thumbnails .galleria-image img:active {
opacity:.1!important;
filter: alpha(opacity=10)!important;
}

View File

@@ -0,0 +1,171 @@
/**
* Galleria Miniml Theme
*
*
* Copyright (c) 2010 - 2019 worse is better UG
* Licensed under the MIT License.
*/
( function( window, factory ) {
if ( typeof define == 'function' && define.amd ) {
define( ['../galleria', 'jquery' ], function( Galleria, jQuery ) {
return factory( window, Galleria, jQuery );
});
} else if ( typeof module == 'object' && module.exports ) {
module.exports = factory(
window,
require('galleria'),
require('jquery')
);
} else {
factory(
window,
window.Galleria,
window.jQuery
);
}
}( window, function factory( window, Galleria, $ ) {
/*global jQuery, Galleria */
Galleria.addTheme({
name: 'miniml',
version: 1.60,
author: 'Galleria',
css: 'galleria.miniml.css',
// begin site script
defaults: {
transition: 'pulse',
thumbCrop: true,
imageCrop: true,
carousel: false,
imagePan: true,
clicknext:true,
_locale: {
enter_fullscreen: 'Enter fullscreen',
exit_fullscreen: 'Exit fullscreen',
click_to_close: 'Click to close',
show_thumbnails: 'Show thumbnails',
show_info: 'Show info'
}
},
init: function(options) {
Galleria.requires( 1.6, 'This version of Miniml theme requires Galleria version 1.6 or later');
var self = this,
FULLSCREEN = false,
i,
dotswidth = 0,
$desc,
$loader,
$thumbnails;
// add some elements
this.addElement('desc','dots','thumbs','fs','more');
this.append({
'container' : ['desc','dots','thumbs','fs','info-description','more']
});
$thumbnails = this.$('thumbnails-container').hide().css('visibility', 'visible');
var createDiv = function(i) {
return $('<div>').html('&#8226;').on('click:fast', (function(i) {
return function(e) {
e.preventDefault();
self.show(i);
};
}( i )));
};
for (i = 0; i < this.getDataLength(); i++ ) {
this.$('dots').append( createDiv(i) );
}
dotswidth = this.$('dots').outerWidth();
$desc = this.$('desc').hide().hover(function() {
$(this).addClass('hover');
}, function() {
$(this).removeClass('hover');
}).on('click:fast', function() {
$(this).hide();
});
$loader = this.$('loader');
this.bindTooltip({
fs: function() {
return FULLSCREEN ? options._locale.exit_fullscreen : options._locale.enter_fullscreen;
},
desc: options._locale.click_to_close,
more: options._locale.show_info,
thumbs: options._locale.show_thumbnails
});
this.bind('loadstart', function(e) {
if (!e.cached) {
this.$('loader').show().fadeTo(200, 0.4);
}
});
this.bind('loadfinish', function(e) {
var title = self.getData().title,
desc = self.getData().description;
$loader.fadeOut(200);
this.$('dots').children('div').eq( e.index ).addClass('active')
.siblings('.active').removeClass('active');
if (title && desc) {
$desc.empty().append(
'<strong>'+ title + '</strong>',
'<p>' + desc + '</p>'
)
this.$('more').show();
} else {
this.$('more').hide();
}
$thumbnails.fadeOut( options.fadeSpeed );
self.$('thumbs').removeClass('active');
});
this.bind('thumbnail', function(e) {
$(e.thumbTarget).hover(function() {
self.setInfo(e.index);
},function() {
self.setInfo();
});
});
this.$('fs').on('click:fast', function() {
self.toggleFullscreen();
FULLSCREEN = !FULLSCREEN;
});
this.$('thumbs').on('click:fast', function(e) {
e.preventDefault();
$thumbnails.toggle();
$(this).toggleClass('active');
$desc.hide();
});
this.$('more').on('click:fast', function() {
$desc.toggle();
});
this.$('info').css({
width: this.getStageWidth() - dotswidth - 30,
left: dotswidth + 10
});
}
// end site script
});
return Galleria;
}));

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,10 @@
/**
* Galleria - v1.6.1 2019-10-17
*
*
* Copyright (c) 2010 - 2019 worse is better UG
* Licensed under the MIT License.
*/
!function(a,b){"function"==typeof define&&define.amd?define(["../galleria","jquery"],function(c,d){return b(a,c,d)}):"object"==typeof module&&module.exports?module.exports=b(a,require("galleria"),require("jquery")):b(a,a.Galleria,a.jQuery)}(window,function(a,b,c){return b.addTheme({name:"miniml",version:1.6,author:"Galleria",css:"galleria.miniml.css",defaults:{transition:"pulse",thumbCrop:!0,imageCrop:!0,carousel:!1,imagePan:!0,clicknext:!0,_locale:{enter_fullscreen:"Enter fullscreen",exit_fullscreen:"Exit fullscreen",click_to_close:"Click to close",show_thumbnails:"Show thumbnails",show_info:"Show info"}},init:function(a){b.requires(1.6,"This version of Miniml theme requires Galleria version 1.6 or later");var d,e,f,g,h=this,i=!1,j=0;this.addElement("desc","dots","thumbs","fs","more"),this.append({container:["desc","dots","thumbs","fs","info-description","more"]}),g=this.$("thumbnails-container").hide().css("visibility","visible");for(d=0;d<this.getDataLength();d++)this.$("dots").append(function(a){return c("<div>").html("&#8226;").on("click:fast",function(a){return function(b){b.preventDefault(),h.show(a)}}(a))}(d));j=this.$("dots").outerWidth(),e=this.$("desc").hide().hover(function(){c(this).addClass("hover")},function(){c(this).removeClass("hover")}).on("click:fast",function(){c(this).hide()}),f=this.$("loader"),this.bindTooltip({fs:function(){return i?a._locale.exit_fullscreen:a._locale.enter_fullscreen},desc:a._locale.click_to_close,more:a._locale.show_info,thumbs:a._locale.show_thumbnails}),this.bind("loadstart",function(a){a.cached||this.$("loader").show().fadeTo(200,.4)}),this.bind("loadfinish",function(b){var c=h.getData().title,d=h.getData().description;f.fadeOut(200),this.$("dots").children("div").eq(b.index).addClass("active").siblings(".active").removeClass("active"),c&&d?(e.empty().append("<strong>"+c+"</strong>","<p>"+d+"</p>"),this.$("more").show()):this.$("more").hide(),g.fadeOut(a.fadeSpeed),h.$("thumbs").removeClass("active")}),this.bind("thumbnail",function(a){c(a.thumbTarget).hover(function(){h.setInfo(a.index)},function(){h.setInfo()})}),this.$("fs").on("click:fast",function(){h.toggleFullscreen(),i=!i}),this.$("thumbs").on("click:fast",function(a){a.preventDefault(),g.toggle(),c(this).toggleClass("active"),e.hide()}),this.$("more").on("click:fast",function(){e.toggle()}),this.$("info").css({width:this.getStageWidth()-j-30,left:j+10})}}),b});

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,301 @@
/**
* Galleria Twelve Theme
*
* Copyright (c) 2010 - 2019 worse is better UG
* Licensed under the MIT License.
*/
( function( window, factory ) {
if ( typeof define == 'function' && define.amd ) {
define( ['../galleria', 'jquery' ], function( Galleria, jQuery ) {
return factory( window, Galleria, jQuery );
});
} else if ( typeof module == 'object' && module.exports ) {
module.exports = factory(
window,
require('galleria'),
require('jquery')
);
} else {
factory(
window,
window.Galleria,
window.jQuery
);
}
}( window, function factory( window, Galleria, $ ) {
Galleria.addTheme({
name: 'twelve',
version: 1.60,
author: 'Galleria',
css: 'galleria.twelve.css',
// begin site script
defaults: {
transition: 'pulse',
transitionSpeed: 500,
imageCrop: true,
thumbCrop: true,
carousel: false,
// theme specific defaults:
_locale: {
show_thumbnails: 'Show thumbnails',
hide_thumbnails: 'Hide thumbnails',
play: 'Play slideshow',
pause: 'Pause slideshow',
enter_fullscreen: 'Enter fullscreen',
exit_fullscreen: 'Exit fullscreen',
popout_image: 'Popout image',
showing_image: 'Showing image %s of %s'
},
_showFullscreen: true,
_showPopout: true,
_showProgress: true,
_showTooltip: true
},
init: function(options) {
Galleria.requires( 1.6, 'This version of Twelve theme requires Galleria version 1.6 or later');
// add some elements
this.addElement('bar','fullscreen','play','popout','thumblink','s1','s2','s3','s4','progress');
this.append({
'stage' : 'progress',
'container': ['bar','tooltip'],
'bar' : ['fullscreen','play','popout','thumblink','info','s1','s2','s3','s4']
});
this.prependChild('info','counter');
// copy the scope
var gallery = this,
// cache some stuff
thumbs = this.$('thumbnails-container'),
thumb_link = this.$('thumblink'),
fs_link = this.$('fullscreen'),
play_link = this.$('play'),
pop_link = this.$('popout'),
bar = this.$('bar'),
progress = this.$('progress'),
transition = options.transition,
lang = options._locale,
// statics
OPEN = false,
FULLSCREEN = false,
PLAYING = !!options.autoplay,
CONTINUE = false,
// helper functions
scaleThumbs = function() {
thumbs.height( gallery.getStageHeight() ).width( gallery.getStageWidth() ).css('top', OPEN ? 0 : gallery.getStageHeight()+30 );
},
toggleThumbs = function(e) {
if (OPEN && CONTINUE) {
gallery.play();
} else {
CONTINUE = PLAYING;
gallery.pause();
}
Galleria.utils.animate(thumbs, { top: OPEN ? gallery.getStageHeight()+30 : 0 } , {
easing:'galleria',
duration:400,
complete: function() {
gallery.defineTooltip('thumblink', OPEN ? lang.show_thumbnails : lang.hide_thumbnails);
thumb_link[OPEN ? 'removeClass' : 'addClass']('open');
OPEN = !OPEN;
}
});
};
// scale the thumbnail container
scaleThumbs();
// bind the tooltips
if (options._showTooltip) {
gallery.bindTooltip({
'thumblink': lang.show_thumbnails,
'fullscreen': lang.enter_fullscreen,
'play': function() {
return PLAYING ? lang.pause : lang.play;
},
'popout': lang.popout_image,
'caption': function() {
var data = gallery.getData();
var str = '';
if (data) {
if (data.title && data.title.length) {
str+='<strong>'+data.title+'</strong>';
}
if (data.description && data.description.length) {
str+='<br>'+data.description;
}
}
return str;
},
'counter': function() {
return lang.showing_image.replace( /\%s/, gallery.getIndex() + 1 ).replace( /\%s/, gallery.getDataLength() );
}
});
}
if ( !options.showInfo ) {
this.$( 'info' ).hide();
}
// bind galleria events
this.bind( 'play', function() {
PLAYING = true;
play_link.addClass('playing');
});
this.bind( 'pause', function() {
PLAYING = false;
play_link.removeClass('playing');
progress.width(0);
});
if (options._showProgress) {
this.bind( 'progress', function(e) {
progress.width( e.percent/100 * this.getStageWidth() );
});
}
this.bind( 'loadstart', function(e) {
if (!e.cached) {
this.$('loader').show();
}
});
this.bind( 'loadfinish', function(e) {
progress.width(0);
this.$('loader').hide();
this.refreshTooltip('counter','caption');
});
this.bind( 'thumbnail', function(e) {
$(e.thumbTarget).hover(function() {
gallery.setInfo(e.thumbOrder);
gallery.setCounter(e.thumbOrder);
}, function() {
gallery.setInfo();
gallery.setCounter();
}).on('click:fast', function() {
toggleThumbs();
});
});
this.bind( 'fullscreen_enter', function(e) {
FULLSCREEN = true;
gallery.setOptions('transition', false);
fs_link.addClass('open');
bar.css('bottom',0);
this.defineTooltip('fullscreen', lang.exit_fullscreen);
if ( !Galleria.TOUCH ) {
this.addIdleState(bar, { bottom: -31 });
}
});
this.bind( 'fullscreen_exit', function(e) {
FULLSCREEN = false;
Galleria.utils.clearTimer('bar');
gallery.setOptions('transition',transition);
fs_link.removeClass('open');
bar.css('bottom',0);
this.defineTooltip('fullscreen', lang.enter_fullscreen);
if ( !Galleria.TOUCH ) {
this.removeIdleState(bar, { bottom:-31 });
}
});
this.bind( 'rescale', scaleThumbs);
if ( !Galleria.TOUCH ) {
this.addIdleState(this.get('image-nav-left'), {left:-36});
this.addIdleState(this.get('image-nav-right'), {right:-36});
}
// bind thumblink
thumb_link.on('click:fast', toggleThumbs );
if ( !options.thumbnails ) {
thumb_link.hide();
play_link.css('left', 0);
this.$('s2').hide();
this.$('info').css('left', 41);
}
// bind popup
if (options._showPopout) {
pop_link.on('click:fast', function(e) {
gallery.openLightbox();
e.preventDefault();
});
} else {
pop_link.remove();
if (options._showFullscreen) {
this.$('s4').remove();
this.$('info').css('right',40);
fs_link.css('right',0);
}
}
// bind play button
play_link.on('click:fast', function() {
//gallery.defineTooltip('play', PLAYING ? lang.play : lang.pause);
if (PLAYING) {
gallery.pause();
} else {
if (OPEN) {
thumb_link.trigger('click:fast');
}
gallery.play();
}
});
// bind fullscreen
if (options._showFullscreen) {
fs_link.on('click:fast', function(e) {
if (FULLSCREEN) {
gallery.exitFullscreen();
} else {
gallery.enterFullscreen();
}
e.preventDefault();
});
} else {
fs_link.remove();
if (options._show_popout) {
this.$('s4').remove();
this.$('info').css('right',40);
pop_link.css('right',0);
}
}
if (!options._showFullscreen && !options._showPopout) {
this.$('s3,s4').remove();
this.$('info').css('right',10);
}
if (options.autoplay) {
this.trigger( 'play' );
}
}
// end site script
});
return Galleria;
}));

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,10 @@
/**
* Galleria - v1.6.1 2019-10-17
*
*
* Copyright (c) 2010 - 2019 worse is better UG
* Licensed under the MIT License.
*/
!function(a,b){"function"==typeof define&&define.amd?define(["../galleria","jquery"],function(c,d){return b(a,c,d)}):"object"==typeof module&&module.exports?module.exports=b(a,require("galleria"),require("jquery")):b(a,a.Galleria,a.jQuery)}(window,function(a,b,c){return b.addTheme({name:"twelve",version:1.6,author:"Galleria",css:"galleria.twelve.css",defaults:{transition:"pulse",transitionSpeed:500,imageCrop:!0,thumbCrop:!0,carousel:!1,_locale:{show_thumbnails:"Show thumbnails",hide_thumbnails:"Hide thumbnails",play:"Play slideshow",pause:"Pause slideshow",enter_fullscreen:"Enter fullscreen",exit_fullscreen:"Exit fullscreen",popout_image:"Popout image",showing_image:"Showing image %s of %s"},_showFullscreen:!0,_showPopout:!0,_showProgress:!0,_showTooltip:!0},init:function(a){b.requires(1.6,"This version of Twelve theme requires Galleria version 1.6 or later"),this.addElement("bar","fullscreen","play","popout","thumblink","s1","s2","s3","s4","progress"),this.append({stage:"progress",container:["bar","tooltip"],bar:["fullscreen","play","popout","thumblink","info","s1","s2","s3","s4"]}),this.prependChild("info","counter");var d=this,e=this.$("thumbnails-container"),f=this.$("thumblink"),g=this.$("fullscreen"),h=this.$("play"),i=this.$("popout"),j=this.$("bar"),k=this.$("progress"),l=a.transition,m=a._locale,n=!1,o=!1,p=!!a.autoplay,q=!1,r=function(){e.height(d.getStageHeight()).width(d.getStageWidth()).css("top",n?0:d.getStageHeight()+30)},s=function(a){n&&q?d.play():(q=p,d.pause()),b.utils.animate(e,{top:n?d.getStageHeight()+30:0},{easing:"galleria",duration:400,complete:function(){d.defineTooltip("thumblink",n?m.show_thumbnails:m.hide_thumbnails),f[n?"removeClass":"addClass"]("open"),n=!n}})};r(),a._showTooltip&&d.bindTooltip({thumblink:m.show_thumbnails,fullscreen:m.enter_fullscreen,play:function(){return p?m.pause:m.play},popout:m.popout_image,caption:function(){var a=d.getData(),b="";return a&&(a.title&&a.title.length&&(b+="<strong>"+a.title+"</strong>"),a.description&&a.description.length&&(b+="<br>"+a.description)),b},counter:function(){return m.showing_image.replace(/\%s/,d.getIndex()+1).replace(/\%s/,d.getDataLength())}}),a.showInfo||this.$("info").hide(),this.bind("play",function(){p=!0,h.addClass("playing")}),this.bind("pause",function(){p=!1,h.removeClass("playing"),k.width(0)}),a._showProgress&&this.bind("progress",function(a){k.width(a.percent/100*this.getStageWidth())}),this.bind("loadstart",function(a){a.cached||this.$("loader").show()}),this.bind("loadfinish",function(a){k.width(0),this.$("loader").hide(),this.refreshTooltip("counter","caption")}),this.bind("thumbnail",function(a){c(a.thumbTarget).hover(function(){d.setInfo(a.thumbOrder),d.setCounter(a.thumbOrder)},function(){d.setInfo(),d.setCounter()}).on("click:fast",function(){s()})}),this.bind("fullscreen_enter",function(a){o=!0,d.setOptions("transition",!1),g.addClass("open"),j.css("bottom",0),this.defineTooltip("fullscreen",m.exit_fullscreen),b.TOUCH||this.addIdleState(j,{bottom:-31})}),this.bind("fullscreen_exit",function(a){o=!1,b.utils.clearTimer("bar"),d.setOptions("transition",l),g.removeClass("open"),j.css("bottom",0),this.defineTooltip("fullscreen",m.enter_fullscreen),b.TOUCH||this.removeIdleState(j,{bottom:-31})}),this.bind("rescale",r),b.TOUCH||(this.addIdleState(this.get("image-nav-left"),{left:-36}),this.addIdleState(this.get("image-nav-right"),{right:-36})),f.on("click:fast",s),a.thumbnails||(f.hide(),h.css("left",0),this.$("s2").hide(),this.$("info").css("left",41)),a._showPopout?i.on("click:fast",function(a){d.openLightbox(),a.preventDefault()}):(i.remove(),a._showFullscreen&&(this.$("s4").remove(),this.$("info").css("right",40),g.css("right",0))),h.on("click:fast",function(){p?d.pause():(n&&f.trigger("click:fast"),d.play())}),a._showFullscreen?g.on("click:fast",function(a){o?d.exitFullscreen():d.enterFullscreen(),a.preventDefault()}):(g.remove(),a._show_popout&&(this.$("s4").remove(),this.$("info").css("right",40),i.css("right",0))),a._showFullscreen||a._showPopout||(this.$("s3,s4").remove(),this.$("info").css("right",10)),a.autoplay&&this.trigger("play")}}),b});

View File

@@ -69,7 +69,7 @@
<script src="{{ theme.url }}/leaflet/leaflet-providers.js"></script>
{% endif %}
<script src="{{ theme.url }}/galleria.min.js"></script>
<script src="{{ theme.url }}/themes/classic/galleria.classic.min.js"></script>
<script src="{{ theme.url }}/themes/{{ settings.galleria_theme }}/galleria.{{ settings.galleria_theme }}.min.js"></script>
<script src="{{ theme.url }}/plugins/history/galleria.history.min.js"></script>
<script>
var data = [

View File

@@ -10,7 +10,7 @@
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="{{ theme.url }}/css/normalize.css">
<link rel="stylesheet" href="{{ theme.url }}/themes/classic/galleria.classic.css">
<link rel="stylesheet" href="{{ theme.url }}/themes/{{ settings.galleria_theme }}/galleria.{{ settings.galleria_theme }}.css">
<link rel="stylesheet" href="{{ theme.url }}/css/style.css">
{% block extra_head %}{% endblock extra_head %}
{% include 'analytics.html' %}

View File

@@ -35,4 +35,5 @@ atom_feed = {'feed_url': 'http://127.0.0.1:8000/feed.atom', 'nb_items': 10}
# theme = 'photoswipe'
# theme = 'galleria'
# thumb_size = (280, 210)
# galleria_theme = 'folio'
# show_map = True