[Pkg-javascript-commits] [rainloop] 03/06: Unbundled node-lightgallery and node-opentip.
Daniel Ring
techwolf-guest at moszumanska.debian.org
Wed Jan 3 10:42:10 UTC 2018
This is an automated email from the git hooks/post-receive script.
techwolf-guest pushed a commit to branch master
in repository rainloop.
commit 48e4757756561fa168aabb587ce8c5816e7a8586
Author: Daniel Ring <dring at wolfishly.me>
Date: Mon Jan 1 02:18:02 2018 -0800
Unbundled node-lightgallery and node-opentip.
---
debian/Makefile | 22 +-
debian/control | 2 +
debian/copyright | 8 -
debian/lib/lightgallery/fonts/lg.eot | Bin 2904 -> 0 bytes
debian/lib/lightgallery/fonts/lg.svg | 42 -
debian/lib/lightgallery/fonts/lg.ttf | Bin 2760 -> 0 bytes
debian/lib/lightgallery/fonts/lg.woff | Bin 2836 -> 0 bytes
debian/lib/lightgallery/lg-autoplay.js | 190 ----
debian/lib/lightgallery/lg-fullscreen.js | 97 --
debian/lib/lightgallery/lg-thumbnail.js | 454 --------
debian/lib/lightgallery/lg-transitions.css | 779 -------------
debian/lib/lightgallery/lg-zoom.js | 477 --------
debian/lib/lightgallery/lightgallery.css | 846 --------------
debian/lib/lightgallery/lightgallery.js | 1317 ----------------------
debian/lib/opentip/adapter-jquery.js | 168 ---
debian/lib/opentip/opentip.css | 278 -----
debian/lib/opentip/opentip.js | 1665 ----------------------------
17 files changed, 13 insertions(+), 6332 deletions(-)
diff --git a/debian/Makefile b/debian/Makefile
index 4ae0d68..7a036fd 100644
--- a/debian/Makefile
+++ b/debian/Makefile
@@ -49,10 +49,10 @@ cssMainCSS = \
vendors/jquery-letterfx/jquery-letterfx.css \
vendors/inputosaurus/inputosaurus.css \
vendors/flags/flags-fixed.css \
- debian/lib/opentip/opentip.css \
+ /usr/lib/nodejs/opentip/css/opentip.css \
/usr/lib/nodejs/pikaday/pikaday.css \
- debian/lib/lightgallery/lightgallery.css \
- debian/lib/lightgallery/lg-transitions.css \
+ /usr/lib/nodejs/lightgallery/dist/css/lightgallery.css \
+ /usr/lib/nodejs/lightgallery/dist/css/lg-transitions.css \
debian/lib/progressjs/progressjs.css \
dev/Styles/_progressjs.css
@@ -120,13 +120,13 @@ jsLibs = \
debian/lib/knockout-sortable/knockout-sortable.js \
/usr/lib/nodejs/simplestatemanager/ssm.min.js \
/usr/lib/nodejs/autolinker/Autolinker.min.js \
- debian/lib/opentip/opentip.js \
- debian/lib/opentip/adapter-jquery.js \
- debian/lib/lightgallery/lightgallery.js \
- debian/lib/lightgallery/lg-fullscreen.js \
- debian/lib/lightgallery/lg-thumbnail.js \
- debian/lib/lightgallery/lg-zoom.js \
- debian/lib/lightgallery/lg-autoplay.js \
+ /usr/lib/nodejs/opentip/lib/opentip.js \
+ /usr/lib/nodejs/opentip/lib/adapter-jquery.js \
+ /usr/lib/nodejs/lightgallery/dist/js/lightgallery.js \
+ /usr/lib/nodejs/lightgallery/dist/js/lg-fullscreen.js \
+ /usr/lib/nodejs/lightgallery/dist/js/lg-thumbnail.js \
+ /usr/lib/nodejs/lightgallery/dist/js/lg-zoom.js \
+ /usr/lib/nodejs/lightgallery/dist/js/lg-autoplay.js \
/usr/lib/nodejs/ifvisible/ifvisible.js
.PHONY: jsLibs
@@ -173,7 +173,7 @@ moment: | clean
.PHONY: lightgallery
lightgallery: | clean
- cp debian/lib/lightgallery/fonts/lg.* rainloop/v/0.0.0/static/css/fonts/
+ cp /usr/lib/nodejs/lightgallery/fonts/lg.* rainloop/v/0.0.0/static/css/fonts/
.PHONY: fontastic
fontastic: | clean
diff --git a/debian/control b/debian/control
index d456829..45d4320 100644
--- a/debian/control
+++ b/debian/control
@@ -21,7 +21,9 @@ Build-Depends:
, node-autolinker
, node-classnames
, node-knockout
+ , node-lightgallery
, node-normalize.css
+ , node-opentip
, node-pikaday
, node-simplestatemanager
, node-jquery (>= 2.2.4), node-jquery (<< 3.0.0)
diff --git a/debian/copyright b/debian/copyright
index 9c14b78..d1e9d56 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -102,18 +102,10 @@ Files: debian/lib/knockout-sortable/*
Copyright: 2016 Ryan Niemeyer
License: MIT
-Files: debian/lib/lightgallery/*
-Copyright: 2016 Sachin N.
-License: Apache-2.0
-
Files: debian/lib/openpgp/*
Copyright: 2017 Bart Butler, Tankred Hase, and Thomas Oberndorfer
License: LGPL-3
-Files: debian/lib/opentip/*
-Copyright: 2012 Matias Meno
-License: MIT
-
Files: debian/lib/progressjs/*
Copyright: 2013 Afshin Mehrabani
License: MIT
diff --git a/debian/lib/lightgallery/fonts/lg.eot b/debian/lib/lightgallery/fonts/lg.eot
deleted file mode 100644
index 1eb3916..0000000
Binary files a/debian/lib/lightgallery/fonts/lg.eot and /dev/null differ
diff --git a/debian/lib/lightgallery/fonts/lg.svg b/debian/lib/lightgallery/fonts/lg.svg
deleted file mode 100644
index 80ae410..0000000
--- a/debian/lib/lightgallery/fonts/lg.svg
+++ /dev/null
@@ -1,42 +0,0 @@
-<?xml version="1.0" standalone="no"?>
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
-<svg xmlns="http://www.w3.org/2000/svg">
-<metadata>
-<json>
-<![CDATA[
-{
- "fontFamily": "lg",
- "majorVersion": 1,
- "minorVersion": 0,
- "fontURL": "https://github.com/sachinchoolur/lightGallery",
- "copyright": "sachin",
- "license": "MLT",
- "licenseURL": "http://opensource.org/licenses/MIT",
- "version": "Version 1.0",
- "fontId": "lg",
- "psName": "lg",
- "subFamily": "Regular",
- "fullName": "lg",
- "description": "Font generated by IcoMoon."
-}
-]]>
-</json>
-</metadata>
-<defs>
-<font id="lg" horiz-adv-x="1024">
-<font-face units-per-em="1024" ascent="960" descent="-64" />
-<missing-glyph horiz-adv-x="1024" />
-<glyph unicode=" " horiz-adv-x="512" d="" />
-<glyph unicode="" glyph-name="pause_circle_outline" data-tags="pause_circle_outline" d="M554 256.667v340h86v-340h-86zM512 84.667q140 0 241 101t101 241-101 241-241 101-241-101-101-241 101-241 241-101zM512 852.667q176 0 301-125t125-301-125-301-301-125-301 125-125 301 125 301 301 125zM384 256.667v340h86v-340h-86z" />
-<glyph unicode="" glyph-name="play_circle_outline" data-tags="play_circle_outline" d="M512 84.667q140 0 241 101t101 241-101 241-241 101-241-101-101-241 101-241 241-101zM512 852.667q176 0 301-125t125-301-125-301-301-125-301 125-125 301 125 301 301 125zM426 234.667v384l256-192z" />
-<glyph unicode="" glyph-name="stack-2" data-tags="stack-2" d="M384 853.334h426.667q53 0 90.5-37.5t37.5-90.5v-426.667q0-53-37.5-90.5t-90.5-37.5h-426.667q-53 0-90.5 37.5t-37.5 90.5v426.667q0 53 37.5 90.5t90.5 37.5zM170.667 675.334v-547.333q0-17.667 12.5-30.167t30.167-12.5h547.333q-13.333-37.667-46.333-61.5t-74.333-23.833h-426.667q-53 0-90.5 37.5t-37.5 90.5v426.667q0 41.333 23.833 74.333t61.5 46.333zM810.667 768h-426.667q-17.667 0-30.167-12.5t-12.5-30.167v-426.667q0-17.667 12.5-30.1 [...]
-<glyph unicode="" glyph-name="clear" data-tags="clear" d="M810 664.667l-238-238 238-238-60-60-238 238-238-238-60 60 238 238-238 238 60 60 238-238 238 238z" />
-<glyph unicode="" glyph-name="arrow-left" data-tags="arrow-left" d="M426.667 768q17.667 0 30.167-12.5t12.5-30.167q0-18-12.667-30.333l-225.667-225.667h665q17.667 0 30.167-12.5t12.5-30.167-12.5-30.167-30.167-12.5h-665l225.667-225.667q12.667-12.333 12.667-30.333 0-17.667-12.5-30.167t-30.167-12.5q-18 0-30.333 12.333l-298.667 298.667q-12.333 13-12.333 30.333t12.333 30.333l298.667 298.667q12.667 12.333 30.333 12.333z" />
-<glyph unicode="" glyph-name="arrow-right" data-tags="arrow-right" d="M597.333 768q18 0 30.333-12.333l298.667-298.667q12.333-12.333 12.333-30.333t-12.333-30.333l-298.667-298.667q-12.333-12.333-30.333-12.333-18.333 0-30.5 12.167t-12.167 30.5q0 18 12.333 30.333l226 225.667h-665q-17.667 0-30.167 12.5t-12.5 30.167 12.5 30.167 30.167 12.5h665l-226 225.667q-12.333 12.333-12.333 30.333 0 18.333 12.167 30.5t30.5 12.167z" />
-<glyph unicode="" glyph-name="vertical_align_bottom" data-tags="vertical_align_bottom" d="M170 128.667h684v-86h-684v86zM682 384.667l-170-172-170 172h128v426h84v-426h128z" />
-<glyph unicode="" glyph-name="apps" data-tags="apps" d="M682 84.667v172h172v-172h-172zM682 340.667v172h172v-172h-172zM426 596.667v172h172v-172h-172zM682 768.667h172v-172h-172v172zM426 340.667v172h172v-172h-172zM170 340.667v172h172v-172h-172zM170 84.667v172h172v-172h-172zM426 84.667v172h172v-172h-172zM170 596.667v172h172v-172h-172z" />
-<glyph unicode="" glyph-name="fullscreen" data-tags="fullscreen" d="M598 724.667h212v-212h-84v128h-128v84zM726 212.667v128h84v-212h-212v84h128zM214 512.667v212h212v-84h-128v-128h-84zM298 340.667v-128h128v-84h-212v212h84z" />
-<glyph unicode="" glyph-name="fullscreen_exit" data-tags="fullscreen_exit" d="M682 596.667h128v-84h-212v212h84v-128zM598 128.667v212h212v-84h-128v-128h-84zM342 596.667v128h84v-212h-212v84h128zM214 256.667v84h212v-212h-84v128h-128z" />
-<glyph unicode="" glyph-name="zoom_in" data-tags="zoom_in" d="M512 512.667h-86v-86h-42v86h-86v42h86v86h42v-86h86v-42zM406 340.667q80 0 136 56t56 136-56 136-136 56-136-56-56-136 56-136 136-56zM662 340.667l212-212-64-64-212 212v34l-12 12q-76-66-180-66-116 0-197 80t-81 196 81 197 197 81 196-81 80-197q0-104-66-180l12-12h34z" />
-<glyph unicode="" glyph-name="zoom_out" data-tags="zoom_out" d="M298 554.667h214v-42h-214v42zM406 340.667q80 0 136 56t56 136-56 136-136 56-136-56-56-136 56-136 136-56zM662 340.667l212-212-64-64-212 212v34l-12 12q-76-66-180-66-116 0-197 80t-81 196 81 197 197 81 196-81 80-197q0-104-66-180l12-12h34z" />
-</font></defs></svg>
\ No newline at end of file
diff --git a/debian/lib/lightgallery/fonts/lg.ttf b/debian/lib/lightgallery/fonts/lg.ttf
deleted file mode 100644
index d33b8e5..0000000
Binary files a/debian/lib/lightgallery/fonts/lg.ttf and /dev/null differ
diff --git a/debian/lib/lightgallery/fonts/lg.woff b/debian/lib/lightgallery/fonts/lg.woff
deleted file mode 100644
index bd370be..0000000
Binary files a/debian/lib/lightgallery/fonts/lg.woff and /dev/null differ
diff --git a/debian/lib/lightgallery/lg-autoplay.js b/debian/lib/lightgallery/lg-autoplay.js
deleted file mode 100644
index 6c1c9b7..0000000
--- a/debian/lib/lightgallery/lg-autoplay.js
+++ /dev/null
@@ -1,190 +0,0 @@
-/*! lightgallery - v1.2.21 - 2016-06-28
-* http://sachinchoolur.github.io/lightGallery/
-* Copyright (c) 2016 Sachin N; Licensed Apache 2.0 */
-/**
- * Autoplay Plugin
- * @version 1.2.0
- * @author Sachin N - @sachinchoolur
- * @license MIT License (MIT)
- */
-
-(function($, window, document, undefined) {
-
- 'use strict';
-
- var defaults = {
- autoplay: false,
- pause: 5000,
- progressBar: true,
- fourceAutoplay: false,
- autoplayControls: true,
- appendAutoplayControlsTo: '.lg-toolbar'
- };
-
- /**
- * Creates the autoplay plugin.
- * @param {object} element - lightGallery element
- */
- var Autoplay = function(element) {
-
- this.core = $(element).data('lightGallery');
-
- this.$el = $(element);
-
- // Execute only if items are above 1
- if (this.core.$items.length < 2) {
- return false;
- }
-
- this.core.s = $.extend({}, defaults, this.core.s);
- this.interval = false;
-
- // Identify if slide happened from autoplay
- this.fromAuto = true;
-
- // Identify if autoplay canceled from touch/drag
- this.canceledOnTouch = false;
-
- // save fourceautoplay value
- this.fourceAutoplayTemp = this.core.s.fourceAutoplay;
-
- // do not allow progress bar if browser does not support css3 transitions
- if (!this.core.doCss()) {
- this.core.s.progressBar = false;
- }
-
- this.init();
-
- return this;
- };
-
- Autoplay.prototype.init = function() {
- var _this = this;
-
- // append autoplay controls
- if (_this.core.s.autoplayControls) {
- _this.controls();
- }
-
- // Create progress bar
- if (_this.core.s.progressBar) {
- _this.core.$outer.find('.lg').append('<div class="lg-progress-bar"><div class="lg-progress"></div></div>');
- }
-
- // set progress
- _this.progress();
-
- // Start autoplay
- if (_this.core.s.autoplay) {
- _this.startlAuto();
- }
-
- // cancel interval on touchstart and dragstart
- _this.$el.on('onDragstart.lg.tm touchstart.lg.tm', function() {
- if (_this.interval) {
- _this.cancelAuto();
- _this.canceledOnTouch = true;
- }
- });
-
- // restore autoplay if autoplay canceled from touchstart / dragstart
- _this.$el.on('onDragend.lg.tm touchend.lg.tm onSlideClick.lg.tm', function() {
- if (!_this.interval && _this.canceledOnTouch) {
- _this.startlAuto();
- _this.canceledOnTouch = false;
- }
- });
-
- };
-
- Autoplay.prototype.progress = function() {
-
- var _this = this;
- var _$progressBar;
- var _$progress;
-
- _this.$el.on('onBeforeSlide.lg.tm', function() {
-
- // start progress bar animation
- if (_this.core.s.progressBar && _this.fromAuto) {
- _$progressBar = _this.core.$outer.find('.lg-progress-bar');
- _$progress = _this.core.$outer.find('.lg-progress');
- if (_this.interval) {
- _$progress.removeAttr('style');
- _$progressBar.removeClass('lg-start');
- setTimeout(function() {
- _$progress.css('transition', 'width ' + (_this.core.s.speed + _this.core.s.pause) + 'ms ease 0s');
- _$progressBar.addClass('lg-start');
- }, 20);
- }
- }
-
- // Remove setinterval if slide is triggered manually and fourceautoplay is false
- if (!_this.fromAuto && !_this.core.s.fourceAutoplay) {
- _this.cancelAuto();
- }
-
- _this.fromAuto = false;
-
- });
- };
-
- // Manage autoplay via play/stop buttons
- Autoplay.prototype.controls = function() {
- var _this = this;
- var _html = '<span class="lg-autoplay-button lg-icon"></span>';
-
- // Append autoplay controls
- $(this.core.s.appendAutoplayControlsTo).append(_html);
-
- _this.core.$outer.find('.lg-autoplay-button').on('click.lg', function() {
- if ($(_this.core.$outer).hasClass('lg-show-autoplay')) {
- _this.cancelAuto();
- _this.core.s.fourceAutoplay = false;
- } else {
- if (!_this.interval) {
- _this.startlAuto();
- _this.core.s.fourceAutoplay = _this.fourceAutoplayTemp;
- }
- }
- });
- };
-
- // Autostart gallery
- Autoplay.prototype.startlAuto = function() {
- var _this = this;
-
- _this.core.$outer.find('.lg-progress').css('transition', 'width ' + (_this.core.s.speed + _this.core.s.pause) + 'ms ease 0s');
- _this.core.$outer.addClass('lg-show-autoplay');
- _this.core.$outer.find('.lg-progress-bar').addClass('lg-start');
-
- _this.interval = setInterval(function() {
- if (_this.core.index + 1 < _this.core.$items.length) {
- _this.core.index++;
- } else {
- _this.core.index = 0;
- }
-
- _this.fromAuto = true;
- _this.core.slide(_this.core.index, false, false);
- }, _this.core.s.speed + _this.core.s.pause);
- };
-
- // cancel Autostart
- Autoplay.prototype.cancelAuto = function() {
- clearInterval(this.interval);
- this.interval = false;
- this.core.$outer.find('.lg-progress').removeAttr('style');
- this.core.$outer.removeClass('lg-show-autoplay');
- this.core.$outer.find('.lg-progress-bar').removeClass('lg-start');
- };
-
- Autoplay.prototype.destroy = function() {
-
- this.cancelAuto();
- this.core.$outer.find('.lg-progress-bar').remove();
- };
-
- $.fn.lightGallery.modules.autoplay = Autoplay;
-
-})(jQuery, window, document);
diff --git a/debian/lib/lightgallery/lg-fullscreen.js b/debian/lib/lightgallery/lg-fullscreen.js
deleted file mode 100644
index 330d716..0000000
--- a/debian/lib/lightgallery/lg-fullscreen.js
+++ /dev/null
@@ -1,97 +0,0 @@
-/*! lightgallery - v1.2.21 - 2016-06-28
-* http://sachinchoolur.github.io/lightGallery/
-* Copyright (c) 2016 Sachin N; Licensed Apache 2.0 */
-(function($, window, document, undefined) {
-
- 'use strict';
-
- var defaults = {
- fullScreen: true
- };
-
- var Fullscreen = function(element) {
-
- // get lightGallery core plugin data
- this.core = $(element).data('lightGallery');
-
- this.$el = $(element);
-
- // extend module defalut settings with lightGallery core settings
- this.core.s = $.extend({}, defaults, this.core.s);
-
- this.init();
-
- return this;
- };
-
- Fullscreen.prototype.init = function() {
- var fullScreen = '';
- if (this.core.s.fullScreen) {
-
- // check for fullscreen browser support
- if (!document.fullscreenEnabled && !document.webkitFullscreenEnabled &&
- !document.mozFullScreenEnabled && !document.msFullscreenEnabled) {
- return;
- } else {
- fullScreen = '<span class="lg-fullscreen lg-icon"></span>';
- this.core.$outer.find('.lg-toolbar').append(fullScreen);
- this.fullScreen();
- }
- }
- };
-
- Fullscreen.prototype.requestFullscreen = function() {
- var el = document.documentElement;
- if (el.requestFullscreen) {
- el.requestFullscreen();
- } else if (el.msRequestFullscreen) {
- el.msRequestFullscreen();
- } else if (el.mozRequestFullScreen) {
- el.mozRequestFullScreen();
- } else if (el.webkitRequestFullscreen) {
- el.webkitRequestFullscreen();
- }
- };
-
- Fullscreen.prototype.exitFullscreen = function() {
- if (document.exitFullscreen) {
- document.exitFullscreen();
- } else if (document.msExitFullscreen) {
- document.msExitFullscreen();
- } else if (document.mozCancelFullScreen) {
- document.mozCancelFullScreen();
- } else if (document.webkitExitFullscreen) {
- document.webkitExitFullscreen();
- }
- };
-
- // https://developer.mozilla.org/en-US/docs/Web/Guide/API/DOM/Using_full_screen_mode
- Fullscreen.prototype.fullScreen = function() {
- var _this = this;
-
- $(document).on('fullscreenchange.lg webkitfullscreenchange.lg mozfullscreenchange.lg MSFullscreenChange.lg', function() {
- _this.core.$outer.toggleClass('lg-fullscreen-on');
- });
-
- this.core.$outer.find('.lg-fullscreen').on('click.lg', function() {
- if (!document.fullscreenElement &&
- !document.mozFullScreenElement && !document.webkitFullscreenElement && !document.msFullscreenElement) {
- _this.requestFullscreen();
- } else {
- _this.exitFullscreen();
- }
- });
-
- };
-
- Fullscreen.prototype.destroy = function() {
-
- // exit from fullscreen if activated
- this.exitFullscreen();
-
- $(document).off('fullscreenchange.lg webkitfullscreenchange.lg mozfullscreenchange.lg MSFullscreenChange.lg');
- };
-
- $.fn.lightGallery.modules.fullscreen = Fullscreen;
-
-})(jQuery, window, document);
diff --git a/debian/lib/lightgallery/lg-thumbnail.js b/debian/lib/lightgallery/lg-thumbnail.js
deleted file mode 100644
index db22e15..0000000
--- a/debian/lib/lightgallery/lg-thumbnail.js
+++ /dev/null
@@ -1,454 +0,0 @@
-/*! lightgallery - v1.2.21 - 2016-06-28
-* http://sachinchoolur.github.io/lightGallery/
-* Copyright (c) 2016 Sachin N; Licensed Apache 2.0 */
-(function($, window, document, undefined) {
-
- 'use strict';
-
- var defaults = {
- thumbnail: true,
-
- animateThumb: true,
- currentPagerPosition: 'middle',
-
- thumbWidth: 100,
- thumbContHeight: 100,
- thumbMargin: 5,
-
- exThumbImage: false,
- showThumbByDefault: true,
- toogleThumb: true,
- pullCaptionUp: true,
-
- enableThumbDrag: true,
- enableThumbSwipe: true,
- swipeThreshold: 50,
-
- loadYoutubeThumbnail: true,
- youtubeThumbSize: 1,
-
- loadVimeoThumbnail: true,
- vimeoThumbSize: 'thumbnail_small',
-
- loadDailymotionThumbnail: true
- };
-
- var Thumbnail = function(element) {
-
- // get lightGallery core plugin data
- this.core = $(element).data('lightGallery');
-
- // extend module default settings with lightGallery core settings
- this.core.s = $.extend({}, defaults, this.core.s);
-
- this.$el = $(element);
- this.$thumbOuter = null;
- this.thumbOuterWidth = 0;
- this.thumbTotalWidth = (this.core.$items.length * (this.core.s.thumbWidth + this.core.s.thumbMargin));
- this.thumbIndex = this.core.index;
-
- // Thumbnail animation value
- this.left = 0;
-
- this.init();
-
- return this;
- };
-
- Thumbnail.prototype.init = function() {
- var _this = this;
- if (this.core.s.thumbnail && this.core.$items.length > 1) {
- if (this.core.s.showThumbByDefault) {
- setTimeout(function(){
- _this.core.$outer.addClass('lg-thumb-open');
- }, 700);
- }
-
- if (this.core.s.pullCaptionUp) {
- this.core.$outer.addClass('lg-pull-caption-up');
- }
-
- this.build();
- if (this.core.s.animateThumb) {
- if (this.core.s.enableThumbDrag && !this.core.isTouch && this.core.doCss()) {
- this.enableThumbDrag();
- }
-
- if (this.core.s.enableThumbSwipe && this.core.isTouch && this.core.doCss()) {
- this.enableThumbSwipe();
- }
-
- this.thumbClickable = false;
- } else {
- this.thumbClickable = true;
- }
-
- this.toogle();
- this.thumbkeyPress();
- }
- };
-
- Thumbnail.prototype.build = function() {
- var _this = this;
- var thumbList = '';
- var vimeoErrorThumbSize = '';
- var $thumb;
- var html = '<div class="lg-thumb-outer">' +
- '<div class="lg-thumb group">' +
- '</div>' +
- '</div>';
-
- switch (this.core.s.vimeoThumbSize) {
- case 'thumbnail_large':
- vimeoErrorThumbSize = '640';
- break;
- case 'thumbnail_medium':
- vimeoErrorThumbSize = '200x150';
- break;
- case 'thumbnail_small':
- vimeoErrorThumbSize = '100x75';
- }
-
- _this.core.$outer.addClass('lg-has-thumb');
-
- _this.core.$outer.find('.lg').append(html);
-
- _this.$thumbOuter = _this.core.$outer.find('.lg-thumb-outer');
- _this.thumbOuterWidth = _this.$thumbOuter.width();
-
- if (_this.core.s.animateThumb) {
- _this.core.$outer.find('.lg-thumb').css({
- width: _this.thumbTotalWidth + 'px',
- position: 'relative'
- });
- }
-
- if (this.core.s.animateThumb) {
- _this.$thumbOuter.css('height', _this.core.s.thumbContHeight + 'px');
- }
-
- function getThumb(src, thumb, index) {
- var isVideo = _this.core.isVideo(src, index) || {};
- var thumbImg;
- var vimeoId = '';
-
- if (isVideo.youtube || isVideo.vimeo || isVideo.dailymotion) {
- if (isVideo.youtube) {
- if (_this.core.s.loadYoutubeThumbnail) {
- thumbImg = '//img.youtube.com/vi/' + isVideo.youtube[1] + '/' + _this.core.s.youtubeThumbSize + '.jpg';
- } else {
- thumbImg = thumb;
- }
- } else if (isVideo.vimeo) {
- if (_this.core.s.loadVimeoThumbnail) {
- thumbImg = '//i.vimeocdn.com/video/error_' + vimeoErrorThumbSize + '.jpg';
- vimeoId = isVideo.vimeo[1];
- } else {
- thumbImg = thumb;
- }
- } else if (isVideo.dailymotion) {
- if (_this.core.s.loadDailymotionThumbnail) {
- thumbImg = '//www.dailymotion.com/thumbnail/video/' + isVideo.dailymotion[1];
- } else {
- thumbImg = thumb;
- }
- }
- } else {
- thumbImg = thumb;
- }
-
- thumbList += '<div data-vimeo-id="' + vimeoId + '" class="lg-thumb-item" style="width:' + _this.core.s.thumbWidth + 'px; margin-right: ' + _this.core.s.thumbMargin + 'px"><img src="' + thumbImg + '" /></div>';
- vimeoId = '';
- }
-
- if (_this.core.s.dynamic) {
- for (var i = 0; i < _this.core.s.dynamicEl.length; i++) {
- getThumb(_this.core.s.dynamicEl[i].src, _this.core.s.dynamicEl[i].thumb, i);
- }
- } else {
- _this.core.$items.each(function(i) {
-
- if (!_this.core.s.exThumbImage) {
- getThumb($(this).attr('href') || $(this).attr('data-src'), $(this).find('img').attr('src'), i);
- } else {
- getThumb($(this).attr('href') || $(this).attr('data-src'), $(this).attr(_this.core.s.exThumbImage), i);
- }
-
- });
- }
-
- _this.core.$outer.find('.lg-thumb').html(thumbList);
-
- $thumb = _this.core.$outer.find('.lg-thumb-item');
-
- // Load vimeo thumbnails
- $thumb.each(function() {
- var $this = $(this);
- var vimeoVideoId = $this.attr('data-vimeo-id');
-
- if (vimeoVideoId) {
- $.getJSON('//www.vimeo.com/api/v2/video/' + vimeoVideoId + '.json?callback=?', {
- format: 'json'
- }, function(data) {
- $this.find('img').attr('src', data[0][_this.core.s.vimeoThumbSize]);
- });
- }
- });
-
- // manage active class for thumbnail
- $thumb.eq(_this.core.index).addClass('active');
- _this.core.$el.on('onBeforeSlide.lg.tm', function() {
- $thumb.removeClass('active');
- $thumb.eq(_this.core.index).addClass('active');
- });
-
- $thumb.on('click.lg touchend.lg', function() {
- var _$this = $(this);
- setTimeout(function() {
-
- // In IE9 and bellow touch does not support
- // Go to slide if browser does not support css transitions
- if ((_this.thumbClickable && !_this.core.lgBusy) || !_this.core.doCss()) {
- _this.core.index = _$this.index();
- _this.core.slide(_this.core.index, false, true);
- }
- }, 50);
- });
-
- _this.core.$el.on('onBeforeSlide.lg.tm', function() {
- _this.animateThumb(_this.core.index);
- });
-
- $(window).on('resize.lg.thumb orientationchange.lg.thumb', function() {
- setTimeout(function() {
- _this.animateThumb(_this.core.index);
- _this.thumbOuterWidth = _this.$thumbOuter.width();
- }, 200);
- });
-
- };
-
- Thumbnail.prototype.setTranslate = function(value) {
- // jQuery supports Automatic CSS prefixing since jQuery 1.8.0
- this.core.$outer.find('.lg-thumb').css({
- transform: 'translate3d(-' + (value) + 'px, 0px, 0px)'
- });
- };
-
- Thumbnail.prototype.animateThumb = function(index) {
- var $thumb = this.core.$outer.find('.lg-thumb');
- if (this.core.s.animateThumb) {
- var position;
- switch (this.core.s.currentPagerPosition) {
- case 'left':
- position = 0;
- break;
- case 'middle':
- position = (this.thumbOuterWidth / 2) - (this.core.s.thumbWidth / 2);
- break;
- case 'right':
- position = this.thumbOuterWidth - this.core.s.thumbWidth;
- }
- this.left = ((this.core.s.thumbWidth + this.core.s.thumbMargin) * index - 1) - position;
- if (this.left > (this.thumbTotalWidth - this.thumbOuterWidth)) {
- this.left = this.thumbTotalWidth - this.thumbOuterWidth;
- }
-
- if (this.left < 0) {
- this.left = 0;
- }
-
- if (this.core.lGalleryOn) {
- if (!$thumb.hasClass('on')) {
- this.core.$outer.find('.lg-thumb').css('transition-duration', this.core.s.speed + 'ms');
- }
-
- if (!this.core.doCss()) {
- $thumb.animate({
- left: -this.left + 'px'
- }, this.core.s.speed);
- }
- } else {
- if (!this.core.doCss()) {
- $thumb.css('left', -this.left + 'px');
- }
- }
-
- this.setTranslate(this.left);
-
- }
- };
-
- // Enable thumbnail dragging and swiping
- Thumbnail.prototype.enableThumbDrag = function() {
-
- var _this = this;
- var startCoords = 0;
- var endCoords = 0;
- var isDraging = false;
- var isMoved = false;
- var tempLeft = 0;
-
- _this.$thumbOuter.addClass('lg-grab');
-
- _this.core.$outer.find('.lg-thumb').on('mousedown.lg.thumb', function(e) {
- if (_this.thumbTotalWidth > _this.thumbOuterWidth) {
- // execute only on .lg-object
- e.preventDefault();
- startCoords = e.pageX;
- isDraging = true;
-
- // ** Fix for webkit cursor issue https://code.google.com/p/chromium/issues/detail?id=26723
- _this.core.$outer.scrollLeft += 1;
- _this.core.$outer.scrollLeft -= 1;
-
- // *
- _this.thumbClickable = false;
- _this.$thumbOuter.removeClass('lg-grab').addClass('lg-grabbing');
- }
- });
-
- $(window).on('mousemove.lg.thumb', function(e) {
- if (isDraging) {
- tempLeft = _this.left;
- isMoved = true;
- endCoords = e.pageX;
-
- _this.$thumbOuter.addClass('lg-dragging');
-
- tempLeft = tempLeft - (endCoords - startCoords);
-
- if (tempLeft > (_this.thumbTotalWidth - _this.thumbOuterWidth)) {
- tempLeft = _this.thumbTotalWidth - _this.thumbOuterWidth;
- }
-
- if (tempLeft < 0) {
- tempLeft = 0;
- }
-
- // move current slide
- _this.setTranslate(tempLeft);
-
- }
- });
-
- $(window).on('mouseup.lg.thumb', function() {
- if (isMoved) {
- isMoved = false;
- _this.$thumbOuter.removeClass('lg-dragging');
-
- _this.left = tempLeft;
-
- if (Math.abs(endCoords - startCoords) < _this.core.s.swipeThreshold) {
- _this.thumbClickable = true;
- }
-
- } else {
- _this.thumbClickable = true;
- }
-
- if (isDraging) {
- isDraging = false;
- _this.$thumbOuter.removeClass('lg-grabbing').addClass('lg-grab');
- }
- });
-
- };
-
- Thumbnail.prototype.enableThumbSwipe = function() {
- var _this = this;
- var startCoords = 0;
- var endCoords = 0;
- var isMoved = false;
- var tempLeft = 0;
-
- _this.core.$outer.find('.lg-thumb').on('touchstart.lg', function(e) {
- if (_this.thumbTotalWidth > _this.thumbOuterWidth) {
- e.preventDefault();
- startCoords = e.originalEvent.targetTouches[0].pageX;
- _this.thumbClickable = false;
- }
- });
-
- _this.core.$outer.find('.lg-thumb').on('touchmove.lg', function(e) {
- if (_this.thumbTotalWidth > _this.thumbOuterWidth) {
- e.preventDefault();
- endCoords = e.originalEvent.targetTouches[0].pageX;
- isMoved = true;
-
- _this.$thumbOuter.addClass('lg-dragging');
-
- tempLeft = _this.left;
-
- tempLeft = tempLeft - (endCoords - startCoords);
-
- if (tempLeft > (_this.thumbTotalWidth - _this.thumbOuterWidth)) {
- tempLeft = _this.thumbTotalWidth - _this.thumbOuterWidth;
- }
-
- if (tempLeft < 0) {
- tempLeft = 0;
- }
-
- // move current slide
- _this.setTranslate(tempLeft);
-
- }
- });
-
- _this.core.$outer.find('.lg-thumb').on('touchend.lg', function() {
- if (_this.thumbTotalWidth > _this.thumbOuterWidth) {
-
- if (isMoved) {
- isMoved = false;
- _this.$thumbOuter.removeClass('lg-dragging');
- if (Math.abs(endCoords - startCoords) < _this.core.s.swipeThreshold) {
- _this.thumbClickable = true;
- }
-
- _this.left = tempLeft;
- } else {
- _this.thumbClickable = true;
- }
- } else {
- _this.thumbClickable = true;
- }
- });
-
- };
-
- Thumbnail.prototype.toogle = function() {
- var _this = this;
- if (_this.core.s.toogleThumb) {
- _this.core.$outer.addClass('lg-can-toggle');
- _this.$thumbOuter.append('<span class="lg-toogle-thumb lg-icon"></span>');
- _this.core.$outer.find('.lg-toogle-thumb').on('click.lg', function() {
- _this.core.$outer.toggleClass('lg-thumb-open');
- });
- }
- };
-
- Thumbnail.prototype.thumbkeyPress = function() {
- var _this = this;
- $(window).on('keydown.lg.thumb', function(e) {
- if (e.keyCode === 38) {
- e.preventDefault();
- _this.core.$outer.addClass('lg-thumb-open');
- } else if (e.keyCode === 40) {
- e.preventDefault();
- _this.core.$outer.removeClass('lg-thumb-open');
- }
- });
- };
-
- Thumbnail.prototype.destroy = function() {
- if (this.core.s.thumbnail && this.core.$items.length > 1) {
- $(window).off('resize.lg.thumb orientationchange.lg.thumb keydown.lg.thumb');
- this.$thumbOuter.remove();
- this.core.$outer.removeClass('lg-has-thumb');
- }
- };
-
- $.fn.lightGallery.modules.Thumbnail = Thumbnail;
-
-})(jQuery, window, document);
diff --git a/debian/lib/lightgallery/lg-transitions.css b/debian/lib/lightgallery/lg-transitions.css
deleted file mode 100644
index 813e948..0000000
--- a/debian/lib/lightgallery/lg-transitions.css
+++ /dev/null
@@ -1,779 +0,0 @@
-/*! lightgallery - v1.2.21 - 2016-06-28
-* http://sachinchoolur.github.io/lightGallery/
-* Copyright (c) 2016 Sachin N; Licensed Apache 2.0 */
-.lg-css3.lg-zoom-in .lg-item {
- opacity: 0; }
- .lg-css3.lg-zoom-in .lg-item.lg-prev-slide {
- -webkit-transform: scale3d(1.3, 1.3, 1.3);
- transform: scale3d(1.3, 1.3, 1.3); }
- .lg-css3.lg-zoom-in .lg-item.lg-next-slide {
- -webkit-transform: scale3d(1.3, 1.3, 1.3);
- transform: scale3d(1.3, 1.3, 1.3); }
- .lg-css3.lg-zoom-in .lg-item.lg-current {
- -webkit-transform: scale3d(1, 1, 1);
- transform: scale3d(1, 1, 1);
- opacity: 1; }
- .lg-css3.lg-zoom-in .lg-item.lg-prev-slide, .lg-css3.lg-zoom-in .lg-item.lg-next-slide, .lg-css3.lg-zoom-in .lg-item.lg-current {
- -webkit-transition: -webkit-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 1s ease 0s;
- -moz-transition: -moz-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 1s ease 0s;
- -o-transition: -o-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 1s ease 0s;
- transition: transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 1s ease 0s; }
-.lg-css3.lg-zoom-in-big .lg-item {
- opacity: 0; }
- .lg-css3.lg-zoom-in-big .lg-item.lg-prev-slide {
- -webkit-transform: scale3d(2, 2, 2);
- transform: scale3d(2, 2, 2); }
- .lg-css3.lg-zoom-in-big .lg-item.lg-next-slide {
- -webkit-transform: scale3d(2, 2, 2);
- transform: scale3d(2, 2, 2); }
- .lg-css3.lg-zoom-in-big .lg-item.lg-current {
- -webkit-transform: scale3d(1, 1, 1);
- transform: scale3d(1, 1, 1);
- opacity: 1; }
- .lg-css3.lg-zoom-in-big .lg-item.lg-prev-slide, .lg-css3.lg-zoom-in-big .lg-item.lg-next-slide, .lg-css3.lg-zoom-in-big .lg-item.lg-current {
- -webkit-transition: -webkit-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 1s ease 0s;
- -moz-transition: -moz-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 1s ease 0s;
- -o-transition: -o-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 1s ease 0s;
- transition: transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 1s ease 0s; }
-.lg-css3.lg-zoom-out .lg-item {
- opacity: 0; }
- .lg-css3.lg-zoom-out .lg-item.lg-prev-slide {
- -webkit-transform: scale3d(0.7, 0.7, 0.7);
- transform: scale3d(0.7, 0.7, 0.7); }
- .lg-css3.lg-zoom-out .lg-item.lg-next-slide {
- -webkit-transform: scale3d(0.7, 0.7, 0.7);
- transform: scale3d(0.7, 0.7, 0.7); }
- .lg-css3.lg-zoom-out .lg-item.lg-current {
- -webkit-transform: scale3d(1, 1, 1);
- transform: scale3d(1, 1, 1);
- opacity: 1; }
- .lg-css3.lg-zoom-out .lg-item.lg-prev-slide, .lg-css3.lg-zoom-out .lg-item.lg-next-slide, .lg-css3.lg-zoom-out .lg-item.lg-current {
- -webkit-transition: -webkit-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 1s ease 0s;
- -moz-transition: -moz-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 1s ease 0s;
- -o-transition: -o-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 1s ease 0s;
- transition: transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 1s ease 0s; }
-.lg-css3.lg-zoom-out-big .lg-item {
- opacity: 0; }
- .lg-css3.lg-zoom-out-big .lg-item.lg-prev-slide {
- -webkit-transform: scale3d(0, 0, 0);
- transform: scale3d(0, 0, 0); }
- .lg-css3.lg-zoom-out-big .lg-item.lg-next-slide {
- -webkit-transform: scale3d(0, 0, 0);
- transform: scale3d(0, 0, 0); }
- .lg-css3.lg-zoom-out-big .lg-item.lg-current {
- -webkit-transform: scale3d(1, 1, 1);
- transform: scale3d(1, 1, 1);
- opacity: 1; }
- .lg-css3.lg-zoom-out-big .lg-item.lg-prev-slide, .lg-css3.lg-zoom-out-big .lg-item.lg-next-slide, .lg-css3.lg-zoom-out-big .lg-item.lg-current {
- -webkit-transition: -webkit-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 1s ease 0s;
- -moz-transition: -moz-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 1s ease 0s;
- -o-transition: -o-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 1s ease 0s;
- transition: transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 1s ease 0s; }
-.lg-css3.lg-zoom-out-in .lg-item {
- opacity: 0; }
- .lg-css3.lg-zoom-out-in .lg-item.lg-prev-slide {
- -webkit-transform: scale3d(0, 0, 0);
- transform: scale3d(0, 0, 0); }
- .lg-css3.lg-zoom-out-in .lg-item.lg-next-slide {
- -webkit-transform: scale3d(2, 2, 2);
- transform: scale3d(2, 2, 2); }
- .lg-css3.lg-zoom-out-in .lg-item.lg-current {
- -webkit-transform: scale3d(1, 1, 1);
- transform: scale3d(1, 1, 1);
- opacity: 1; }
- .lg-css3.lg-zoom-out-in .lg-item.lg-prev-slide, .lg-css3.lg-zoom-out-in .lg-item.lg-next-slide, .lg-css3.lg-zoom-out-in .lg-item.lg-current {
- -webkit-transition: -webkit-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 1s ease 0s;
- -moz-transition: -moz-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 1s ease 0s;
- -o-transition: -o-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 1s ease 0s;
- transition: transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 1s ease 0s; }
-.lg-css3.lg-zoom-in-out .lg-item {
- opacity: 0; }
- .lg-css3.lg-zoom-in-out .lg-item.lg-prev-slide {
- -webkit-transform: scale3d(2, 2, 2);
- transform: scale3d(2, 2, 2); }
- .lg-css3.lg-zoom-in-out .lg-item.lg-next-slide {
- -webkit-transform: scale3d(0, 0, 0);
- transform: scale3d(0, 0, 0); }
- .lg-css3.lg-zoom-in-out .lg-item.lg-current {
- -webkit-transform: scale3d(1, 1, 1);
- transform: scale3d(1, 1, 1);
- opacity: 1; }
- .lg-css3.lg-zoom-in-out .lg-item.lg-prev-slide, .lg-css3.lg-zoom-in-out .lg-item.lg-next-slide, .lg-css3.lg-zoom-in-out .lg-item.lg-current {
- -webkit-transition: -webkit-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 1s ease 0s;
- -moz-transition: -moz-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 1s ease 0s;
- -o-transition: -o-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 1s ease 0s;
- transition: transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 1s ease 0s; }
-.lg-css3.lg-soft-zoom .lg-item {
- opacity: 0; }
- .lg-css3.lg-soft-zoom .lg-item.lg-prev-slide {
- -webkit-transform: scale3d(1.1, 1.1, 1.1);
- transform: scale3d(1.1, 1.1, 1.1); }
- .lg-css3.lg-soft-zoom .lg-item.lg-next-slide {
- -webkit-transform: scale3d(0.9, 0.9, 0.9);
- transform: scale3d(0.9, 0.9, 0.9); }
- .lg-css3.lg-soft-zoom .lg-item.lg-current {
- -webkit-transform: scale3d(1, 1, 1);
- transform: scale3d(1, 1, 1);
- opacity: 1; }
- .lg-css3.lg-soft-zoom .lg-item.lg-prev-slide, .lg-css3.lg-soft-zoom .lg-item.lg-next-slide, .lg-css3.lg-soft-zoom .lg-item.lg-current {
- -webkit-transition: -webkit-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 1s ease 0s;
- -moz-transition: -moz-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 1s ease 0s;
- -o-transition: -o-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 1s ease 0s;
- transition: transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 1s ease 0s; }
-.lg-css3.lg-scale-up .lg-item {
- opacity: 0; }
- .lg-css3.lg-scale-up .lg-item.lg-prev-slide {
- -moz-transform: scale3d(0.8, 0.8, 0.8) translate3d(0%, 10%, 0);
- -o-transform: scale3d(0.8, 0.8, 0.8) translate3d(0%, 10%, 0);
- -ms-transform: scale3d(0.8, 0.8, 0.8) translate3d(0%, 10%, 0);
- -webkit-transform: scale3d(0.8, 0.8, 0.8) translate3d(0%, 10%, 0);
- transform: scale3d(0.8, 0.8, 0.8) translate3d(0%, 10%, 0); }
- .lg-css3.lg-scale-up .lg-item.lg-next-slide {
- -moz-transform: scale3d(0.8, 0.8, 0.8) translate3d(0%, 10%, 0);
- -o-transform: scale3d(0.8, 0.8, 0.8) translate3d(0%, 10%, 0);
- -ms-transform: scale3d(0.8, 0.8, 0.8) translate3d(0%, 10%, 0);
- -webkit-transform: scale3d(0.8, 0.8, 0.8) translate3d(0%, 10%, 0);
- transform: scale3d(0.8, 0.8, 0.8) translate3d(0%, 10%, 0); }
- .lg-css3.lg-scale-up .lg-item.lg-current {
- -moz-transform: scale3d(1, 1, 1) translate3d(0, 0, 0);
- -o-transform: scale3d(1, 1, 1) translate3d(0, 0, 0);
- -ms-transform: scale3d(1, 1, 1) translate3d(0, 0, 0);
- -webkit-transform: scale3d(1, 1, 1) translate3d(0, 0, 0);
- transform: scale3d(1, 1, 1) translate3d(0, 0, 0);
- opacity: 1; }
- .lg-css3.lg-scale-up .lg-item.lg-prev-slide, .lg-css3.lg-scale-up .lg-item.lg-next-slide, .lg-css3.lg-scale-up .lg-item.lg-current {
- -webkit-transition: -webkit-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 1s ease 0s;
- -moz-transition: -moz-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 1s ease 0s;
- -o-transition: -o-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 1s ease 0s;
- transition: transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 1s ease 0s; }
-.lg-css3.lg-slide-circular .lg-item {
- opacity: 0; }
- .lg-css3.lg-slide-circular .lg-item.lg-prev-slide {
- -moz-transform: scale3d(0, 0, 0) translate3d(-100%, 0, 0);
- -o-transform: scale3d(0, 0, 0) translate3d(-100%, 0, 0);
- -ms-transform: scale3d(0, 0, 0) translate3d(-100%, 0, 0);
- -webkit-transform: scale3d(0, 0, 0) translate3d(-100%, 0, 0);
- transform: scale3d(0, 0, 0) translate3d(-100%, 0, 0); }
- .lg-css3.lg-slide-circular .lg-item.lg-next-slide {
- -moz-transform: scale3d(0, 0, 0) translate3d(100%, 0, 0);
- -o-transform: scale3d(0, 0, 0) translate3d(100%, 0, 0);
- -ms-transform: scale3d(0, 0, 0) translate3d(100%, 0, 0);
- -webkit-transform: scale3d(0, 0, 0) translate3d(100%, 0, 0);
- transform: scale3d(0, 0, 0) translate3d(100%, 0, 0); }
- .lg-css3.lg-slide-circular .lg-item.lg-current {
- -moz-transform: scale3d(1, 1, 1) translate3d(0, 0, 0);
- -o-transform: scale3d(1, 1, 1) translate3d(0, 0, 0);
- -ms-transform: scale3d(1, 1, 1) translate3d(0, 0, 0);
- -webkit-transform: scale3d(1, 1, 1) translate3d(0, 0, 0);
- transform: scale3d(1, 1, 1) translate3d(0, 0, 0);
- opacity: 1; }
- .lg-css3.lg-slide-circular .lg-item.lg-prev-slide, .lg-css3.lg-slide-circular .lg-item.lg-next-slide, .lg-css3.lg-slide-circular .lg-item.lg-current {
- -webkit-transition: -webkit-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 1s ease 0s;
- -moz-transition: -moz-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 1s ease 0s;
- -o-transition: -o-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 1s ease 0s;
- transition: transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 1s ease 0s; }
-.lg-css3.lg-slide-circular-up .lg-item {
- opacity: 0; }
- .lg-css3.lg-slide-circular-up .lg-item.lg-prev-slide {
- -moz-transform: scale3d(0, 0, 0) translate3d(-100%, -100%, 0);
- -o-transform: scale3d(0, 0, 0) translate3d(-100%, -100%, 0);
- -ms-transform: scale3d(0, 0, 0) translate3d(-100%, -100%, 0);
- -webkit-transform: scale3d(0, 0, 0) translate3d(-100%, -100%, 0);
- transform: scale3d(0, 0, 0) translate3d(-100%, -100%, 0); }
- .lg-css3.lg-slide-circular-up .lg-item.lg-next-slide {
- -moz-transform: scale3d(0, 0, 0) translate3d(100%, -100%, 0);
- -o-transform: scale3d(0, 0, 0) translate3d(100%, -100%, 0);
- -ms-transform: scale3d(0, 0, 0) translate3d(100%, -100%, 0);
- -webkit-transform: scale3d(0, 0, 0) translate3d(100%, -100%, 0);
- transform: scale3d(0, 0, 0) translate3d(100%, -100%, 0); }
- .lg-css3.lg-slide-circular-up .lg-item.lg-current {
- -moz-transform: scale3d(1, 1, 1) translate3d(0, 0, 0);
- -o-transform: scale3d(1, 1, 1) translate3d(0, 0, 0);
- -ms-transform: scale3d(1, 1, 1) translate3d(0, 0, 0);
- -webkit-transform: scale3d(1, 1, 1) translate3d(0, 0, 0);
- transform: scale3d(1, 1, 1) translate3d(0, 0, 0);
- opacity: 1; }
- .lg-css3.lg-slide-circular-up .lg-item.lg-prev-slide, .lg-css3.lg-slide-circular-up .lg-item.lg-next-slide, .lg-css3.lg-slide-circular-up .lg-item.lg-current {
- -webkit-transition: -webkit-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 1s ease 0s;
- -moz-transition: -moz-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 1s ease 0s;
- -o-transition: -o-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 1s ease 0s;
- transition: transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 1s ease 0s; }
-.lg-css3.lg-slide-circular-down .lg-item {
- opacity: 0; }
- .lg-css3.lg-slide-circular-down .lg-item.lg-prev-slide {
- -moz-transform: scale3d(0, 0, 0) translate3d(-100%, 100%, 0);
- -o-transform: scale3d(0, 0, 0) translate3d(-100%, 100%, 0);
- -ms-transform: scale3d(0, 0, 0) translate3d(-100%, 100%, 0);
- -webkit-transform: scale3d(0, 0, 0) translate3d(-100%, 100%, 0);
- transform: scale3d(0, 0, 0) translate3d(-100%, 100%, 0); }
- .lg-css3.lg-slide-circular-down .lg-item.lg-next-slide {
- -moz-transform: scale3d(0, 0, 0) translate3d(100%, 100%, 0);
- -o-transform: scale3d(0, 0, 0) translate3d(100%, 100%, 0);
- -ms-transform: scale3d(0, 0, 0) translate3d(100%, 100%, 0);
- -webkit-transform: scale3d(0, 0, 0) translate3d(100%, 100%, 0);
- transform: scale3d(0, 0, 0) translate3d(100%, 100%, 0); }
- .lg-css3.lg-slide-circular-down .lg-item.lg-current {
- -moz-transform: scale3d(1, 1, 1) translate3d(0, 0, 0);
- -o-transform: scale3d(1, 1, 1) translate3d(0, 0, 0);
- -ms-transform: scale3d(1, 1, 1) translate3d(0, 0, 0);
- -webkit-transform: scale3d(1, 1, 1) translate3d(0, 0, 0);
- transform: scale3d(1, 1, 1) translate3d(0, 0, 0);
- opacity: 1; }
- .lg-css3.lg-slide-circular-down .lg-item.lg-prev-slide, .lg-css3.lg-slide-circular-down .lg-item.lg-next-slide, .lg-css3.lg-slide-circular-down .lg-item.lg-current {
- -webkit-transition: -webkit-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 1s ease 0s;
- -moz-transition: -moz-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 1s ease 0s;
- -o-transition: -o-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 1s ease 0s;
- transition: transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 1s ease 0s; }
-.lg-css3.lg-slide-circular-vertical .lg-item {
- opacity: 0; }
- .lg-css3.lg-slide-circular-vertical .lg-item.lg-prev-slide {
- -moz-transform: scale3d(0, 0, 0) translate3d(0, -100%, 0);
- -o-transform: scale3d(0, 0, 0) translate3d(0, -100%, 0);
- -ms-transform: scale3d(0, 0, 0) translate3d(0, -100%, 0);
- -webkit-transform: scale3d(0, 0, 0) translate3d(0, -100%, 0);
- transform: scale3d(0, 0, 0) translate3d(0, -100%, 0); }
- .lg-css3.lg-slide-circular-vertical .lg-item.lg-next-slide {
- -moz-transform: scale3d(0, 0, 0) translate3d(0, 100%, 0);
- -o-transform: scale3d(0, 0, 0) translate3d(0, 100%, 0);
- -ms-transform: scale3d(0, 0, 0) translate3d(0, 100%, 0);
- -webkit-transform: scale3d(0, 0, 0) translate3d(0, 100%, 0);
- transform: scale3d(0, 0, 0) translate3d(0, 100%, 0); }
- .lg-css3.lg-slide-circular-vertical .lg-item.lg-current {
- -moz-transform: scale3d(1, 1, 1) translate3d(0, 0, 0);
- -o-transform: scale3d(1, 1, 1) translate3d(0, 0, 0);
- -ms-transform: scale3d(1, 1, 1) translate3d(0, 0, 0);
- -webkit-transform: scale3d(1, 1, 1) translate3d(0, 0, 0);
- transform: scale3d(1, 1, 1) translate3d(0, 0, 0);
- opacity: 1; }
- .lg-css3.lg-slide-circular-vertical .lg-item.lg-prev-slide, .lg-css3.lg-slide-circular-vertical .lg-item.lg-next-slide, .lg-css3.lg-slide-circular-vertical .lg-item.lg-current {
- -webkit-transition: -webkit-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 1s ease 0s;
- -moz-transition: -moz-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 1s ease 0s;
- -o-transition: -o-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 1s ease 0s;
- transition: transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 1s ease 0s; }
-.lg-css3.lg-slide-circular-vertical-left .lg-item {
- opacity: 0; }
- .lg-css3.lg-slide-circular-vertical-left .lg-item.lg-prev-slide {
- -moz-transform: scale3d(0, 0, 0) translate3d(-100%, -100%, 0);
- -o-transform: scale3d(0, 0, 0) translate3d(-100%, -100%, 0);
- -ms-transform: scale3d(0, 0, 0) translate3d(-100%, -100%, 0);
- -webkit-transform: scale3d(0, 0, 0) translate3d(-100%, -100%, 0);
- transform: scale3d(0, 0, 0) translate3d(-100%, -100%, 0); }
- .lg-css3.lg-slide-circular-vertical-left .lg-item.lg-next-slide {
- -moz-transform: scale3d(0, 0, 0) translate3d(-100%, 100%, 0);
- -o-transform: scale3d(0, 0, 0) translate3d(-100%, 100%, 0);
- -ms-transform: scale3d(0, 0, 0) translate3d(-100%, 100%, 0);
- -webkit-transform: scale3d(0, 0, 0) translate3d(-100%, 100%, 0);
- transform: scale3d(0, 0, 0) translate3d(-100%, 100%, 0); }
- .lg-css3.lg-slide-circular-vertical-left .lg-item.lg-current {
- -moz-transform: scale3d(1, 1, 1) translate3d(0, 0, 0);
- -o-transform: scale3d(1, 1, 1) translate3d(0, 0, 0);
- -ms-transform: scale3d(1, 1, 1) translate3d(0, 0, 0);
- -webkit-transform: scale3d(1, 1, 1) translate3d(0, 0, 0);
- transform: scale3d(1, 1, 1) translate3d(0, 0, 0);
- opacity: 1; }
- .lg-css3.lg-slide-circular-vertical-left .lg-item.lg-prev-slide, .lg-css3.lg-slide-circular-vertical-left .lg-item.lg-next-slide, .lg-css3.lg-slide-circular-vertical-left .lg-item.lg-current {
- -webkit-transition: -webkit-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 1s ease 0s;
- -moz-transition: -moz-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 1s ease 0s;
- -o-transition: -o-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 1s ease 0s;
- transition: transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 1s ease 0s; }
-.lg-css3.lg-slide-circular-vertical-down .lg-item {
- opacity: 0; }
- .lg-css3.lg-slide-circular-vertical-down .lg-item.lg-prev-slide {
- -moz-transform: scale3d(0, 0, 0) translate3d(100%, -100%, 0);
- -o-transform: scale3d(0, 0, 0) translate3d(100%, -100%, 0);
- -ms-transform: scale3d(0, 0, 0) translate3d(100%, -100%, 0);
- -webkit-transform: scale3d(0, 0, 0) translate3d(100%, -100%, 0);
- transform: scale3d(0, 0, 0) translate3d(100%, -100%, 0); }
- .lg-css3.lg-slide-circular-vertical-down .lg-item.lg-next-slide {
- -moz-transform: scale3d(0, 0, 0) translate3d(100%, 100%, 0);
- -o-transform: scale3d(0, 0, 0) translate3d(100%, 100%, 0);
- -ms-transform: scale3d(0, 0, 0) translate3d(100%, 100%, 0);
- -webkit-transform: scale3d(0, 0, 0) translate3d(100%, 100%, 0);
- transform: scale3d(0, 0, 0) translate3d(100%, 100%, 0); }
- .lg-css3.lg-slide-circular-vertical-down .lg-item.lg-current {
- -moz-transform: scale3d(1, 1, 1) translate3d(0, 0, 0);
- -o-transform: scale3d(1, 1, 1) translate3d(0, 0, 0);
- -ms-transform: scale3d(1, 1, 1) translate3d(0, 0, 0);
- -webkit-transform: scale3d(1, 1, 1) translate3d(0, 0, 0);
- transform: scale3d(1, 1, 1) translate3d(0, 0, 0);
- opacity: 1; }
- .lg-css3.lg-slide-circular-vertical-down .lg-item.lg-prev-slide, .lg-css3.lg-slide-circular-vertical-down .lg-item.lg-next-slide, .lg-css3.lg-slide-circular-vertical-down .lg-item.lg-current {
- -webkit-transition: -webkit-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 1s ease 0s;
- -moz-transition: -moz-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 1s ease 0s;
- -o-transition: -o-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 1s ease 0s;
- transition: transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 1s ease 0s; }
-.lg-css3.lg-slide-vertical .lg-item {
- opacity: 0; }
- .lg-css3.lg-slide-vertical .lg-item.lg-prev-slide {
- -webkit-transform: translate3d(0, -100%, 0);
- transform: translate3d(0, -100%, 0); }
- .lg-css3.lg-slide-vertical .lg-item.lg-next-slide {
- -webkit-transform: translate3d(0, 100%, 0);
- transform: translate3d(0, 100%, 0); }
- .lg-css3.lg-slide-vertical .lg-item.lg-current {
- -webkit-transform: translate3d(0, 0, 0);
- transform: translate3d(0, 0, 0);
- opacity: 1; }
- .lg-css3.lg-slide-vertical .lg-item.lg-prev-slide, .lg-css3.lg-slide-vertical .lg-item.lg-next-slide, .lg-css3.lg-slide-vertical .lg-item.lg-current {
- -webkit-transition: -webkit-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- -moz-transition: -moz-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- -o-transition: -o-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- transition: transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s; }
-.lg-css3.lg-slide-vertical-growth .lg-item {
- opacity: 0; }
- .lg-css3.lg-slide-vertical-growth .lg-item.lg-prev-slide {
- -moz-transform: scale3d(0.5, 0.5, 0.5) translate3d(0, -150%, 0);
- -o-transform: scale3d(0.5, 0.5, 0.5) translate3d(0, -150%, 0);
- -ms-transform: scale3d(0.5, 0.5, 0.5) translate3d(0, -150%, 0);
- -webkit-transform: scale3d(0.5, 0.5, 0.5) translate3d(0, -150%, 0);
- transform: scale3d(0.5, 0.5, 0.5) translate3d(0, -150%, 0); }
- .lg-css3.lg-slide-vertical-growth .lg-item.lg-next-slide {
- -moz-transform: scale3d(0.5, 0.5, 0.5) translate3d(0, 150%, 0);
- -o-transform: scale3d(0.5, 0.5, 0.5) translate3d(0, 150%, 0);
- -ms-transform: scale3d(0.5, 0.5, 0.5) translate3d(0, 150%, 0);
- -webkit-transform: scale3d(0.5, 0.5, 0.5) translate3d(0, 150%, 0);
- transform: scale3d(0.5, 0.5, 0.5) translate3d(0, 150%, 0); }
- .lg-css3.lg-slide-vertical-growth .lg-item.lg-current {
- -moz-transform: scale3d(1, 1, 1) translate3d(0, 0, 0);
- -o-transform: scale3d(1, 1, 1) translate3d(0, 0, 0);
- -ms-transform: scale3d(1, 1, 1) translate3d(0, 0, 0);
- -webkit-transform: scale3d(1, 1, 1) translate3d(0, 0, 0);
- transform: scale3d(1, 1, 1) translate3d(0, 0, 0);
- opacity: 1; }
- .lg-css3.lg-slide-vertical-growth .lg-item.lg-prev-slide, .lg-css3.lg-slide-vertical-growth .lg-item.lg-next-slide, .lg-css3.lg-slide-vertical-growth .lg-item.lg-current {
- -webkit-transition: -webkit-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- -moz-transition: -moz-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- -o-transition: -o-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- transition: transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s; }
-.lg-css3.lg-slide-skew-only .lg-item {
- opacity: 0; }
- .lg-css3.lg-slide-skew-only .lg-item.lg-prev-slide {
- -moz-transform: skew(10deg, 0deg);
- -o-transform: skew(10deg, 0deg);
- -ms-transform: skew(10deg, 0deg);
- -webkit-transform: skew(10deg, 0deg);
- transform: skew(10deg, 0deg); }
- .lg-css3.lg-slide-skew-only .lg-item.lg-next-slide {
- -moz-transform: skew(10deg, 0deg);
- -o-transform: skew(10deg, 0deg);
- -ms-transform: skew(10deg, 0deg);
- -webkit-transform: skew(10deg, 0deg);
- transform: skew(10deg, 0deg); }
- .lg-css3.lg-slide-skew-only .lg-item.lg-current {
- -moz-transform: skew(0deg, 0deg);
- -o-transform: skew(0deg, 0deg);
- -ms-transform: skew(0deg, 0deg);
- -webkit-transform: skew(0deg, 0deg);
- transform: skew(0deg, 0deg);
- opacity: 1; }
- .lg-css3.lg-slide-skew-only .lg-item.lg-prev-slide, .lg-css3.lg-slide-skew-only .lg-item.lg-next-slide, .lg-css3.lg-slide-skew-only .lg-item.lg-current {
- -webkit-transition: -webkit-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- -moz-transition: -moz-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- -o-transition: -o-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- transition: transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s; }
-.lg-css3.lg-slide-skew-only-rev .lg-item {
- opacity: 0; }
- .lg-css3.lg-slide-skew-only-rev .lg-item.lg-prev-slide {
- -moz-transform: skew(-10deg, 0deg);
- -o-transform: skew(-10deg, 0deg);
- -ms-transform: skew(-10deg, 0deg);
- -webkit-transform: skew(-10deg, 0deg);
- transform: skew(-10deg, 0deg); }
- .lg-css3.lg-slide-skew-only-rev .lg-item.lg-next-slide {
- -moz-transform: skew(-10deg, 0deg);
- -o-transform: skew(-10deg, 0deg);
- -ms-transform: skew(-10deg, 0deg);
- -webkit-transform: skew(-10deg, 0deg);
- transform: skew(-10deg, 0deg); }
- .lg-css3.lg-slide-skew-only-rev .lg-item.lg-current {
- -moz-transform: skew(0deg, 0deg);
- -o-transform: skew(0deg, 0deg);
- -ms-transform: skew(0deg, 0deg);
- -webkit-transform: skew(0deg, 0deg);
- transform: skew(0deg, 0deg);
- opacity: 1; }
- .lg-css3.lg-slide-skew-only-rev .lg-item.lg-prev-slide, .lg-css3.lg-slide-skew-only-rev .lg-item.lg-next-slide, .lg-css3.lg-slide-skew-only-rev .lg-item.lg-current {
- -webkit-transition: -webkit-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- -moz-transition: -moz-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- -o-transition: -o-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- transition: transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s; }
-.lg-css3.lg-slide-skew-only-y .lg-item {
- opacity: 0; }
- .lg-css3.lg-slide-skew-only-y .lg-item.lg-prev-slide {
- -moz-transform: skew(0deg, 10deg);
- -o-transform: skew(0deg, 10deg);
- -ms-transform: skew(0deg, 10deg);
- -webkit-transform: skew(0deg, 10deg);
- transform: skew(0deg, 10deg); }
- .lg-css3.lg-slide-skew-only-y .lg-item.lg-next-slide {
- -moz-transform: skew(0deg, 10deg);
- -o-transform: skew(0deg, 10deg);
- -ms-transform: skew(0deg, 10deg);
- -webkit-transform: skew(0deg, 10deg);
- transform: skew(0deg, 10deg); }
- .lg-css3.lg-slide-skew-only-y .lg-item.lg-current {
- -moz-transform: skew(0deg, 0deg);
- -o-transform: skew(0deg, 0deg);
- -ms-transform: skew(0deg, 0deg);
- -webkit-transform: skew(0deg, 0deg);
- transform: skew(0deg, 0deg);
- opacity: 1; }
- .lg-css3.lg-slide-skew-only-y .lg-item.lg-prev-slide, .lg-css3.lg-slide-skew-only-y .lg-item.lg-next-slide, .lg-css3.lg-slide-skew-only-y .lg-item.lg-current {
- -webkit-transition: -webkit-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- -moz-transition: -moz-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- -o-transition: -o-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- transition: transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s; }
-.lg-css3.lg-slide-skew-only-y-rev .lg-item {
- opacity: 0; }
- .lg-css3.lg-slide-skew-only-y-rev .lg-item.lg-prev-slide {
- -moz-transform: skew(0deg, -10deg);
- -o-transform: skew(0deg, -10deg);
- -ms-transform: skew(0deg, -10deg);
- -webkit-transform: skew(0deg, -10deg);
- transform: skew(0deg, -10deg); }
- .lg-css3.lg-slide-skew-only-y-rev .lg-item.lg-next-slide {
- -moz-transform: skew(0deg, -10deg);
- -o-transform: skew(0deg, -10deg);
- -ms-transform: skew(0deg, -10deg);
- -webkit-transform: skew(0deg, -10deg);
- transform: skew(0deg, -10deg); }
- .lg-css3.lg-slide-skew-only-y-rev .lg-item.lg-current {
- -moz-transform: skew(0deg, 0deg);
- -o-transform: skew(0deg, 0deg);
- -ms-transform: skew(0deg, 0deg);
- -webkit-transform: skew(0deg, 0deg);
- transform: skew(0deg, 0deg);
- opacity: 1; }
- .lg-css3.lg-slide-skew-only-y-rev .lg-item.lg-prev-slide, .lg-css3.lg-slide-skew-only-y-rev .lg-item.lg-next-slide, .lg-css3.lg-slide-skew-only-y-rev .lg-item.lg-current {
- -webkit-transition: -webkit-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- -moz-transition: -moz-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- -o-transition: -o-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- transition: transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s; }
-.lg-css3.lg-slide-skew .lg-item {
- opacity: 0; }
- .lg-css3.lg-slide-skew .lg-item.lg-prev-slide {
- -moz-transform: skew(20deg, 0deg) translate3d(-100%, 0%, 0px);
- -o-transform: skew(20deg, 0deg) translate3d(-100%, 0%, 0px);
- -ms-transform: skew(20deg, 0deg) translate3d(-100%, 0%, 0px);
- -webkit-transform: skew(20deg, 0deg) translate3d(-100%, 0%, 0px);
- transform: skew(20deg, 0deg) translate3d(-100%, 0%, 0px); }
- .lg-css3.lg-slide-skew .lg-item.lg-next-slide {
- -moz-transform: skew(20deg, 0deg) translate3d(100%, 0%, 0px);
- -o-transform: skew(20deg, 0deg) translate3d(100%, 0%, 0px);
- -ms-transform: skew(20deg, 0deg) translate3d(100%, 0%, 0px);
- -webkit-transform: skew(20deg, 0deg) translate3d(100%, 0%, 0px);
- transform: skew(20deg, 0deg) translate3d(100%, 0%, 0px); }
- .lg-css3.lg-slide-skew .lg-item.lg-current {
- -moz-transform: skew(0deg, 0deg) translate3d(0%, 0%, 0px);
- -o-transform: skew(0deg, 0deg) translate3d(0%, 0%, 0px);
- -ms-transform: skew(0deg, 0deg) translate3d(0%, 0%, 0px);
- -webkit-transform: skew(0deg, 0deg) translate3d(0%, 0%, 0px);
- transform: skew(0deg, 0deg) translate3d(0%, 0%, 0px);
- opacity: 1; }
- .lg-css3.lg-slide-skew .lg-item.lg-prev-slide, .lg-css3.lg-slide-skew .lg-item.lg-next-slide, .lg-css3.lg-slide-skew .lg-item.lg-current {
- -webkit-transition: -webkit-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- -moz-transition: -moz-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- -o-transition: -o-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- transition: transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s; }
-.lg-css3.lg-slide-skew-rev .lg-item {
- opacity: 0; }
- .lg-css3.lg-slide-skew-rev .lg-item.lg-prev-slide {
- -moz-transform: skew(-20deg, 0deg) translate3d(-100%, 0%, 0px);
- -o-transform: skew(-20deg, 0deg) translate3d(-100%, 0%, 0px);
- -ms-transform: skew(-20deg, 0deg) translate3d(-100%, 0%, 0px);
- -webkit-transform: skew(-20deg, 0deg) translate3d(-100%, 0%, 0px);
- transform: skew(-20deg, 0deg) translate3d(-100%, 0%, 0px); }
- .lg-css3.lg-slide-skew-rev .lg-item.lg-next-slide {
- -moz-transform: skew(-20deg, 0deg) translate3d(100%, 0%, 0px);
- -o-transform: skew(-20deg, 0deg) translate3d(100%, 0%, 0px);
- -ms-transform: skew(-20deg, 0deg) translate3d(100%, 0%, 0px);
- -webkit-transform: skew(-20deg, 0deg) translate3d(100%, 0%, 0px);
- transform: skew(-20deg, 0deg) translate3d(100%, 0%, 0px); }
- .lg-css3.lg-slide-skew-rev .lg-item.lg-current {
- -moz-transform: skew(0deg, 0deg) translate3d(0%, 0%, 0px);
- -o-transform: skew(0deg, 0deg) translate3d(0%, 0%, 0px);
- -ms-transform: skew(0deg, 0deg) translate3d(0%, 0%, 0px);
- -webkit-transform: skew(0deg, 0deg) translate3d(0%, 0%, 0px);
- transform: skew(0deg, 0deg) translate3d(0%, 0%, 0px);
- opacity: 1; }
- .lg-css3.lg-slide-skew-rev .lg-item.lg-prev-slide, .lg-css3.lg-slide-skew-rev .lg-item.lg-next-slide, .lg-css3.lg-slide-skew-rev .lg-item.lg-current {
- -webkit-transition: -webkit-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- -moz-transition: -moz-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- -o-transition: -o-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- transition: transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s; }
-.lg-css3.lg-slide-skew-cross .lg-item {
- opacity: 0; }
- .lg-css3.lg-slide-skew-cross .lg-item.lg-prev-slide {
- -moz-transform: skew(0deg, 60deg) translate3d(-100%, 0%, 0px);
- -o-transform: skew(0deg, 60deg) translate3d(-100%, 0%, 0px);
- -ms-transform: skew(0deg, 60deg) translate3d(-100%, 0%, 0px);
- -webkit-transform: skew(0deg, 60deg) translate3d(-100%, 0%, 0px);
- transform: skew(0deg, 60deg) translate3d(-100%, 0%, 0px); }
- .lg-css3.lg-slide-skew-cross .lg-item.lg-next-slide {
- -moz-transform: skew(0deg, 60deg) translate3d(100%, 0%, 0px);
- -o-transform: skew(0deg, 60deg) translate3d(100%, 0%, 0px);
- -ms-transform: skew(0deg, 60deg) translate3d(100%, 0%, 0px);
- -webkit-transform: skew(0deg, 60deg) translate3d(100%, 0%, 0px);
- transform: skew(0deg, 60deg) translate3d(100%, 0%, 0px); }
- .lg-css3.lg-slide-skew-cross .lg-item.lg-current {
- -moz-transform: skew(0deg, 0deg) translate3d(0%, 0%, 0px);
- -o-transform: skew(0deg, 0deg) translate3d(0%, 0%, 0px);
- -ms-transform: skew(0deg, 0deg) translate3d(0%, 0%, 0px);
- -webkit-transform: skew(0deg, 0deg) translate3d(0%, 0%, 0px);
- transform: skew(0deg, 0deg) translate3d(0%, 0%, 0px);
- opacity: 1; }
- .lg-css3.lg-slide-skew-cross .lg-item.lg-prev-slide, .lg-css3.lg-slide-skew-cross .lg-item.lg-next-slide, .lg-css3.lg-slide-skew-cross .lg-item.lg-current {
- -webkit-transition: -webkit-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- -moz-transition: -moz-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- -o-transition: -o-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- transition: transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s; }
-.lg-css3.lg-slide-skew-cross-rev .lg-item {
- opacity: 0; }
- .lg-css3.lg-slide-skew-cross-rev .lg-item.lg-prev-slide {
- -moz-transform: skew(0deg, -60deg) translate3d(-100%, 0%, 0px);
- -o-transform: skew(0deg, -60deg) translate3d(-100%, 0%, 0px);
- -ms-transform: skew(0deg, -60deg) translate3d(-100%, 0%, 0px);
- -webkit-transform: skew(0deg, -60deg) translate3d(-100%, 0%, 0px);
- transform: skew(0deg, -60deg) translate3d(-100%, 0%, 0px); }
- .lg-css3.lg-slide-skew-cross-rev .lg-item.lg-next-slide {
- -moz-transform: skew(0deg, -60deg) translate3d(100%, 0%, 0px);
- -o-transform: skew(0deg, -60deg) translate3d(100%, 0%, 0px);
- -ms-transform: skew(0deg, -60deg) translate3d(100%, 0%, 0px);
- -webkit-transform: skew(0deg, -60deg) translate3d(100%, 0%, 0px);
- transform: skew(0deg, -60deg) translate3d(100%, 0%, 0px); }
- .lg-css3.lg-slide-skew-cross-rev .lg-item.lg-current {
- -moz-transform: skew(0deg, 0deg) translate3d(0%, 0%, 0px);
- -o-transform: skew(0deg, 0deg) translate3d(0%, 0%, 0px);
- -ms-transform: skew(0deg, 0deg) translate3d(0%, 0%, 0px);
- -webkit-transform: skew(0deg, 0deg) translate3d(0%, 0%, 0px);
- transform: skew(0deg, 0deg) translate3d(0%, 0%, 0px);
- opacity: 1; }
- .lg-css3.lg-slide-skew-cross-rev .lg-item.lg-prev-slide, .lg-css3.lg-slide-skew-cross-rev .lg-item.lg-next-slide, .lg-css3.lg-slide-skew-cross-rev .lg-item.lg-current {
- -webkit-transition: -webkit-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- -moz-transition: -moz-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- -o-transition: -o-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- transition: transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s; }
-.lg-css3.lg-slide-skew-ver .lg-item {
- opacity: 0; }
- .lg-css3.lg-slide-skew-ver .lg-item.lg-prev-slide {
- -moz-transform: skew(60deg, 0deg) translate3d(0, -100%, 0px);
- -o-transform: skew(60deg, 0deg) translate3d(0, -100%, 0px);
- -ms-transform: skew(60deg, 0deg) translate3d(0, -100%, 0px);
- -webkit-transform: skew(60deg, 0deg) translate3d(0, -100%, 0px);
- transform: skew(60deg, 0deg) translate3d(0, -100%, 0px); }
- .lg-css3.lg-slide-skew-ver .lg-item.lg-next-slide {
- -moz-transform: skew(60deg, 0deg) translate3d(0, 100%, 0px);
- -o-transform: skew(60deg, 0deg) translate3d(0, 100%, 0px);
- -ms-transform: skew(60deg, 0deg) translate3d(0, 100%, 0px);
- -webkit-transform: skew(60deg, 0deg) translate3d(0, 100%, 0px);
- transform: skew(60deg, 0deg) translate3d(0, 100%, 0px); }
- .lg-css3.lg-slide-skew-ver .lg-item.lg-current {
- -moz-transform: skew(0deg, 0deg) translate3d(0%, 0%, 0px);
- -o-transform: skew(0deg, 0deg) translate3d(0%, 0%, 0px);
- -ms-transform: skew(0deg, 0deg) translate3d(0%, 0%, 0px);
- -webkit-transform: skew(0deg, 0deg) translate3d(0%, 0%, 0px);
- transform: skew(0deg, 0deg) translate3d(0%, 0%, 0px);
- opacity: 1; }
- .lg-css3.lg-slide-skew-ver .lg-item.lg-prev-slide, .lg-css3.lg-slide-skew-ver .lg-item.lg-next-slide, .lg-css3.lg-slide-skew-ver .lg-item.lg-current {
- -webkit-transition: -webkit-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- -moz-transition: -moz-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- -o-transition: -o-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- transition: transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s; }
-.lg-css3.lg-slide-skew-ver-rev .lg-item {
- opacity: 0; }
- .lg-css3.lg-slide-skew-ver-rev .lg-item.lg-prev-slide {
- -moz-transform: skew(-60deg, 0deg) translate3d(0, -100%, 0px);
- -o-transform: skew(-60deg, 0deg) translate3d(0, -100%, 0px);
- -ms-transform: skew(-60deg, 0deg) translate3d(0, -100%, 0px);
- -webkit-transform: skew(-60deg, 0deg) translate3d(0, -100%, 0px);
- transform: skew(-60deg, 0deg) translate3d(0, -100%, 0px); }
- .lg-css3.lg-slide-skew-ver-rev .lg-item.lg-next-slide {
- -moz-transform: skew(-60deg, 0deg) translate3d(0, 100%, 0px);
- -o-transform: skew(-60deg, 0deg) translate3d(0, 100%, 0px);
- -ms-transform: skew(-60deg, 0deg) translate3d(0, 100%, 0px);
- -webkit-transform: skew(-60deg, 0deg) translate3d(0, 100%, 0px);
- transform: skew(-60deg, 0deg) translate3d(0, 100%, 0px); }
- .lg-css3.lg-slide-skew-ver-rev .lg-item.lg-current {
- -moz-transform: skew(0deg, 0deg) translate3d(0%, 0%, 0px);
- -o-transform: skew(0deg, 0deg) translate3d(0%, 0%, 0px);
- -ms-transform: skew(0deg, 0deg) translate3d(0%, 0%, 0px);
- -webkit-transform: skew(0deg, 0deg) translate3d(0%, 0%, 0px);
- transform: skew(0deg, 0deg) translate3d(0%, 0%, 0px);
- opacity: 1; }
- .lg-css3.lg-slide-skew-ver-rev .lg-item.lg-prev-slide, .lg-css3.lg-slide-skew-ver-rev .lg-item.lg-next-slide, .lg-css3.lg-slide-skew-ver-rev .lg-item.lg-current {
- -webkit-transition: -webkit-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- -moz-transition: -moz-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- -o-transition: -o-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- transition: transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s; }
-.lg-css3.lg-slide-skew-ver-cross .lg-item {
- opacity: 0; }
- .lg-css3.lg-slide-skew-ver-cross .lg-item.lg-prev-slide {
- -moz-transform: skew(0deg, 20deg) translate3d(0, -100%, 0px);
- -o-transform: skew(0deg, 20deg) translate3d(0, -100%, 0px);
- -ms-transform: skew(0deg, 20deg) translate3d(0, -100%, 0px);
- -webkit-transform: skew(0deg, 20deg) translate3d(0, -100%, 0px);
- transform: skew(0deg, 20deg) translate3d(0, -100%, 0px); }
- .lg-css3.lg-slide-skew-ver-cross .lg-item.lg-next-slide {
- -moz-transform: skew(0deg, 20deg) translate3d(0, 100%, 0px);
- -o-transform: skew(0deg, 20deg) translate3d(0, 100%, 0px);
- -ms-transform: skew(0deg, 20deg) translate3d(0, 100%, 0px);
- -webkit-transform: skew(0deg, 20deg) translate3d(0, 100%, 0px);
- transform: skew(0deg, 20deg) translate3d(0, 100%, 0px); }
- .lg-css3.lg-slide-skew-ver-cross .lg-item.lg-current {
- -moz-transform: skew(0deg, 0deg) translate3d(0%, 0%, 0px);
- -o-transform: skew(0deg, 0deg) translate3d(0%, 0%, 0px);
- -ms-transform: skew(0deg, 0deg) translate3d(0%, 0%, 0px);
- -webkit-transform: skew(0deg, 0deg) translate3d(0%, 0%, 0px);
- transform: skew(0deg, 0deg) translate3d(0%, 0%, 0px);
- opacity: 1; }
- .lg-css3.lg-slide-skew-ver-cross .lg-item.lg-prev-slide, .lg-css3.lg-slide-skew-ver-cross .lg-item.lg-next-slide, .lg-css3.lg-slide-skew-ver-cross .lg-item.lg-current {
- -webkit-transition: -webkit-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- -moz-transition: -moz-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- -o-transition: -o-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- transition: transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s; }
-.lg-css3.lg-slide-skew-ver-cross-rev .lg-item {
- opacity: 0; }
- .lg-css3.lg-slide-skew-ver-cross-rev .lg-item.lg-prev-slide {
- -moz-transform: skew(0deg, -20deg) translate3d(0, -100%, 0px);
- -o-transform: skew(0deg, -20deg) translate3d(0, -100%, 0px);
- -ms-transform: skew(0deg, -20deg) translate3d(0, -100%, 0px);
- -webkit-transform: skew(0deg, -20deg) translate3d(0, -100%, 0px);
- transform: skew(0deg, -20deg) translate3d(0, -100%, 0px); }
- .lg-css3.lg-slide-skew-ver-cross-rev .lg-item.lg-next-slide {
- -moz-transform: skew(0deg, -20deg) translate3d(0, 100%, 0px);
- -o-transform: skew(0deg, -20deg) translate3d(0, 100%, 0px);
- -ms-transform: skew(0deg, -20deg) translate3d(0, 100%, 0px);
- -webkit-transform: skew(0deg, -20deg) translate3d(0, 100%, 0px);
- transform: skew(0deg, -20deg) translate3d(0, 100%, 0px); }
- .lg-css3.lg-slide-skew-ver-cross-rev .lg-item.lg-current {
- -moz-transform: skew(0deg, 0deg) translate3d(0%, 0%, 0px);
- -o-transform: skew(0deg, 0deg) translate3d(0%, 0%, 0px);
- -ms-transform: skew(0deg, 0deg) translate3d(0%, 0%, 0px);
- -webkit-transform: skew(0deg, 0deg) translate3d(0%, 0%, 0px);
- transform: skew(0deg, 0deg) translate3d(0%, 0%, 0px);
- opacity: 1; }
- .lg-css3.lg-slide-skew-ver-cross-rev .lg-item.lg-prev-slide, .lg-css3.lg-slide-skew-ver-cross-rev .lg-item.lg-next-slide, .lg-css3.lg-slide-skew-ver-cross-rev .lg-item.lg-current {
- -webkit-transition: -webkit-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- -moz-transition: -moz-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- -o-transition: -o-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- transition: transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s; }
-.lg-css3.lg-lollipop .lg-item {
- opacity: 0; }
- .lg-css3.lg-lollipop .lg-item.lg-prev-slide {
- -webkit-transform: translate3d(-100%, 0, 0);
- transform: translate3d(-100%, 0, 0); }
- .lg-css3.lg-lollipop .lg-item.lg-next-slide {
- -moz-transform: translate3d(0, 0, 0) scale(0.5);
- -o-transform: translate3d(0, 0, 0) scale(0.5);
- -ms-transform: translate3d(0, 0, 0) scale(0.5);
- -webkit-transform: translate3d(0, 0, 0) scale(0.5);
- transform: translate3d(0, 0, 0) scale(0.5); }
- .lg-css3.lg-lollipop .lg-item.lg-current {
- -webkit-transform: translate3d(0, 0, 0);
- transform: translate3d(0, 0, 0);
- opacity: 1; }
- .lg-css3.lg-lollipop .lg-item.lg-prev-slide, .lg-css3.lg-lollipop .lg-item.lg-next-slide, .lg-css3.lg-lollipop .lg-item.lg-current {
- -webkit-transition: -webkit-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- -moz-transition: -moz-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- -o-transition: -o-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- transition: transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s; }
-.lg-css3.lg-lollipop-rev .lg-item {
- opacity: 0; }
- .lg-css3.lg-lollipop-rev .lg-item.lg-prev-slide {
- -moz-transform: translate3d(0, 0, 0) scale(0.5);
- -o-transform: translate3d(0, 0, 0) scale(0.5);
- -ms-transform: translate3d(0, 0, 0) scale(0.5);
- -webkit-transform: translate3d(0, 0, 0) scale(0.5);
- transform: translate3d(0, 0, 0) scale(0.5); }
- .lg-css3.lg-lollipop-rev .lg-item.lg-next-slide {
- -webkit-transform: translate3d(100%, 0, 0);
- transform: translate3d(100%, 0, 0); }
- .lg-css3.lg-lollipop-rev .lg-item.lg-current {
- -webkit-transform: translate3d(0, 0, 0);
- transform: translate3d(0, 0, 0);
- opacity: 1; }
- .lg-css3.lg-lollipop-rev .lg-item.lg-prev-slide, .lg-css3.lg-lollipop-rev .lg-item.lg-next-slide, .lg-css3.lg-lollipop-rev .lg-item.lg-current {
- -webkit-transition: -webkit-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- -moz-transition: -moz-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- -o-transition: -o-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- transition: transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s; }
-.lg-css3.lg-rotate .lg-item {
- opacity: 0; }
- .lg-css3.lg-rotate .lg-item.lg-prev-slide {
- -moz-transform: rotate(-360deg);
- -o-transform: rotate(-360deg);
- -ms-transform: rotate(-360deg);
- -webkit-transform: rotate(-360deg);
- transform: rotate(-360deg); }
- .lg-css3.lg-rotate .lg-item.lg-next-slide {
- -moz-transform: rotate(360deg);
- -o-transform: rotate(360deg);
- -ms-transform: rotate(360deg);
- -webkit-transform: rotate(360deg);
- transform: rotate(360deg); }
- .lg-css3.lg-rotate .lg-item.lg-current {
- -moz-transform: rotate(0deg);
- -o-transform: rotate(0deg);
- -ms-transform: rotate(0deg);
- -webkit-transform: rotate(0deg);
- transform: rotate(0deg);
- opacity: 1; }
- .lg-css3.lg-rotate .lg-item.lg-prev-slide, .lg-css3.lg-rotate .lg-item.lg-next-slide, .lg-css3.lg-rotate .lg-item.lg-current {
- -webkit-transition: -webkit-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- -moz-transition: -moz-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- -o-transition: -o-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- transition: transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s; }
-.lg-css3.lg-rotate-rev .lg-item {
- opacity: 0; }
- .lg-css3.lg-rotate-rev .lg-item.lg-prev-slide {
- -moz-transform: rotate(360deg);
- -o-transform: rotate(360deg);
- -ms-transform: rotate(360deg);
- -webkit-transform: rotate(360deg);
- transform: rotate(360deg); }
- .lg-css3.lg-rotate-rev .lg-item.lg-next-slide {
- -moz-transform: rotate(-360deg);
- -o-transform: rotate(-360deg);
- -ms-transform: rotate(-360deg);
- -webkit-transform: rotate(-360deg);
- transform: rotate(-360deg); }
- .lg-css3.lg-rotate-rev .lg-item.lg-current {
- -moz-transform: rotate(0deg);
- -o-transform: rotate(0deg);
- -ms-transform: rotate(0deg);
- -webkit-transform: rotate(0deg);
- transform: rotate(0deg);
- opacity: 1; }
- .lg-css3.lg-rotate-rev .lg-item.lg-prev-slide, .lg-css3.lg-rotate-rev .lg-item.lg-next-slide, .lg-css3.lg-rotate-rev .lg-item.lg-current {
- -webkit-transition: -webkit-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- -moz-transition: -moz-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- -o-transition: -o-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- transition: transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s; }
-.lg-css3.lg-tube .lg-item {
- opacity: 0; }
- .lg-css3.lg-tube .lg-item.lg-prev-slide {
- -moz-transform: scale3d(1, 0, 1) translate3d(-100%, 0, 0);
- -o-transform: scale3d(1, 0, 1) translate3d(-100%, 0, 0);
- -ms-transform: scale3d(1, 0, 1) translate3d(-100%, 0, 0);
- -webkit-transform: scale3d(1, 0, 1) translate3d(-100%, 0, 0);
- transform: scale3d(1, 0, 1) translate3d(-100%, 0, 0); }
- .lg-css3.lg-tube .lg-item.lg-next-slide {
- -moz-transform: scale3d(1, 0, 1) translate3d(100%, 0, 0);
- -o-transform: scale3d(1, 0, 1) translate3d(100%, 0, 0);
- -ms-transform: scale3d(1, 0, 1) translate3d(100%, 0, 0);
- -webkit-transform: scale3d(1, 0, 1) translate3d(100%, 0, 0);
- transform: scale3d(1, 0, 1) translate3d(100%, 0, 0); }
- .lg-css3.lg-tube .lg-item.lg-current {
- -moz-transform: scale3d(1, 1, 1) translate3d(0, 0, 0);
- -o-transform: scale3d(1, 1, 1) translate3d(0, 0, 0);
- -ms-transform: scale3d(1, 1, 1) translate3d(0, 0, 0);
- -webkit-transform: scale3d(1, 1, 1) translate3d(0, 0, 0);
- transform: scale3d(1, 1, 1) translate3d(0, 0, 0);
- opacity: 1; }
- .lg-css3.lg-tube .lg-item.lg-prev-slide, .lg-css3.lg-tube .lg-item.lg-next-slide, .lg-css3.lg-tube .lg-item.lg-current {
- -webkit-transition: -webkit-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- -moz-transition: -moz-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- -o-transition: -o-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- transition: transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s; }
-
-/*# sourceMappingURL=lg-transitions.css.map */
diff --git a/debian/lib/lightgallery/lg-zoom.js b/debian/lib/lightgallery/lg-zoom.js
deleted file mode 100644
index bc2456f..0000000
--- a/debian/lib/lightgallery/lg-zoom.js
+++ /dev/null
@@ -1,477 +0,0 @@
-/*! lightgallery - v1.2.21 - 2016-06-28
-* http://sachinchoolur.github.io/lightGallery/
-* Copyright (c) 2016 Sachin N; Licensed Apache 2.0 */
-(function($, window, document, undefined) {
-
- 'use strict';
-
- var defaults = {
- scale: 1,
- zoom: true,
- actualSize: true,
- enableZoomAfter: 300
- };
-
- var Zoom = function(element) {
-
- this.core = $(element).data('lightGallery');
-
- this.core.s = $.extend({}, defaults, this.core.s);
-
- if (this.core.s.zoom && this.core.doCss()) {
- this.init();
-
- // Store the zoomable timeout value just to clear it while closing
- this.zoomabletimeout = false;
-
- // Set the initial value center
- this.pageX = $(window).width() / 2;
- this.pageY = ($(window).height() / 2) + $(window).scrollTop();
- }
-
- return this;
- };
-
- Zoom.prototype.init = function() {
-
- var _this = this;
- var zoomIcons = '<span id="lg-zoom-in" class="lg-icon"></span><span id="lg-zoom-out" class="lg-icon"></span>';
-
- if (_this.core.s.actualSize) {
- zoomIcons += '<span id="lg-actual-size" class="lg-icon"></span>';
- }
-
- this.core.$outer.find('.lg-toolbar').append(zoomIcons);
-
- // Add zoomable class
- _this.core.$el.on('onSlideItemLoad.lg.tm.zoom', function(event, index, delay) {
-
- // delay will be 0 except first time
- var _speed = _this.core.s.enableZoomAfter + delay;
-
- // set _speed value 0 if gallery opened from direct url and if it is first slide
- if ($('body').hasClass('lg-from-hash') && delay) {
-
- // will execute only once
- _speed = 0;
- } else {
-
- // Remove lg-from-hash to enable starting animation.
- $('body').removeClass('lg-from-hash');
- }
-
- _this.zoomabletimeout = setTimeout(function() {
- _this.core.$slide.eq(index).addClass('lg-zoomable');
- }, _speed + 30);
- });
-
- var scale = 1;
- /**
- * @desc Image zoom
- * Translate the wrap and scale the image to get better user experience
- *
- * @param {String} scaleVal - Zoom decrement/increment value
- */
- var zoom = function(scaleVal) {
-
- var $image = _this.core.$outer.find('.lg-current .lg-image');
- var _x;
- var _y;
-
- // Find offset manually to avoid issue after zoom
- var offsetX = ($(window).width() - $image.width()) / 2;
- var offsetY = (($(window).height() - $image.height()) / 2) + $(window).scrollTop();
-
- _x = _this.pageX - offsetX;
- _y = _this.pageY - offsetY;
-
- var x = (scaleVal - 1) * (_x);
- var y = (scaleVal - 1) * (_y);
-
- $image.css('transform', 'scale3d(' + scaleVal + ', ' + scaleVal + ', 1)').attr('data-scale', scaleVal);
-
- $image.parent().css({
- left: -x + 'px',
- top: -y + 'px'
- }).attr('data-x', x).attr('data-y', y);
- };
-
- var callScale = function() {
- if (scale > 1) {
- _this.core.$outer.addClass('lg-zoomed');
- } else {
- _this.resetZoom();
- }
-
- if (scale < 1) {
- scale = 1;
- }
-
- zoom(scale);
- };
-
- var actualSize = function(event, $image, index, fromIcon) {
- var w = $image.width();
- var nw;
- if (_this.core.s.dynamic) {
- nw = _this.core.s.dynamicEl[index].width || $image[0].naturalWidth || w;
- } else {
- nw = _this.core.$items.eq(index).attr('data-width') || $image[0].naturalWidth || w;
- }
-
- var _scale;
-
- if (_this.core.$outer.hasClass('lg-zoomed')) {
- scale = 1;
- } else {
- if (nw > w) {
- _scale = nw / w;
- scale = _scale || 2;
- }
- }
-
- if (fromIcon) {
- _this.pageX = $(window).width() / 2;
- _this.pageY = ($(window).height() / 2) + $(window).scrollTop();
- } else {
- _this.pageX = event.pageX || event.originalEvent.targetTouches[0].pageX;
- _this.pageY = event.pageY || event.originalEvent.targetTouches[0].pageY;
- }
-
- callScale();
- setTimeout(function() {
- _this.core.$outer.removeClass('lg-grabbing').addClass('lg-grab');
- }, 10);
- };
-
- var tapped = false;
-
- // event triggered after appending slide content
- _this.core.$el.on('onAferAppendSlide.lg.tm.zoom', function(event, index) {
-
- // Get the current element
- var $image = _this.core.$slide.eq(index).find('.lg-image');
-
- $image.on('dblclick', function(event) {
- actualSize(event, $image, index);
- });
-
- $image.on('touchstart', function(event) {
- if (!tapped) {
- tapped = setTimeout(function() {
- tapped = null;
- }, 300);
- } else {
- clearTimeout(tapped);
- tapped = null;
- actualSize(event, $image, index);
- }
-
- event.preventDefault();
- });
-
- });
-
- // Update zoom on resize and orientationchange
- $(window).on('resize.lg.zoom scroll.lg.zoom orientationchange.lg.zoom', function() {
- _this.pageX = $(window).width() / 2;
- _this.pageY = ($(window).height() / 2) + $(window).scrollTop();
- zoom(scale);
- });
-
- $('#lg-zoom-out').on('click.lg', function() {
- if (_this.core.$outer.find('.lg-current .lg-image').length) {
- scale -= _this.core.s.scale;
- callScale();
- }
- });
-
- $('#lg-zoom-in').on('click.lg', function() {
- if (_this.core.$outer.find('.lg-current .lg-image').length) {
- scale += _this.core.s.scale;
- callScale();
- }
- });
-
- $('#lg-actual-size').on('click.lg', function(event) {
- actualSize(event, _this.core.$slide.eq(_this.core.index).find('.lg-image'), _this.core.index, true);
- });
-
- // Reset zoom on slide change
- _this.core.$el.on('onBeforeSlide.lg.tm', function() {
- scale = 1;
- _this.resetZoom();
- });
-
- // Drag option after zoom
- if (!_this.core.isTouch) {
- _this.zoomDrag();
- }
-
- if (_this.core.isTouch) {
- _this.zoomSwipe();
- }
-
- };
-
- // Reset zoom effect
- Zoom.prototype.resetZoom = function() {
- this.core.$outer.removeClass('lg-zoomed');
- this.core.$slide.find('.lg-img-wrap').removeAttr('style data-x data-y');
- this.core.$slide.find('.lg-image').removeAttr('style data-scale');
-
- // Reset pagx pagy values to center
- this.pageX = $(window).width() / 2;
- this.pageY = ($(window).height() / 2) + $(window).scrollTop();
- };
-
- Zoom.prototype.zoomSwipe = function() {
- var _this = this;
- var startCoords = {};
- var endCoords = {};
- var isMoved = false;
-
- // Allow x direction drag
- var allowX = false;
-
- // Allow Y direction drag
- var allowY = false;
-
- _this.core.$slide.on('touchstart.lg', function(e) {
-
- if (_this.core.$outer.hasClass('lg-zoomed')) {
- var $image = _this.core.$slide.eq(_this.core.index).find('.lg-object');
-
- allowY = $image.outerHeight() * $image.attr('data-scale') > _this.core.$outer.find('.lg').height();
- allowX = $image.outerWidth() * $image.attr('data-scale') > _this.core.$outer.find('.lg').width();
- if ((allowX || allowY)) {
- e.preventDefault();
- startCoords = {
- x: e.originalEvent.targetTouches[0].pageX,
- y: e.originalEvent.targetTouches[0].pageY
- };
- }
- }
-
- });
-
- _this.core.$slide.on('touchmove.lg', function(e) {
-
- if (_this.core.$outer.hasClass('lg-zoomed')) {
-
- var _$el = _this.core.$slide.eq(_this.core.index).find('.lg-img-wrap');
- var distanceX;
- var distanceY;
-
- e.preventDefault();
- isMoved = true;
-
- endCoords = {
- x: e.originalEvent.targetTouches[0].pageX,
- y: e.originalEvent.targetTouches[0].pageY
- };
-
- // reset opacity and transition duration
- _this.core.$outer.addClass('lg-zoom-dragging');
-
- if (allowY) {
- distanceY = (-Math.abs(_$el.attr('data-y'))) + (endCoords.y - startCoords.y);
- } else {
- distanceY = -Math.abs(_$el.attr('data-y'));
- }
-
- if (allowX) {
- distanceX = (-Math.abs(_$el.attr('data-x'))) + (endCoords.x - startCoords.x);
- } else {
- distanceX = -Math.abs(_$el.attr('data-x'));
- }
-
- if ((Math.abs(endCoords.x - startCoords.x) > 15) || (Math.abs(endCoords.y - startCoords.y) > 15)) {
- _$el.css({
- left: distanceX + 'px',
- top: distanceY + 'px'
- });
- }
-
- }
-
- });
-
- _this.core.$slide.on('touchend.lg', function() {
- if (_this.core.$outer.hasClass('lg-zoomed')) {
- if (isMoved) {
- isMoved = false;
- _this.core.$outer.removeClass('lg-zoom-dragging');
- _this.touchendZoom(startCoords, endCoords, allowX, allowY);
-
- }
- }
- });
-
- };
-
- Zoom.prototype.zoomDrag = function() {
-
- var _this = this;
- var startCoords = {};
- var endCoords = {};
- var isDraging = false;
- var isMoved = false;
-
- // Allow x direction drag
- var allowX = false;
-
- // Allow Y direction drag
- var allowY = false;
-
- _this.core.$slide.on('mousedown.lg.zoom', function(e) {
-
- // execute only on .lg-object
- var $image = _this.core.$slide.eq(_this.core.index).find('.lg-object');
-
- allowY = $image.outerHeight() * $image.attr('data-scale') > _this.core.$outer.find('.lg').height();
- allowX = $image.outerWidth() * $image.attr('data-scale') > _this.core.$outer.find('.lg').width();
-
- if (_this.core.$outer.hasClass('lg-zoomed')) {
- if ($(e.target).hasClass('lg-object') && (allowX || allowY)) {
- e.preventDefault();
- startCoords = {
- x: e.pageX,
- y: e.pageY
- };
-
- isDraging = true;
-
- // ** Fix for webkit cursor issue https://code.google.com/p/chromium/issues/detail?id=26723
- _this.core.$outer.scrollLeft += 1;
- _this.core.$outer.scrollLeft -= 1;
-
- _this.core.$outer.removeClass('lg-grab').addClass('lg-grabbing');
- }
- }
- });
-
- $(window).on('mousemove.lg.zoom', function(e) {
- if (isDraging) {
- var _$el = _this.core.$slide.eq(_this.core.index).find('.lg-img-wrap');
- var distanceX;
- var distanceY;
-
- isMoved = true;
- endCoords = {
- x: e.pageX,
- y: e.pageY
- };
-
- // reset opacity and transition duration
- _this.core.$outer.addClass('lg-zoom-dragging');
-
- if (allowY) {
- distanceY = (-Math.abs(_$el.attr('data-y'))) + (endCoords.y - startCoords.y);
- } else {
- distanceY = -Math.abs(_$el.attr('data-y'));
- }
-
- if (allowX) {
- distanceX = (-Math.abs(_$el.attr('data-x'))) + (endCoords.x - startCoords.x);
- } else {
- distanceX = -Math.abs(_$el.attr('data-x'));
- }
-
- _$el.css({
- left: distanceX + 'px',
- top: distanceY + 'px'
- });
- }
- });
-
- $(window).on('mouseup.lg.zoom', function(e) {
-
- if (isDraging) {
- isDraging = false;
- _this.core.$outer.removeClass('lg-zoom-dragging');
-
- // Fix for chrome mouse move on click
- if (isMoved && ((startCoords.x !== endCoords.x) || (startCoords.y !== endCoords.y))) {
- endCoords = {
- x: e.pageX,
- y: e.pageY
- };
- _this.touchendZoom(startCoords, endCoords, allowX, allowY);
-
- }
-
- isMoved = false;
- }
-
- _this.core.$outer.removeClass('lg-grabbing').addClass('lg-grab');
-
- });
- };
-
- Zoom.prototype.touchendZoom = function(startCoords, endCoords, allowX, allowY) {
-
- var _this = this;
- var _$el = _this.core.$slide.eq(_this.core.index).find('.lg-img-wrap');
- var $image = _this.core.$slide.eq(_this.core.index).find('.lg-object');
- var distanceX = (-Math.abs(_$el.attr('data-x'))) + (endCoords.x - startCoords.x);
- var distanceY = (-Math.abs(_$el.attr('data-y'))) + (endCoords.y - startCoords.y);
- var minY = (_this.core.$outer.find('.lg').height() - $image.outerHeight()) / 2;
- var maxY = Math.abs(($image.outerHeight() * Math.abs($image.attr('data-scale'))) - _this.core.$outer.find('.lg').height() + minY);
- var minX = (_this.core.$outer.find('.lg').width() - $image.outerWidth()) / 2;
- var maxX = Math.abs(($image.outerWidth() * Math.abs($image.attr('data-scale'))) - _this.core.$outer.find('.lg').width() + minX);
-
- if ((Math.abs(endCoords.x - startCoords.x) > 15) || (Math.abs(endCoords.y - startCoords.y) > 15)) {
- if (allowY) {
- if (distanceY <= -maxY) {
- distanceY = -maxY;
- } else if (distanceY >= -minY) {
- distanceY = -minY;
- }
- }
-
- if (allowX) {
- if (distanceX <= -maxX) {
- distanceX = -maxX;
- } else if (distanceX >= -minX) {
- distanceX = -minX;
- }
- }
-
- if (allowY) {
- _$el.attr('data-y', Math.abs(distanceY));
- } else {
- distanceY = -Math.abs(_$el.attr('data-y'));
- }
-
- if (allowX) {
- _$el.attr('data-x', Math.abs(distanceX));
- } else {
- distanceX = -Math.abs(_$el.attr('data-x'));
- }
-
- _$el.css({
- left: distanceX + 'px',
- top: distanceY + 'px'
- });
-
- }
- };
-
- Zoom.prototype.destroy = function() {
-
- var _this = this;
-
- // Unbind all events added by lightGallery zoom plugin
- _this.core.$el.off('.lg.zoom');
- $(window).off('.lg.zoom');
- _this.core.$slide.off('.lg.zoom');
- _this.core.$el.off('.lg.tm.zoom');
- _this.resetZoom();
- clearTimeout(_this.zoomabletimeout);
- _this.zoomabletimeout = false;
- };
-
- $.fn.lightGallery.modules.zoom = Zoom;
-
-})(jQuery, window, document);
\ No newline at end of file
diff --git a/debian/lib/lightgallery/lightgallery.css b/debian/lib/lightgallery/lightgallery.css
deleted file mode 100644
index 8adf89e..0000000
--- a/debian/lib/lightgallery/lightgallery.css
+++ /dev/null
@@ -1,846 +0,0 @@
-/*! lightgallery - v1.2.21 - 2016-06-28
-* http://sachinchoolur.github.io/lightGallery/
-* Copyright (c) 2016 Sachin N; Licensed Apache 2.0 */
- at font-face {
- font-family: 'lg';
- src: url("../fonts/lg.eot?n1z373");
- src: url("../fonts/lg.eot?#iefixn1z373") format("embedded-opentype"), url("../fonts/lg.woff?n1z373") format("woff"), url("../fonts/lg.ttf?n1z373") format("truetype"), url("../fonts/lg.svg?n1z373#lg") format("svg");
- font-weight: normal;
- font-style: normal;
-}
-.lg-icon {
- font-family: 'lg';
- speak: none;
- font-style: normal;
- font-weight: normal;
- font-variant: normal;
- text-transform: none;
- line-height: 1;
- /* Better Font Rendering =========== */
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
-}
-
-.lg-actions .lg-next, .lg-actions .lg-prev {
- background-color: rgba(0, 0, 0, 0.45);
- border-radius: 2px;
- color: #999;
- cursor: pointer;
- display: block;
- font-size: 22px;
- margin-top: -10px;
- padding: 8px 10px 9px;
- position: absolute;
- top: 50%;
- z-index: 1080;
-}
-.lg-actions .lg-next.disabled, .lg-actions .lg-prev.disabled {
- pointer-events: none;
- opacity: 0.5;
-}
-.lg-actions .lg-next:hover, .lg-actions .lg-prev:hover {
- color: #FFF;
-}
-.lg-actions .lg-next {
- right: 20px;
-}
-.lg-actions .lg-next:before {
- content: "\e095";
-}
-.lg-actions .lg-prev {
- left: 20px;
-}
-.lg-actions .lg-prev:after {
- content: "\e094";
-}
-
- at -webkit-keyframes lg-right-end {
- 0% {
- left: 0;
- }
- 50% {
- left: -30px;
- }
- 100% {
- left: 0;
- }
-}
- at -moz-keyframes lg-right-end {
- 0% {
- left: 0;
- }
- 50% {
- left: -30px;
- }
- 100% {
- left: 0;
- }
-}
- at -ms-keyframes lg-right-end {
- 0% {
- left: 0;
- }
- 50% {
- left: -30px;
- }
- 100% {
- left: 0;
- }
-}
- at keyframes lg-right-end {
- 0% {
- left: 0;
- }
- 50% {
- left: -30px;
- }
- 100% {
- left: 0;
- }
-}
- at -webkit-keyframes lg-left-end {
- 0% {
- left: 0;
- }
- 50% {
- left: 30px;
- }
- 100% {
- left: 0;
- }
-}
- at -moz-keyframes lg-left-end {
- 0% {
- left: 0;
- }
- 50% {
- left: 30px;
- }
- 100% {
- left: 0;
- }
-}
- at -ms-keyframes lg-left-end {
- 0% {
- left: 0;
- }
- 50% {
- left: 30px;
- }
- 100% {
- left: 0;
- }
-}
- at keyframes lg-left-end {
- 0% {
- left: 0;
- }
- 50% {
- left: 30px;
- }
- 100% {
- left: 0;
- }
-}
-.lg-outer.lg-right-end .lg-object {
- -webkit-animation: lg-right-end 0.3s;
- -o-animation: lg-right-end 0.3s;
- animation: lg-right-end 0.3s;
- position: relative;
-}
-.lg-outer.lg-left-end .lg-object {
- -webkit-animation: lg-left-end 0.3s;
- -o-animation: lg-left-end 0.3s;
- animation: lg-left-end 0.3s;
- position: relative;
-}
-
-.lg-toolbar {
- z-index: 1082;
- left: 0;
- position: absolute;
- top: 0;
- width: 100%;
- background-color: rgba(0, 0, 0, 0.45);
-}
-.lg-toolbar .lg-icon {
- color: #999;
- cursor: pointer;
- float: right;
- font-size: 24px;
- height: 47px;
- line-height: 27px;
- padding: 10px 0;
- text-align: center;
- width: 50px;
- text-decoration: none !important;
- outline: medium none;
- -webkit-transition: color 0.2s linear;
- -o-transition: color 0.2s linear;
- transition: color 0.2s linear;
-}
-.lg-toolbar .lg-icon:hover {
- color: #FFF;
-}
-.lg-toolbar .lg-close:after {
- content: "\e070";
-}
-.lg-toolbar .lg-download:after {
- content: "\e0f2";
-}
-
-.lg-sub-html {
- background-color: rgba(0, 0, 0, 0.45);
- bottom: 0;
- color: #EEE;
- font-size: 16px;
- left: 0;
- padding: 10px 40px;
- position: fixed;
- right: 0;
- text-align: center;
- z-index: 1080;
-}
-.lg-sub-html h4 {
- margin: 0;
- font-size: 13px;
- font-weight: bold;
-}
-.lg-sub-html p {
- font-size: 12px;
- margin: 5px 0 0;
-}
-
-#lg-counter {
- color: #999;
- display: inline-block;
- font-size: 16px;
- padding-left: 20px;
- padding-top: 12px;
- vertical-align: middle;
-}
-
-.lg-toolbar, .lg-prev, .lg-next {
- opacity: 1;
- -webkit-transition: -webkit-transform 0.35s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.35s cubic-bezier(0, 0, 0.25, 1) 0s, color 0.2s linear;
- -moz-transition: -moz-transform 0.35s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.35s cubic-bezier(0, 0, 0.25, 1) 0s, color 0.2s linear;
- -o-transition: -o-transform 0.35s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.35s cubic-bezier(0, 0, 0.25, 1) 0s, color 0.2s linear;
- transition: transform 0.35s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.35s cubic-bezier(0, 0, 0.25, 1) 0s, color 0.2s linear;
-}
-
-.lg-hide-items .lg-prev {
- opacity: 0;
- -webkit-transform: translate3d(-10px, 0, 0);
- transform: translate3d(-10px, 0, 0);
-}
-.lg-hide-items .lg-next {
- opacity: 0;
- -webkit-transform: translate3d(10px, 0, 0);
- transform: translate3d(10px, 0, 0);
-}
-.lg-hide-items .lg-toolbar {
- opacity: 0;
- -webkit-transform: translate3d(0, -10px, 0);
- transform: translate3d(0, -10px, 0);
-}
-
-body:not(.lg-from-hash) .lg-outer.lg-start-zoom .lg-object {
- -webkit-transform: scale3d(0.5, 0.5, 0.5);
- transform: scale3d(0.5, 0.5, 0.5);
- opacity: 0;
- -webkit-transition: -webkit-transform 250ms cubic-bezier(0, 0, 0.25, 1) 0s, opacity 250ms cubic-bezier(0, 0, 0.25, 1) !important;
- -moz-transition: -moz-transform 250ms cubic-bezier(0, 0, 0.25, 1) 0s, opacity 250ms cubic-bezier(0, 0, 0.25, 1) !important;
- -o-transition: -o-transform 250ms cubic-bezier(0, 0, 0.25, 1) 0s, opacity 250ms cubic-bezier(0, 0, 0.25, 1) !important;
- transition: transform 250ms cubic-bezier(0, 0, 0.25, 1) 0s, opacity 250ms cubic-bezier(0, 0, 0.25, 1) !important;
- -webkit-transform-origin: 50% 50%;
- -moz-transform-origin: 50% 50%;
- -ms-transform-origin: 50% 50%;
- transform-origin: 50% 50%;
-}
-body:not(.lg-from-hash) .lg-outer.lg-start-zoom .lg-item.lg-complete .lg-object {
- -webkit-transform: scale3d(1, 1, 1);
- transform: scale3d(1, 1, 1);
- opacity: 1;
-}
-
-.lg-outer .lg-thumb-outer {
- background-color: #0D0A0A;
- bottom: 0;
- position: absolute;
- width: 100%;
- z-index: 1080;
- max-height: 350px;
- -webkit-transform: translate3d(0, 100%, 0);
- transform: translate3d(0, 100%, 0);
- -webkit-transition: -webkit-transform 0.25s cubic-bezier(0, 0, 0.25, 1) 0s;
- -moz-transition: -moz-transform 0.25s cubic-bezier(0, 0, 0.25, 1) 0s;
- -o-transition: -o-transform 0.25s cubic-bezier(0, 0, 0.25, 1) 0s;
- transition: transform 0.25s cubic-bezier(0, 0, 0.25, 1) 0s;
-}
-.lg-outer .lg-thumb-outer.lg-grab .lg-thumb-item {
- cursor: -webkit-grab;
- cursor: -moz-grab;
- cursor: -o-grab;
- cursor: -ms-grab;
- cursor: grab;
-}
-.lg-outer .lg-thumb-outer.lg-grabbing .lg-thumb-item {
- cursor: move;
- cursor: -webkit-grabbing;
- cursor: -moz-grabbing;
- cursor: -o-grabbing;
- cursor: -ms-grabbing;
- cursor: grabbing;
-}
-.lg-outer .lg-thumb-outer.lg-dragging .lg-thumb {
- -webkit-transition-duration: 0s !important;
- transition-duration: 0s !important;
-}
-.lg-outer.lg-thumb-open .lg-thumb-outer {
- -webkit-transform: translate3d(0, 0%, 0);
- transform: translate3d(0, 0%, 0);
-}
-.lg-outer .lg-thumb {
- padding: 10px 0;
- height: 100%;
- margin-bottom: -5px;
-}
-.lg-outer .lg-thumb-item {
- border-radius: 5px;
- cursor: pointer;
- float: left;
- overflow: hidden;
- height: 100%;
- border: 2px solid #FFF;
- border-radius: 4px;
- margin-bottom: 5px;
-}
- at media (min-width: 1025px) {
- .lg-outer .lg-thumb-item {
- -webkit-transition: border-color 0.25s ease;
- -o-transition: border-color 0.25s ease;
- transition: border-color 0.25s ease;
- }
-}
-.lg-outer .lg-thumb-item.active, .lg-outer .lg-thumb-item:hover {
- border-color: #a90707;
-}
-.lg-outer .lg-thumb-item img {
- width: 100%;
- height: 100%;
- object-fit: cover;
-}
-.lg-outer.lg-has-thumb .lg-item {
- padding-bottom: 120px;
-}
-.lg-outer.lg-can-toggle .lg-item {
- padding-bottom: 0;
-}
-.lg-outer.lg-pull-caption-up .lg-sub-html {
- -webkit-transition: bottom 0.25s ease;
- -o-transition: bottom 0.25s ease;
- transition: bottom 0.25s ease;
-}
-.lg-outer.lg-pull-caption-up.lg-thumb-open .lg-sub-html {
- bottom: 100px;
-}
-.lg-outer .lg-toogle-thumb {
- background-color: #0D0A0A;
- border-radius: 2px 2px 0 0;
- color: #999;
- cursor: pointer;
- font-size: 24px;
- height: 39px;
- line-height: 27px;
- padding: 5px 0;
- position: absolute;
- right: 20px;
- text-align: center;
- top: -39px;
- width: 50px;
-}
-.lg-outer .lg-toogle-thumb:after {
- content: "\e1ff";
-}
-.lg-outer .lg-toogle-thumb:hover {
- color: #FFF;
-}
-
-.lg-outer .lg-video-cont {
- display: inline-block;
- vertical-align: middle;
- max-width: 1140px;
- max-height: 100%;
- width: 100%;
- padding: 0 5px;
-}
-.lg-outer .lg-video {
- width: 100%;
- height: 0;
- padding-bottom: 56.25%;
- overflow: hidden;
- position: relative;
-}
-.lg-outer .lg-video .lg-object {
- display: inline-block;
- position: absolute;
- top: 0;
- left: 0;
- width: 100% !important;
- height: 100% !important;
-}
-.lg-outer .lg-video .lg-video-play {
- width: 84px;
- height: 59px;
- position: absolute;
- left: 50%;
- top: 50%;
- margin-left: -42px;
- margin-top: -30px;
- z-index: 1080;
- cursor: pointer;
-}
-.lg-outer .lg-has-vimeo .lg-video-play {
- background: url("../img/vimeo-play.png") no-repeat scroll 0 0 transparent;
-}
-.lg-outer .lg-has-vimeo:hover .lg-video-play {
- background: url("../img/vimeo-play.png") no-repeat scroll 0 -58px transparent;
-}
-.lg-outer .lg-has-html5 .lg-video-play {
- background: transparent url("../img/video-play.png") no-repeat scroll 0 0;
- height: 64px;
- margin-left: -32px;
- margin-top: -32px;
- width: 64px;
- opacity: 0.8;
-}
-.lg-outer .lg-has-html5:hover .lg-video-play {
- opacity: 1;
-}
-.lg-outer .lg-has-youtube .lg-video-play {
- background: url("../img/youtube-play.png") no-repeat scroll 0 0 transparent;
-}
-.lg-outer .lg-has-youtube:hover .lg-video-play {
- background: url("../img/youtube-play.png") no-repeat scroll 0 -60px transparent;
-}
-.lg-outer .lg-video-object {
- width: 100% !important;
- height: 100% !important;
- position: absolute;
- top: 0;
- left: 0;
-}
-.lg-outer .lg-has-video .lg-video-object {
- visibility: hidden;
-}
-.lg-outer .lg-has-video.lg-video-playing .lg-object, .lg-outer .lg-has-video.lg-video-playing .lg-video-play {
- display: none;
-}
-.lg-outer .lg-has-video.lg-video-playing .lg-video-object {
- visibility: visible;
-}
-
-.lg-progress-bar {
- background-color: #333;
- height: 5px;
- left: 0;
- position: absolute;
- top: 0;
- width: 100%;
- z-index: 1083;
- opacity: 0;
- -webkit-transition: opacity 0.08s ease 0s;
- -moz-transition: opacity 0.08s ease 0s;
- -o-transition: opacity 0.08s ease 0s;
- transition: opacity 0.08s ease 0s;
-}
-.lg-progress-bar .lg-progress {
- background-color: #a90707;
- height: 5px;
- width: 0;
-}
-.lg-progress-bar.lg-start .lg-progress {
- width: 100%;
-}
-.lg-show-autoplay .lg-progress-bar {
- opacity: 1;
-}
-
-.lg-autoplay-button:after {
- content: "\e01d";
-}
-.lg-show-autoplay .lg-autoplay-button:after {
- content: "\e01a";
-}
-
-.lg-outer.lg-css3.lg-zoom-dragging .lg-item.lg-complete.lg-zoomable .lg-img-wrap, .lg-outer.lg-css3.lg-zoom-dragging .lg-item.lg-complete.lg-zoomable .lg-image {
- -webkit-transition-duration: 0s;
- transition-duration: 0s;
-}
-.lg-outer .lg-item.lg-complete.lg-zoomable .lg-img-wrap {
- -webkit-transition: left 0.3s cubic-bezier(0, 0, 0.25, 1) 0s, top 0.3s cubic-bezier(0, 0, 0.25, 1) 0s;
- -moz-transition: left 0.3s cubic-bezier(0, 0, 0.25, 1) 0s, top 0.3s cubic-bezier(0, 0, 0.25, 1) 0s;
- -o-transition: left 0.3s cubic-bezier(0, 0, 0.25, 1) 0s, top 0.3s cubic-bezier(0, 0, 0.25, 1) 0s;
- transition: left 0.3s cubic-bezier(0, 0, 0.25, 1) 0s, top 0.3s cubic-bezier(0, 0, 0.25, 1) 0s;
- -webkit-transform: translate3d(0, 0, 0);
- transform: translate3d(0, 0, 0);
- -webkit-backface-visibility: hidden;
- -moz-backface-visibility: hidden;
- backface-visibility: hidden;
-}
-.lg-outer .lg-item.lg-complete.lg-zoomable .lg-image {
- -webkit-transform: scale3d(1, 1, 1);
- transform: scale3d(1, 1, 1);
- -webkit-transition: -webkit-transform 0.3s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.15s !important;
- -moz-transition: -moz-transform 0.3s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.15s !important;
- -o-transition: -o-transform 0.3s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.15s !important;
- transition: transform 0.3s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.15s !important;
- -webkit-transform-origin: 0 0;
- -moz-transform-origin: 0 0;
- -ms-transform-origin: 0 0;
- transform-origin: 0 0;
- -webkit-backface-visibility: hidden;
- -moz-backface-visibility: hidden;
- backface-visibility: hidden;
-}
-
-#lg-zoom-in:after {
- content: "\e311";
-}
-
-#lg-actual-size {
- font-size: 20px;
-}
-#lg-actual-size:after {
- content: "\e033";
-}
-
-#lg-zoom-out {
- opacity: 0.5;
- pointer-events: none;
-}
-#lg-zoom-out:after {
- content: "\e312";
-}
-.lg-zoomed #lg-zoom-out {
- opacity: 1;
- pointer-events: auto;
-}
-
-.lg-outer .lg-pager-outer {
- bottom: 60px;
- left: 0;
- position: absolute;
- right: 0;
- text-align: center;
- z-index: 1080;
- height: 10px;
-}
-.lg-outer .lg-pager-outer.lg-pager-hover .lg-pager-cont {
- overflow: visible;
-}
-.lg-outer .lg-pager-cont {
- cursor: pointer;
- display: inline-block;
- overflow: hidden;
- position: relative;
- vertical-align: top;
- margin: 0 5px;
-}
-.lg-outer .lg-pager-cont:hover .lg-pager-thumb-cont {
- opacity: 1;
- -webkit-transform: translate3d(0, 0, 0);
- transform: translate3d(0, 0, 0);
-}
-.lg-outer .lg-pager-cont.lg-pager-active .lg-pager {
- box-shadow: 0 0 0 2px white inset;
-}
-.lg-outer .lg-pager-thumb-cont {
- background-color: #fff;
- color: #FFF;
- bottom: 100%;
- height: 83px;
- left: 0;
- margin-bottom: 20px;
- margin-left: -60px;
- opacity: 0;
- padding: 5px;
- position: absolute;
- width: 120px;
- border-radius: 3px;
- -webkit-transition: opacity 0.15s ease 0s, -webkit-transform 0.15s ease 0s;
- -moz-transition: opacity 0.15s ease 0s, -moz-transform 0.15s ease 0s;
- -o-transition: opacity 0.15s ease 0s, -o-transform 0.15s ease 0s;
- transition: opacity 0.15s ease 0s, transform 0.15s ease 0s;
- -webkit-transform: translate3d(0, 5px, 0);
- transform: translate3d(0, 5px, 0);
-}
-.lg-outer .lg-pager-thumb-cont img {
- width: 100%;
- height: 100%;
-}
-.lg-outer .lg-pager {
- background-color: rgba(255, 255, 255, 0.5);
- border-radius: 50%;
- box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.7) inset;
- display: block;
- height: 12px;
- -webkit-transition: box-shadow 0.3s ease 0s;
- -o-transition: box-shadow 0.3s ease 0s;
- transition: box-shadow 0.3s ease 0s;
- width: 12px;
-}
-.lg-outer .lg-pager:hover, .lg-outer .lg-pager:focus {
- box-shadow: 0 0 0 8px white inset;
-}
-.lg-outer .lg-caret {
- border-left: 10px solid transparent;
- border-right: 10px solid transparent;
- border-top: 10px dashed;
- bottom: -10px;
- display: inline-block;
- height: 0;
- left: 50%;
- margin-left: -5px;
- position: absolute;
- vertical-align: middle;
- width: 0;
-}
-
-.lg-fullscreen:after {
- content: "\e20c";
-}
-.lg-fullscreen-on .lg-fullscreen:after {
- content: "\e20d";
-}
-
-.group {
- *zoom: 1;
-}
-
-.group:before, .group:after {
- display: table;
- content: "";
- line-height: 0;
-}
-
-.group:after {
- clear: both;
-}
-
-.lg-outer {
- width: 100%;
- height: 100%;
- position: fixed;
- top: 0;
- left: 0;
- z-index: 1050;
- opacity: 0;
- -webkit-transition: opacity 0.15s ease 0s;
- -o-transition: opacity 0.15s ease 0s;
- transition: opacity 0.15s ease 0s;
-}
-.lg-outer * {
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
- box-sizing: border-box;
-}
-.lg-outer.lg-visible {
- opacity: 1;
-}
-.lg-outer.lg-css3 .lg-item.lg-prev-slide, .lg-outer.lg-css3 .lg-item.lg-next-slide, .lg-outer.lg-css3 .lg-item.lg-current {
- -webkit-transition-duration: inherit !important;
- transition-duration: inherit !important;
- -webkit-transition-timing-function: inherit !important;
- transition-timing-function: inherit !important;
-}
-.lg-outer.lg-css3.lg-dragging .lg-item.lg-prev-slide, .lg-outer.lg-css3.lg-dragging .lg-item.lg-next-slide, .lg-outer.lg-css3.lg-dragging .lg-item.lg-current {
- -webkit-transition-duration: 0s !important;
- transition-duration: 0s !important;
- opacity: 1;
-}
-.lg-outer.lg-grab img.lg-object {
- cursor: -webkit-grab;
- cursor: -moz-grab;
- cursor: -o-grab;
- cursor: -ms-grab;
- cursor: grab;
-}
-.lg-outer.lg-grabbing img.lg-object {
- cursor: move;
- cursor: -webkit-grabbing;
- cursor: -moz-grabbing;
- cursor: -o-grabbing;
- cursor: -ms-grabbing;
- cursor: grabbing;
-}
-.lg-outer .lg {
- height: 100%;
- width: 100%;
- position: relative;
- overflow: hidden;
- margin-left: auto;
- margin-right: auto;
- max-width: 100%;
- max-height: 100%;
-}
-.lg-outer .lg-inner {
- width: 100%;
- height: 100%;
- position: absolute;
- left: 0;
- top: 0;
- white-space: nowrap;
-}
-.lg-outer .lg-item {
- background: url("../img/loading.gif") no-repeat scroll center center transparent;
- display: none !important;
-}
-.lg-outer.lg-css3 .lg-prev-slide, .lg-outer.lg-css3 .lg-current, .lg-outer.lg-css3 .lg-next-slide {
- display: inline-block !important;
-}
-.lg-outer.lg-css .lg-current {
- display: inline-block !important;
-}
-.lg-outer .lg-item, .lg-outer .lg-img-wrap {
- display: inline-block;
- text-align: center;
- position: absolute;
- width: 100%;
- height: 100%;
-}
-.lg-outer .lg-item:before, .lg-outer .lg-img-wrap:before {
- content: "";
- display: inline-block;
- height: 50%;
- width: 1px;
- margin-right: -1px;
-}
-.lg-outer .lg-img-wrap {
- position: absolute;
- padding: 0 5px;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
-}
-.lg-outer .lg-item.lg-complete {
- background-image: none;
-}
-.lg-outer .lg-item.lg-current {
- z-index: 1060;
-}
-.lg-outer .lg-image {
- display: inline-block;
- vertical-align: middle;
- max-width: 100%;
- max-height: 100%;
- width: auto !important;
- height: auto !important;
-}
-.lg-outer.lg-show-after-load .lg-item .lg-object, .lg-outer.lg-show-after-load .lg-item .lg-video-play {
- opacity: 0;
- -webkit-transition: opacity 0.15s ease 0s;
- -o-transition: opacity 0.15s ease 0s;
- transition: opacity 0.15s ease 0s;
-}
-.lg-outer.lg-show-after-load .lg-item.lg-complete .lg-object, .lg-outer.lg-show-after-load .lg-item.lg-complete .lg-video-play {
- opacity: 1;
-}
-.lg-outer .lg-empty-html {
- display: none;
-}
-.lg-outer.lg-hide-download #lg-download {
- display: none;
-}
-
-.lg-backdrop {
- position: fixed;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- z-index: 1040;
- background-color: #000;
- opacity: 0;
- -webkit-transition: opacity 0.15s ease 0s;
- -o-transition: opacity 0.15s ease 0s;
- transition: opacity 0.15s ease 0s;
-}
-.lg-backdrop.in {
- opacity: 1;
-}
-
-.lg-css3.lg-no-trans .lg-prev-slide, .lg-css3.lg-no-trans .lg-next-slide, .lg-css3.lg-no-trans .lg-current {
- -webkit-transition: none 0s ease 0s !important;
- -moz-transition: none 0s ease 0s !important;
- -o-transition: none 0s ease 0s !important;
- transition: none 0s ease 0s !important;
-}
-.lg-css3.lg-use-css3 .lg-item {
- -webkit-backface-visibility: hidden;
- -moz-backface-visibility: hidden;
- backface-visibility: hidden;
-}
-.lg-css3.lg-use-left .lg-item {
- -webkit-backface-visibility: hidden;
- -moz-backface-visibility: hidden;
- backface-visibility: hidden;
-}
-.lg-css3.lg-fade .lg-item {
- opacity: 0;
-}
-.lg-css3.lg-fade .lg-item.lg-current {
- opacity: 1;
-}
-.lg-css3.lg-fade .lg-item.lg-prev-slide, .lg-css3.lg-fade .lg-item.lg-next-slide, .lg-css3.lg-fade .lg-item.lg-current {
- -webkit-transition: opacity 0.1s ease 0s;
- -moz-transition: opacity 0.1s ease 0s;
- -o-transition: opacity 0.1s ease 0s;
- transition: opacity 0.1s ease 0s;
-}
-.lg-css3.lg-slide.lg-use-css3 .lg-item {
- opacity: 0;
-}
-.lg-css3.lg-slide.lg-use-css3 .lg-item.lg-prev-slide {
- -webkit-transform: translate3d(-100%, 0, 0);
- transform: translate3d(-100%, 0, 0);
-}
-.lg-css3.lg-slide.lg-use-css3 .lg-item.lg-next-slide {
- -webkit-transform: translate3d(100%, 0, 0);
- transform: translate3d(100%, 0, 0);
-}
-.lg-css3.lg-slide.lg-use-css3 .lg-item.lg-current {
- -webkit-transform: translate3d(0, 0, 0);
- transform: translate3d(0, 0, 0);
- opacity: 1;
-}
-.lg-css3.lg-slide.lg-use-css3 .lg-item.lg-prev-slide, .lg-css3.lg-slide.lg-use-css3 .lg-item.lg-next-slide, .lg-css3.lg-slide.lg-use-css3 .lg-item.lg-current {
- -webkit-transition: -webkit-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- -moz-transition: -moz-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- -o-transition: -o-transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- transition: transform 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
-}
-.lg-css3.lg-slide.lg-use-left .lg-item {
- opacity: 0;
- position: absolute;
- left: 0;
-}
-.lg-css3.lg-slide.lg-use-left .lg-item.lg-prev-slide {
- left: -100%;
-}
-.lg-css3.lg-slide.lg-use-left .lg-item.lg-next-slide {
- left: 100%;
-}
-.lg-css3.lg-slide.lg-use-left .lg-item.lg-current {
- left: 0;
- opacity: 1;
-}
-.lg-css3.lg-slide.lg-use-left .lg-item.lg-prev-slide, .lg-css3.lg-slide.lg-use-left .lg-item.lg-next-slide, .lg-css3.lg-slide.lg-use-left .lg-item.lg-current {
- -webkit-transition: left 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- -moz-transition: left 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- -o-transition: left 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
- transition: left 1s cubic-bezier(0, 0, 0.25, 1) 0s, opacity 0.1s ease 0s;
-}
-
-/*# sourceMappingURL=lightgallery.css.map */
diff --git a/debian/lib/lightgallery/lightgallery.js b/debian/lib/lightgallery/lightgallery.js
deleted file mode 100644
index eb6bace..0000000
--- a/debian/lib/lightgallery/lightgallery.js
+++ /dev/null
@@ -1,1317 +0,0 @@
-/*! lightgallery - v1.2.21 - 2016-06-28
-* http://sachinchoolur.github.io/lightGallery/
-* Copyright (c) 2016 Sachin N; Licensed Apache 2.0 */
-(function($, window, document, undefined) {
-
- 'use strict';
-
- var defaults = {
-
- mode: 'lg-slide',
-
- // Ex : 'ease'
- cssEasing: 'ease',
-
- //'for jquery animation'
- easing: 'linear',
- speed: 600,
- height: '100%',
- width: '100%',
- addClass: '',
- startClass: 'lg-start-zoom',
- backdropDuration: 150,
- hideBarsDelay: 6000,
-
- useLeft: false,
-
- closable: true,
- loop: true,
- escKey: true,
- keyPress: true,
- controls: true,
- slideEndAnimatoin: true,
- hideControlOnEnd: false,
- mousewheel: true,
-
- getCaptionFromTitleOrAlt: true,
-
- // .lg-item || '.lg-sub-html'
- appendSubHtmlTo: '.lg-sub-html',
-
- subHtmlSelectorRelative: false,
-
- /**
- * @desc number of preload slides
- * will exicute only after the current slide is fully loaded.
- *
- * @ex you clicked on 4th image and if preload = 1 then 3rd slide and 5th
- * slide will be loaded in the background after the 4th slide is fully loaded..
- * if preload is 2 then 2nd 3rd 5th 6th slides will be preloaded.. ... ...
- *
- */
- preload: 1,
- showAfterLoad: true,
- selector: '',
- selectWithin: '',
- nextHtml: '',
- prevHtml: '',
-
- // 0, 1
- index: false,
-
- iframeMaxWidth: '100%',
-
- download: true,
- counter: true,
- appendCounterTo: '.lg-toolbar',
-
- swipeThreshold: 50,
- enableSwipe: true,
- enableDrag: true,
-
- dynamic: false,
- dynamicEl: [],
- galleryId: 1
- };
-
- function Plugin(element, options) {
-
- // Current lightGallery element
- this.el = element;
-
- // Current jquery element
- this.$el = $(element);
-
- // lightGallery settings
- this.s = $.extend({}, defaults, options);
-
- // When using dynamic mode, ensure dynamicEl is an array
- if (this.s.dynamic && this.s.dynamicEl !== 'undefined' && this.s.dynamicEl.constructor === Array && !this.s.dynamicEl.length) {
- throw ('When using dynamic mode, you must also define dynamicEl as an Array.');
- }
-
- // lightGallery modules
- this.modules = {};
-
- // false when lightgallery complete first slide;
- this.lGalleryOn = false;
-
- this.lgBusy = false;
-
- // Timeout function for hiding controls;
- this.hideBartimeout = false;
-
- // To determine browser supports for touch events;
- this.isTouch = ('ontouchstart' in document.documentElement);
-
- // Disable hideControlOnEnd if sildeEndAnimation is true
- if (this.s.slideEndAnimatoin) {
- this.s.hideControlOnEnd = false;
- }
-
- // Gallery items
- if (this.s.dynamic) {
- this.$items = this.s.dynamicEl;
- } else {
- if (this.s.selector === 'this') {
- this.$items = this.$el;
- } else if (this.s.selector !== '') {
- if (this.s.selectWithin) {
- this.$items = $(this.s.selectWithin).find(this.s.selector);
- } else {
- this.$items = this.$el.find($(this.s.selector));
- }
- } else {
- this.$items = this.$el.children();
- }
- }
-
- // .lg-item
- this.$slide = '';
-
- // .lg-outer
- this.$outer = '';
-
- this.init();
-
- return this;
- }
-
- Plugin.prototype.init = function() {
-
- var _this = this;
-
- // s.preload should not be more than $item.length
- if (_this.s.preload > _this.$items.length) {
- _this.s.preload = _this.$items.length;
- }
-
- // if dynamic option is enabled execute immediately
- var _hash = window.location.hash;
- if (_hash.indexOf('lg=' + this.s.galleryId) > 0) {
-
- _this.index = parseInt(_hash.split('&slide=')[1], 10);
-
- $('body').addClass('lg-from-hash');
- if (!$('body').hasClass('lg-on')) {
- setTimeout(function() {
- _this.build(_this.index);
- $('body').addClass('lg-on');
- });
- }
- }
-
- if (_this.s.dynamic) {
-
- _this.$el.trigger('onBeforeOpen.lg');
-
- _this.index = _this.s.index || 0;
-
- // prevent accidental double execution
- if (!$('body').hasClass('lg-on')) {
- setTimeout(function() {
- _this.build(_this.index);
- $('body').addClass('lg-on');
- });
- }
- } else {
-
- // Using different namespace for click because click event should not unbind if selector is same object('this')
- _this.$items.on('click.lgcustom', function(event) {
-
- // For IE8
- try {
- event.preventDefault();
- event.preventDefault();
- } catch (er) {
- event.returnValue = false;
- }
-
- _this.$el.trigger('onBeforeOpen.lg');
-
- _this.index = _this.s.index || _this.$items.index(this);
-
- // prevent accidental double execution
- if (!$('body').hasClass('lg-on')) {
- _this.build(_this.index);
- $('body').addClass('lg-on');
- }
- });
- }
-
- };
-
- Plugin.prototype.build = function(index) {
-
- var _this = this;
-
- _this.structure();
-
- // module constructor
- $.each($.fn.lightGallery.modules, function(key) {
- _this.modules[key] = new $.fn.lightGallery.modules[key](_this.el);
- });
-
- // initiate slide function
- _this.slide(index, false, false);
-
- if (_this.s.keyPress) {
- _this.keyPress();
- }
-
- if (_this.$items.length > 1) {
-
- _this.arrow();
-
- setTimeout(function() {
- _this.enableDrag();
- _this.enableSwipe();
- }, 50);
-
- if (_this.s.mousewheel) {
- _this.mousewheel();
- }
- }
-
- _this.counter();
-
- _this.closeGallery();
-
- _this.$el.trigger('onAfterOpen.lg');
-
- // Hide controllers if mouse doesn't move for some period
- _this.$outer.on('mousemove.lg click.lg touchstart.lg', function() {
-
- _this.$outer.removeClass('lg-hide-items');
-
- clearTimeout(_this.hideBartimeout);
-
- // Timeout will be cleared on each slide movement also
- _this.hideBartimeout = setTimeout(function() {
- _this.$outer.addClass('lg-hide-items');
- }, _this.s.hideBarsDelay);
-
- });
-
- };
-
- Plugin.prototype.structure = function() {
- var list = '';
- var controls = '';
- var i = 0;
- var subHtmlCont = '';
- var template;
- var _this = this;
-
- $('body').append('<div class="lg-backdrop"></div>');
- $('.lg-backdrop').css('transition-duration', this.s.backdropDuration + 'ms');
-
- // Create gallery items
- for (i = 0; i < this.$items.length; i++) {
- list += '<div class="lg-item"></div>';
- }
-
- // Create controlls
- if (this.s.controls && this.$items.length > 1) {
- controls = '<div class="lg-actions">' +
- '<div class="lg-prev lg-icon">' + this.s.prevHtml + '</div>' +
- '<div class="lg-next lg-icon">' + this.s.nextHtml + '</div>' +
- '</div>';
- }
-
- if (this.s.appendSubHtmlTo === '.lg-sub-html') {
- subHtmlCont = '<div class="lg-sub-html"></div>';
- }
-
- template = '<div class="lg-outer ' + this.s.addClass + ' ' + this.s.startClass + '">' +
- '<div class="lg" style="width:' + this.s.width + '; height:' + this.s.height + '">' +
- '<div class="lg-inner">' + list + '</div>' +
- '<div class="lg-toolbar group">' +
- '<span class="lg-close lg-icon"></span>' +
- '</div>' +
- controls +
- subHtmlCont +
- '</div>' +
- '</div>';
-
- $('body').append(template);
- this.$outer = $('.lg-outer');
- this.$slide = this.$outer.find('.lg-item');
-
- if (this.s.useLeft) {
- this.$outer.addClass('lg-use-left');
-
- // Set mode lg-slide if use left is true;
- this.s.mode = 'lg-slide';
- } else {
- this.$outer.addClass('lg-use-css3');
- }
-
- // For fixed height gallery
- _this.setTop();
- $(window).on('resize.lg orientationchange.lg', function() {
- setTimeout(function() {
- _this.setTop();
- }, 100);
- });
-
- // add class lg-current to remove initial transition
- this.$slide.eq(this.index).addClass('lg-current');
-
- // add Class for css support and transition mode
- if (this.doCss()) {
- this.$outer.addClass('lg-css3');
- } else {
- this.$outer.addClass('lg-css');
-
- // Set speed 0 because no animation will happen if browser doesn't support css3
- this.s.speed = 0;
- }
-
- this.$outer.addClass(this.s.mode);
-
- if (this.s.enableDrag && this.$items.length > 1) {
- this.$outer.addClass('lg-grab');
- }
-
- if (this.s.showAfterLoad) {
- this.$outer.addClass('lg-show-after-load');
- }
-
- if (this.doCss()) {
- var $inner = this.$outer.find('.lg-inner');
- $inner.css('transition-timing-function', this.s.cssEasing);
- $inner.css('transition-duration', this.s.speed + 'ms');
- }
-
- $('.lg-backdrop').addClass('in');
-
- setTimeout(function() {
- _this.$outer.addClass('lg-visible');
- }, this.s.backdropDuration);
-
- if (this.s.download) {
- this.$outer.find('.lg-toolbar').append('<a id="lg-download" target="_blank" download class="lg-download lg-icon"></a>');
- }
-
- // Store the current scroll top value to scroll back after closing the gallery..
- this.prevScrollTop = $(window).scrollTop();
-
- };
-
- // For fixed height gallery
- Plugin.prototype.setTop = function() {
- if (this.s.height !== '100%') {
- var wH = $(window).height();
- var top = (wH - parseInt(this.s.height, 10)) / 2;
- var $lGallery = this.$outer.find('.lg');
- if (wH >= parseInt(this.s.height, 10)) {
- $lGallery.css('top', top + 'px');
- } else {
- $lGallery.css('top', '0px');
- }
- }
- };
-
- // Find css3 support
- Plugin.prototype.doCss = function() {
- // check for css animation support
- var support = function() {
- var transition = ['transition', 'MozTransition', 'WebkitTransition', 'OTransition', 'msTransition', 'KhtmlTransition'];
- var root = document.documentElement;
- var i = 0;
- for (i = 0; i < transition.length; i++) {
- if (transition[i] in root.style) {
- return true;
- }
- }
- };
-
- if (support()) {
- return true;
- }
-
- return false;
- };
-
- /**
- * @desc Check the given src is video
- * @param {String} src
- * @return {Object} video type
- * Ex:{ youtube : ["//www.youtube.com/watch?v=c0asJgSyxcY", "c0asJgSyxcY"] }
- */
- Plugin.prototype.isVideo = function(src, index) {
-
- var html;
- if (this.s.dynamic) {
- html = this.s.dynamicEl[index].html;
- } else {
- html = this.$items.eq(index).attr('data-html');
- }
-
- if (!src && html) {
- return {
- html5: true
- };
- }
-
- var youtube = src.match(/\/\/(?:www\.)?youtu(?:\.be|be\.com)\/(?:watch\?v=|embed\/)?([a-z0-9\-\_\%]+)/i);
- var vimeo = src.match(/\/\/(?:www\.)?vimeo.com\/([0-9a-z\-_]+)/i);
- var dailymotion = src.match(/\/\/(?:www\.)?dai.ly\/([0-9a-z\-_]+)/i);
- var vk = src.match(/\/\/(?:www\.)?(?:vk\.com|vkontakte\.ru)\/(?:video_ext\.php\?)(.*)/i);
-
- if (youtube) {
- return {
- youtube: youtube
- };
- } else if (vimeo) {
- return {
- vimeo: vimeo
- };
- } else if (dailymotion) {
- return {
- dailymotion: dailymotion
- };
- } else if (vk) {
- return {
- vk: vk
- };
- }
- };
-
- /**
- * @desc Create image counter
- * Ex: 1/10
- */
- Plugin.prototype.counter = function() {
- if (this.s.counter) {
- $(this.s.appendCounterTo).append('<div id="lg-counter"><span id="lg-counter-current">' + (parseInt(this.index, 10) + 1) + '</span> / <span id="lg-counter-all">' + this.$items.length + '</span></div>');
- }
- };
-
- /**
- * @desc add sub-html into the slide
- * @param {Number} index - index of the slide
- */
- Plugin.prototype.addHtml = function(index) {
- var subHtml = null;
- var subHtmlUrl;
- var $currentEle;
- if (this.s.dynamic) {
- if (this.s.dynamicEl[index].subHtmlUrl) {
- subHtmlUrl = this.s.dynamicEl[index].subHtmlUrl;
- } else {
- subHtml = this.s.dynamicEl[index].subHtml;
- }
- } else {
- $currentEle = this.$items.eq(index);
- if ($currentEle.attr('data-sub-html-url')) {
- subHtmlUrl = $currentEle.attr('data-sub-html-url');
- } else {
- subHtml = $currentEle.attr('data-sub-html');
- if (this.s.getCaptionFromTitleOrAlt && !subHtml) {
- subHtml = $currentEle.attr('title') || $currentEle.find('img').first().attr('alt');
- }
- }
- }
-
- if (!subHtmlUrl) {
- if (typeof subHtml !== 'undefined' && subHtml !== null) {
-
- // get first letter of subhtml
- // if first letter starts with . or # get the html form the jQuery object
- var fL = subHtml.substring(0, 1);
- if (fL === '.' || fL === '#') {
- if (this.s.subHtmlSelectorRelative && !this.s.dynamic) {
- subHtml = $currentEle.find(subHtml).html();
- } else {
- subHtml = $(subHtml).html();
- }
- }
- } else {
- subHtml = '';
- }
- }
-
- if (this.s.appendSubHtmlTo === '.lg-sub-html') {
-
- if (subHtmlUrl) {
- this.$outer.find(this.s.appendSubHtmlTo).load(subHtmlUrl);
- } else {
- this.$outer.find(this.s.appendSubHtmlTo).html(subHtml);
- }
-
- } else {
-
- if (subHtmlUrl) {
- this.$slide.eq(index).load(subHtmlUrl);
- } else {
- this.$slide.eq(index).append(subHtml);
- }
- }
-
- // Add lg-empty-html class if title doesn't exist
- if (typeof subHtml !== 'undefined' && subHtml !== null) {
- if (subHtml === '') {
- this.$outer.find(this.s.appendSubHtmlTo).addClass('lg-empty-html');
- } else {
- this.$outer.find(this.s.appendSubHtmlTo).removeClass('lg-empty-html');
- }
- }
-
- this.$el.trigger('onAfterAppendSubHtml.lg', [index]);
- };
-
- /**
- * @desc Preload slides
- * @param {Number} index - index of the slide
- */
- Plugin.prototype.preload = function(index) {
- var i = 1;
- var j = 1;
- for (i = 1; i <= this.s.preload; i++) {
- if (i >= this.$items.length - index) {
- break;
- }
-
- this.loadContent(index + i, false, 0);
- }
-
- for (j = 1; j <= this.s.preload; j++) {
- if (index - j < 0) {
- break;
- }
-
- this.loadContent(index - j, false, 0);
- }
- };
-
- /**
- * @desc Load slide content into slide.
- * @param {Number} index - index of the slide.
- * @param {Boolean} rec - if true call loadcontent() function again.
- * @param {Boolean} delay - delay for adding complete class. it is 0 except first time.
- */
- Plugin.prototype.loadContent = function(index, rec, delay) {
-
- var _this = this;
- var _hasPoster = false;
- var _$img;
- var _src;
- var _poster;
- var _srcset;
- var _sizes;
- var _html;
- var getResponsiveSrc = function(srcItms) {
- var rsWidth = [];
- var rsSrc = [];
- for (var i = 0; i < srcItms.length; i++) {
- var __src = srcItms[i].split(' ');
-
- // Manage empty space
- if (__src[0] === '') {
- __src.splice(0, 1);
- }
-
- rsSrc.push(__src[0]);
- rsWidth.push(__src[1]);
- }
-
- var wWidth = $(window).width();
- for (var j = 0; j < rsWidth.length; j++) {
- if (parseInt(rsWidth[j], 10) > wWidth) {
- _src = rsSrc[j];
- break;
- }
- }
- };
-
- if (_this.s.dynamic) {
-
- if (_this.s.dynamicEl[index].poster) {
- _hasPoster = true;
- _poster = _this.s.dynamicEl[index].poster;
- }
-
- _html = _this.s.dynamicEl[index].html;
- _src = _this.s.dynamicEl[index].src;
-
- if (_this.s.dynamicEl[index].responsive) {
- var srcDyItms = _this.s.dynamicEl[index].responsive.split(',');
- getResponsiveSrc(srcDyItms);
- }
-
- _srcset = _this.s.dynamicEl[index].srcset;
- _sizes = _this.s.dynamicEl[index].sizes;
-
- } else {
-
- if (_this.$items.eq(index).attr('data-poster')) {
- _hasPoster = true;
- _poster = _this.$items.eq(index).attr('data-poster');
- }
-
- _html = _this.$items.eq(index).attr('data-html');
- _src = _this.$items.eq(index).attr('href') || _this.$items.eq(index).attr('data-src');
-
- if (_this.$items.eq(index).attr('data-responsive')) {
- var srcItms = _this.$items.eq(index).attr('data-responsive').split(',');
- getResponsiveSrc(srcItms);
- }
-
- _srcset = _this.$items.eq(index).attr('data-srcset');
- _sizes = _this.$items.eq(index).attr('data-sizes');
-
- }
-
- //if (_src || _srcset || _sizes || _poster) {
-
- var iframe = false;
- if (_this.s.dynamic) {
- if (_this.s.dynamicEl[index].iframe) {
- iframe = true;
- }
- } else {
- if (_this.$items.eq(index).attr('data-iframe') === 'true') {
- iframe = true;
- }
- }
-
- var _isVideo = _this.isVideo(_src, index);
- if (!_this.$slide.eq(index).hasClass('lg-loaded')) {
- if (iframe) {
- _this.$slide.eq(index).prepend('<div class="lg-video-cont" style="max-width:' + _this.s.iframeMaxWidth + '"><div class="lg-video"><iframe class="lg-object" frameborder="0" src="' + _src + '" allowfullscreen="true"></iframe></div></div>');
- } else if (_hasPoster) {
- var videoClass = '';
- if (_isVideo && _isVideo.youtube) {
- videoClass = 'lg-has-youtube';
- } else if (_isVideo && _isVideo.vimeo) {
- videoClass = 'lg-has-vimeo';
- } else {
- videoClass = 'lg-has-html5';
- }
-
- _this.$slide.eq(index).prepend('<div class="lg-video-cont ' + videoClass + ' "><div class="lg-video"><span class="lg-video-play"></span><img class="lg-object lg-has-poster" src="' + _poster + '" /></div></div>');
-
- } else if (_isVideo) {
- _this.$slide.eq(index).prepend('<div class="lg-video-cont "><div class="lg-video"></div></div>');
- _this.$el.trigger('hasVideo.lg', [index, _src, _html]);
- } else {
- _this.$slide.eq(index).prepend('<div class="lg-img-wrap"><img class="lg-object lg-image" src="' + _src + '" /></div>');
- }
-
- _this.$el.trigger('onAferAppendSlide.lg', [index]);
-
- _$img = _this.$slide.eq(index).find('.lg-object');
- if (_sizes) {
- _$img.attr('sizes', _sizes);
- }
-
- if (_srcset) {
- _$img.attr('srcset', _srcset);
- try {
- picturefill({
- elements: [_$img[0]]
- });
- } catch (e) {
- console.error('Make sure you have included Picturefill version 2');
- }
- }
-
- if (this.s.appendSubHtmlTo !== '.lg-sub-html') {
- _this.addHtml(index);
- }
-
- _this.$slide.eq(index).addClass('lg-loaded');
- }
-
- _this.$slide.eq(index).find('.lg-object').on('load.lg error.lg', function() {
-
- // For first time add some delay for displaying the start animation.
- var _speed = 0;
-
- // Do not change the delay value because it is required for zoom plugin.
- // If gallery opened from direct url (hash) speed value should be 0
- if (delay && !$('body').hasClass('lg-from-hash')) {
- _speed = delay;
- }
-
- setTimeout(function() {
- _this.$slide.eq(index).addClass('lg-complete');
- _this.$el.trigger('onSlideItemLoad.lg', [index, delay || 0]);
- }, _speed);
-
- });
-
- // @todo check load state for html5 videos
- if (_isVideo && _isVideo.html5 && !_hasPoster) {
- _this.$slide.eq(index).addClass('lg-complete');
- }
-
- if (rec === true) {
- if (!_this.$slide.eq(index).hasClass('lg-complete')) {
- _this.$slide.eq(index).find('.lg-object').on('load.lg error.lg', function() {
- _this.preload(index);
- });
- } else {
- _this.preload(index);
- }
- }
-
- //}
- };
-
- /**
- * @desc slide function for lightgallery
- ** Slide() gets call on start
- ** ** Set lg.on true once slide() function gets called.
- ** Call loadContent() on slide() function inside setTimeout
- ** ** On first slide we do not want any animation like slide of fade
- ** ** So on first slide( if lg.on if false that is first slide) loadContent() should start loading immediately
- ** ** Else loadContent() should wait for the transition to complete.
- ** ** So set timeout s.speed + 50
- <=> ** loadContent() will load slide content in to the particular slide
- ** ** It has recursion (rec) parameter. if rec === true loadContent() will call preload() function.
- ** ** preload will execute only when the previous slide is fully loaded (images iframe)
- ** ** avoid simultaneous image load
- <=> ** Preload() will check for s.preload value and call loadContent() again accoring to preload value
- ** loadContent() <====> Preload();
-
- * @param {Number} index - index of the slide
- * @param {Boolean} fromTouch - true if slide function called via touch event or mouse drag
- * @param {Boolean} fromThumb - true if slide function called via thumbnail click
- */
- Plugin.prototype.slide = function(index, fromTouch, fromThumb) {
-
- var _prevIndex = this.$outer.find('.lg-current').index();
- var _this = this;
-
- // Prevent if multiple call
- // Required for hsh plugin
- if (_this.lGalleryOn && (_prevIndex === index)) {
- return;
- }
-
- var _length = this.$slide.length;
- var _time = _this.lGalleryOn ? this.s.speed : 0;
- var _next = false;
- var _prev = false;
-
- if (!_this.lgBusy) {
-
- if (this.s.download) {
- var _src;
- if (_this.s.dynamic) {
- _src = _this.s.dynamicEl[index].downloadUrl !== false && (_this.s.dynamicEl[index].downloadUrl || _this.s.dynamicEl[index].src);
- } else {
- _src = _this.$items.eq(index).attr('data-download-url') !== 'false' && (_this.$items.eq(index).attr('data-download-url') || _this.$items.eq(index).attr('href') || _this.$items.eq(index).attr('data-src'));
-
- }
-
- if (_src) {
- $('#lg-download').attr('href', _src);
- _this.$outer.removeClass('lg-hide-download');
- } else {
- _this.$outer.addClass('lg-hide-download');
- }
- }
-
- this.$el.trigger('onBeforeSlide.lg', [_prevIndex, index, fromTouch, fromThumb]);
-
- _this.lgBusy = true;
-
- clearTimeout(_this.hideBartimeout);
-
- // Add title if this.s.appendSubHtmlTo === lg-sub-html
- if (this.s.appendSubHtmlTo === '.lg-sub-html') {
-
- // wait for slide animation to complete
- setTimeout(function() {
- _this.addHtml(index);
- }, _time);
- }
-
- this.arrowDisable(index);
-
- if (!fromTouch) {
-
- // remove all transitions
- _this.$outer.addClass('lg-no-trans');
-
- this.$slide.removeClass('lg-prev-slide lg-next-slide');
-
- if (index < _prevIndex) {
- _prev = true;
- if ((index === 0) && (_prevIndex === _length - 1) && !fromThumb) {
- _prev = false;
- _next = true;
- }
- } else if (index > _prevIndex) {
- _next = true;
- if ((index === _length - 1) && (_prevIndex === 0) && !fromThumb) {
- _prev = true;
- _next = false;
- }
- }
-
- if (_prev) {
-
- //prevslide
- this.$slide.eq(index).addClass('lg-prev-slide');
- this.$slide.eq(_prevIndex).addClass('lg-next-slide');
- } else if (_next) {
-
- // next slide
- this.$slide.eq(index).addClass('lg-next-slide');
- this.$slide.eq(_prevIndex).addClass('lg-prev-slide');
- }
-
- // give 50 ms for browser to add/remove class
- setTimeout(function() {
- _this.$slide.removeClass('lg-current');
-
- //_this.$slide.eq(_prevIndex).removeClass('lg-current');
- _this.$slide.eq(index).addClass('lg-current');
-
- // reset all transitions
- _this.$outer.removeClass('lg-no-trans');
- }, 50);
- } else {
-
- var touchPrev = index - 1;
- var touchNext = index + 1;
-
- if ((index === 0) && (_prevIndex === _length - 1)) {
-
- // next slide
- touchNext = 0;
- touchPrev = _length - 1;
- } else if ((index === _length - 1) && (_prevIndex === 0)) {
-
- // prev slide
- touchNext = 0;
- touchPrev = _length - 1;
- }
-
- this.$slide.removeClass('lg-prev-slide lg-current lg-next-slide');
- _this.$slide.eq(touchPrev).addClass('lg-prev-slide');
- _this.$slide.eq(touchNext).addClass('lg-next-slide');
- _this.$slide.eq(index).addClass('lg-current');
- }
-
- if (_this.lGalleryOn) {
- setTimeout(function() {
- _this.loadContent(index, true, 0);
- }, this.s.speed + 50);
-
- setTimeout(function() {
- _this.lgBusy = false;
- _this.$el.trigger('onAfterSlide.lg', [_prevIndex, index, fromTouch, fromThumb]);
- }, this.s.speed);
-
- } else {
- _this.loadContent(index, true, _this.s.backdropDuration);
-
- _this.lgBusy = false;
- _this.$el.trigger('onAfterSlide.lg', [_prevIndex, index, fromTouch, fromThumb]);
- }
-
- _this.lGalleryOn = true;
-
- if (this.s.counter) {
- $('#lg-counter-current').text(index + 1);
- }
-
- }
-
- };
-
- /**
- * @desc Go to next slide
- * @param {Boolean} fromTouch - true if slide function called via touch event
- */
- Plugin.prototype.goToNextSlide = function(fromTouch) {
- var _this = this;
- if (!_this.lgBusy) {
- if ((_this.index + 1) < _this.$slide.length) {
- _this.index++;
- _this.$el.trigger('onBeforeNextSlide.lg', [_this.index]);
- _this.slide(_this.index, fromTouch, false);
- } else {
- if (_this.s.loop) {
- _this.index = 0;
- _this.$el.trigger('onBeforeNextSlide.lg', [_this.index]);
- _this.slide(_this.index, fromTouch, false);
- } else if (_this.s.slideEndAnimatoin) {
- _this.$outer.addClass('lg-right-end');
- setTimeout(function() {
- _this.$outer.removeClass('lg-right-end');
- }, 400);
- }
- }
- }
- };
-
- /**
- * @desc Go to previous slide
- * @param {Boolean} fromTouch - true if slide function called via touch event
- */
- Plugin.prototype.goToPrevSlide = function(fromTouch) {
- var _this = this;
- if (!_this.lgBusy) {
- if (_this.index > 0) {
- _this.index--;
- _this.$el.trigger('onBeforePrevSlide.lg', [_this.index, fromTouch]);
- _this.slide(_this.index, fromTouch, false);
- } else {
- if (_this.s.loop) {
- _this.index = _this.$items.length - 1;
- _this.$el.trigger('onBeforePrevSlide.lg', [_this.index, fromTouch]);
- _this.slide(_this.index, fromTouch, false);
- } else if (_this.s.slideEndAnimatoin) {
- _this.$outer.addClass('lg-left-end');
- setTimeout(function() {
- _this.$outer.removeClass('lg-left-end');
- }, 400);
- }
- }
- }
- };
-
- Plugin.prototype.keyPress = function() {
- var _this = this;
- if (this.$items.length > 1) {
- $(window).on('keyup.lg', function(e) {
- if (_this.$items.length > 1) {
- if (e.keyCode === 37) {
- e.preventDefault();
- _this.goToPrevSlide();
- }
-
- if (e.keyCode === 39) {
- e.preventDefault();
- _this.goToNextSlide();
- }
- }
- });
- }
-
- $(window).on('keydown.lg', function(e) {
- if (_this.s.escKey === true && e.keyCode === 27) {
- e.preventDefault();
- if (!_this.$outer.hasClass('lg-thumb-open')) {
- _this.destroy();
- } else {
- _this.$outer.removeClass('lg-thumb-open');
- }
- }
- });
- };
-
- Plugin.prototype.arrow = function() {
- var _this = this;
- this.$outer.find('.lg-prev').on('click.lg', function() {
- _this.goToPrevSlide();
- });
-
- this.$outer.find('.lg-next').on('click.lg', function() {
- _this.goToNextSlide();
- });
- };
-
- Plugin.prototype.arrowDisable = function(index) {
-
- // Disable arrows if s.hideControlOnEnd is true
- if (!this.s.loop && this.s.hideControlOnEnd) {
- if ((index + 1) < this.$slide.length) {
- this.$outer.find('.lg-next').removeAttr('disabled').removeClass('disabled');
- } else {
- this.$outer.find('.lg-next').attr('disabled', 'disabled').addClass('disabled');
- }
-
- if (index > 0) {
- this.$outer.find('.lg-prev').removeAttr('disabled').removeClass('disabled');
- } else {
- this.$outer.find('.lg-prev').attr('disabled', 'disabled').addClass('disabled');
- }
- }
- };
-
- Plugin.prototype.setTranslate = function($el, xValue, yValue) {
- // jQuery supports Automatic CSS prefixing since jQuery 1.8.0
- if (this.s.useLeft) {
- $el.css('left', xValue);
- } else {
- $el.css({
- transform: 'translate3d(' + (xValue) + 'px, ' + yValue + 'px, 0px)'
- });
- }
- };
-
- Plugin.prototype.touchMove = function(startCoords, endCoords) {
-
- var distance = endCoords - startCoords;
-
- if (Math.abs(distance) > 15) {
- // reset opacity and transition duration
- this.$outer.addClass('lg-dragging');
-
- // move current slide
- this.setTranslate(this.$slide.eq(this.index), distance, 0);
-
- // move next and prev slide with current slide
- this.setTranslate($('.lg-prev-slide'), -this.$slide.eq(this.index).width() + distance, 0);
- this.setTranslate($('.lg-next-slide'), this.$slide.eq(this.index).width() + distance, 0);
- }
- };
-
- Plugin.prototype.touchEnd = function(distance) {
- var _this = this;
-
- // keep slide animation for any mode while dragg/swipe
- if (_this.s.mode !== 'lg-slide') {
- _this.$outer.addClass('lg-slide');
- }
-
- this.$slide.not('.lg-current, .lg-prev-slide, .lg-next-slide').css('opacity', '0');
-
- // set transition duration
- setTimeout(function() {
- _this.$outer.removeClass('lg-dragging');
- if ((distance < 0) && (Math.abs(distance) > _this.s.swipeThreshold)) {
- _this.goToNextSlide(true);
- } else if ((distance > 0) && (Math.abs(distance) > _this.s.swipeThreshold)) {
- _this.goToPrevSlide(true);
- } else if (Math.abs(distance) < 5) {
-
- // Trigger click if distance is less than 5 pix
- _this.$el.trigger('onSlideClick.lg');
- }
-
- _this.$slide.removeAttr('style');
- });
-
- // remove slide class once drag/swipe is completed if mode is not slide
- setTimeout(function() {
- if (!_this.$outer.hasClass('lg-dragging') && _this.s.mode !== 'lg-slide') {
- _this.$outer.removeClass('lg-slide');
- }
- }, _this.s.speed + 100);
-
- };
-
- Plugin.prototype.enableSwipe = function() {
- var _this = this;
- var startCoords = 0;
- var endCoords = 0;
- var isMoved = false;
-
- if (_this.s.enableSwipe && _this.isTouch && _this.doCss()) {
-
- _this.$slide.on('touchstart.lg', function(e) {
- if (!_this.$outer.hasClass('lg-zoomed') && !_this.lgBusy) {
- e.preventDefault();
- _this.manageSwipeClass();
- startCoords = e.originalEvent.targetTouches[0].pageX;
- }
- });
-
- _this.$slide.on('touchmove.lg', function(e) {
- if (!_this.$outer.hasClass('lg-zoomed')) {
- e.preventDefault();
- endCoords = e.originalEvent.targetTouches[0].pageX;
- _this.touchMove(startCoords, endCoords);
- isMoved = true;
- }
- });
-
- _this.$slide.on('touchend.lg', function() {
- if (!_this.$outer.hasClass('lg-zoomed')) {
- if (isMoved) {
- isMoved = false;
- _this.touchEnd(endCoords - startCoords);
- } else {
- _this.$el.trigger('onSlideClick.lg');
- }
- }
- });
- }
-
- };
-
- Plugin.prototype.enableDrag = function() {
- var _this = this;
- var startCoords = 0;
- var endCoords = 0;
- var isDraging = false;
- var isMoved = false;
- if (_this.s.enableDrag && !_this.isTouch && _this.doCss()) {
- _this.$slide.on('mousedown.lg', function(e) {
- // execute only on .lg-object
- if (!_this.$outer.hasClass('lg-zoomed')) {
- if ($(e.target).hasClass('lg-object') || $(e.target).hasClass('lg-video-play')) {
- e.preventDefault();
-
- if (!_this.lgBusy) {
- _this.manageSwipeClass();
- startCoords = e.pageX;
- isDraging = true;
-
- // ** Fix for webkit cursor issue https://code.google.com/p/chromium/issues/detail?id=26723
- _this.$outer.scrollLeft += 1;
- _this.$outer.scrollLeft -= 1;
-
- // *
-
- _this.$outer.removeClass('lg-grab').addClass('lg-grabbing');
-
- _this.$el.trigger('onDragstart.lg');
- }
-
- }
- }
- });
-
- $(window).on('mousemove.lg', function(e) {
- if (isDraging) {
- isMoved = true;
- endCoords = e.pageX;
- _this.touchMove(startCoords, endCoords);
- _this.$el.trigger('onDragmove.lg');
- }
- });
-
- $(window).on('mouseup.lg', function(e) {
- if (isMoved) {
- isMoved = false;
- _this.touchEnd(endCoords - startCoords);
- _this.$el.trigger('onDragend.lg');
- } else if ($(e.target).hasClass('lg-object') || $(e.target).hasClass('lg-video-play')) {
- _this.$el.trigger('onSlideClick.lg');
- }
-
- // Prevent execution on click
- if (isDraging) {
- isDraging = false;
- _this.$outer.removeClass('lg-grabbing').addClass('lg-grab');
- }
- });
-
- }
- };
-
- Plugin.prototype.manageSwipeClass = function() {
- var touchNext = this.index + 1;
- var touchPrev = this.index - 1;
- var length = this.$slide.length;
- if (this.s.loop) {
- if (this.index === 0) {
- touchPrev = length - 1;
- } else if (this.index === length - 1) {
- touchNext = 0;
- }
- }
-
- this.$slide.removeClass('lg-next-slide lg-prev-slide');
- if (touchPrev > -1) {
- this.$slide.eq(touchPrev).addClass('lg-prev-slide');
- }
-
- this.$slide.eq(touchNext).addClass('lg-next-slide');
- };
-
- Plugin.prototype.mousewheel = function() {
- var _this = this;
- _this.$outer.on('mousewheel.lg', function(e) {
-
- if (!e.deltaY) {
- return;
- }
-
- if (e.deltaY > 0) {
- _this.goToPrevSlide();
- } else {
- _this.goToNextSlide();
- }
-
- e.preventDefault();
- });
-
- };
-
- Plugin.prototype.closeGallery = function() {
-
- var _this = this;
- var mousedown = false;
- this.$outer.find('.lg-close').on('click.lg', function() {
- _this.destroy();
- });
-
- if (_this.s.closable) {
-
- // If you drag the slide and release outside gallery gets close on chrome
- // for preventing this check mousedown and mouseup happened on .lg-item or lg-outer
- _this.$outer.on('mousedown.lg', function(e) {
-
- if ($(e.target).is('.lg-outer') || $(e.target).is('.lg-item ') || $(e.target).is('.lg-img-wrap')) {
- mousedown = true;
- } else {
- mousedown = false;
- }
-
- });
-
- _this.$outer.on('mouseup.lg', function(e) {
-
- if ($(e.target).is('.lg-outer') || $(e.target).is('.lg-item ') || $(e.target).is('.lg-img-wrap') && mousedown) {
- if (!_this.$outer.hasClass('lg-dragging')) {
- _this.destroy();
- }
- }
-
- });
-
- }
-
- };
-
- Plugin.prototype.destroy = function(d) {
-
- var _this = this;
-
- if (!d) {
- _this.$el.trigger('onBeforeClose.lg');
- }
-
- $(window).scrollTop(_this.prevScrollTop);
-
- /**
- * if d is false or undefined destroy will only close the gallery
- * plugins instance remains with the element
- *
- * if d is true destroy will completely remove the plugin
- */
-
- if (d) {
- if (!_this.s.dynamic) {
- // only when not using dynamic mode is $items a jquery collection
- this.$items.off('click.lg click.lgcustom');
- }
-
- $.removeData(_this.el, 'lightGallery');
- }
-
- // Unbind all events added by lightGallery
- this.$el.off('.lg.tm');
-
- // Distroy all lightGallery modules
- $.each($.fn.lightGallery.modules, function(key) {
- if (_this.modules[key]) {
- _this.modules[key].destroy();
- }
- });
-
- this.lGalleryOn = false;
-
- clearTimeout(_this.hideBartimeout);
- this.hideBartimeout = false;
- $(window).off('.lg');
- $('body').removeClass('lg-on lg-from-hash');
-
- if (_this.$outer) {
- _this.$outer.removeClass('lg-visible');
- }
-
- $('.lg-backdrop').removeClass('in');
-
- setTimeout(function() {
- if (_this.$outer) {
- _this.$outer.remove();
- }
-
- $('.lg-backdrop').remove();
-
- if (!d) {
- _this.$el.trigger('onCloseAfter.lg');
- }
-
- }, _this.s.backdropDuration + 50);
- };
-
- $.fn.lightGallery = function(options) {
- return this.each(function() {
- if (!$.data(this, 'lightGallery')) {
- $.data(this, 'lightGallery', new Plugin(this, options));
- } else {
- try {
- $(this).data('lightGallery').init();
- } catch (err) {
- console.error('lightGallery has not initiated properly');
- }
- }
- });
- };
-
- $.fn.lightGallery.modules = {};
-
-})(jQuery, window, document);
diff --git a/debian/lib/opentip/adapter-jquery.js b/debian/lib/opentip/adapter-jquery.js
deleted file mode 100644
index acaa46c..0000000
--- a/debian/lib/opentip/adapter-jquery.js
+++ /dev/null
@@ -1,168 +0,0 @@
-var __slice = [].slice;
-
-(function($) {
- var Adapter;
-
- $.fn.opentip = function(content, title, options) {
- return new Opentip(this, content, title, options);
- };
- Adapter = (function() {
- function Adapter() {}
-
- Adapter.prototype.name = "jquery";
-
- Adapter.prototype.domReady = function(callback) {
- return $(callback);
- };
-
- Adapter.prototype.create = function(html) {
- return $(html);
- };
-
- Adapter.prototype.wrap = function(element) {
- element = $(element);
- if (element.length > 1) {
- throw new Error("Multiple elements provided.");
- }
- return element;
- };
-
- Adapter.prototype.unwrap = function(element) {
- return $(element)[0];
- };
-
- Adapter.prototype.tagName = function(element) {
- return this.unwrap(element).tagName;
- };
-
- Adapter.prototype.attr = function() {
- var args, element, _ref;
-
- element = arguments[0], args = 2 <= arguments.length ? __slice.call(arguments, 1) : [];
- return (_ref = $(element)).attr.apply(_ref, args);
- };
-
- Adapter.prototype.data = function() {
- var args, element, _ref;
-
- element = arguments[0], args = 2 <= arguments.length ? __slice.call(arguments, 1) : [];
- return (_ref = $(element)).data.apply(_ref, args);
- };
-
- Adapter.prototype.find = function(element, selector) {
- return $(element).find(selector).get(0);
- };
-
- Adapter.prototype.findAll = function(element, selector) {
- return $(element).find(selector);
- };
-
- Adapter.prototype.update = function(element, content, escape) {
- element = $(element);
- if (escape) {
- return element.text(content);
- } else {
- return element.html(content);
- }
- };
-
- Adapter.prototype.append = function(element, child) {
- return $(element).append(child);
- };
-
- Adapter.prototype.remove = function(element) {
- return $(element).remove();
- };
-
- Adapter.prototype.addClass = function(element, className) {
- return $(element).addClass(className);
- };
-
- Adapter.prototype.removeClass = function(element, className) {
- return $(element).removeClass(className);
- };
-
- Adapter.prototype.css = function(element, properties) {
- return $(element).css(properties);
- };
-
- Adapter.prototype.dimensions = function(element) {
- return {
- width: $(element).outerWidth(),
- height: $(element).outerHeight()
- };
- };
-
- Adapter.prototype.scrollOffset = function() {
- return [window.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft, window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop];
- };
-
- Adapter.prototype.viewportDimensions = function() {
- return {
- width: document.documentElement.clientWidth,
- height: document.documentElement.clientHeight
- };
- };
-
- Adapter.prototype.mousePosition = function(e) {
- if (e == null) {
- return null;
- }
- return {
- x: e.pageX,
- y: e.pageY
- };
- };
-
- Adapter.prototype.offset = function(element) {
- var offset;
-
- offset = $(element).offset();
- return {
- left: offset.left,
- top: offset.top
- };
- };
-
- Adapter.prototype.observe = function(element, eventName, observer) {
- return $(element).bind(eventName, observer);
- };
-
- Adapter.prototype.stopObserving = function(element, eventName, observer) {
- return $(element).unbind(eventName, observer);
- };
-
- Adapter.prototype.ajax = function(options) {
- var _ref, _ref1;
-
- if (options.url == null) {
- throw new Error("No url provided");
- }
- return $.ajax({
- url: options.url,
- type: (_ref = (_ref1 = options.method) != null ? _ref1.toUpperCase() : void 0) != null ? _ref : "GET"
- }).done(function(content) {
- return typeof options.onSuccess === "function" ? options.onSuccess(content) : void 0;
- }).fail(function(request) {
- return typeof options.onError === "function" ? options.onError("Server responded with status " + request.status) : void 0;
- }).always(function() {
- return typeof options.onComplete === "function" ? options.onComplete() : void 0;
- });
- };
-
- Adapter.prototype.clone = function(object) {
- return $.extend({}, object);
- };
-
- Adapter.prototype.extend = function() {
- var sources, target;
-
- target = arguments[0], sources = 2 <= arguments.length ? __slice.call(arguments, 1) : [];
- return $.extend.apply($, [target].concat(__slice.call(sources)));
- };
-
- return Adapter;
-
- })();
- return Opentip.addAdapter(new Adapter);
-})(jQuery);
diff --git a/debian/lib/opentip/opentip.css b/debian/lib/opentip/opentip.css
deleted file mode 100644
index 5088f37..0000000
--- a/debian/lib/opentip/opentip.css
+++ /dev/null
@@ -1,278 +0,0 @@
-.opentip-container,
-.opentip-container * {
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
- box-sizing: border-box;
-}
-.opentip-container {
- position: absolute;
- max-width: 300px;
- z-index: 100;
- -webkit-transition: -webkit-transform 1s ease-in-out;
- -moz-transition: -moz-transform 1s ease-in-out;
- -o-transition: -o-transform 1s ease-in-out;
- -ms-transition: -ms-transform 1s ease-in-out;
- transition: transform 1s ease-in-out;
- pointer-events: none;
- -webkit-transform: translateX(0) translateY(0);
- -moz-transform: translateX(0) translateY(0);
- -o-transform: translateX(0) translateY(0);
- -ms-transform: translateX(0) translateY(0);
- transform: translateX(0) translateY(0);
-}
-.opentip-container.ot-fixed.ot-hidden.stem-top.stem-center,
-.opentip-container.ot-fixed.ot-going-to-show.stem-top.stem-center,
-.opentip-container.ot-fixed.ot-hiding.stem-top.stem-center {
- -webkit-transform: translateY(-5px);
- -moz-transform: translateY(-5px);
- -o-transform: translateY(-5px);
- -ms-transform: translateY(-5px);
- transform: translateY(-5px);
-}
-.opentip-container.ot-fixed.ot-hidden.stem-top.stem-right,
-.opentip-container.ot-fixed.ot-going-to-show.stem-top.stem-right,
-.opentip-container.ot-fixed.ot-hiding.stem-top.stem-right {
- -webkit-transform: translateY(-5px) translateX(5px);
- -moz-transform: translateY(-5px) translateX(5px);
- -o-transform: translateY(-5px) translateX(5px);
- -ms-transform: translateY(-5px) translateX(5px);
- transform: translateY(-5px) translateX(5px);
-}
-.opentip-container.ot-fixed.ot-hidden.stem-middle.stem-right,
-.opentip-container.ot-fixed.ot-going-to-show.stem-middle.stem-right,
-.opentip-container.ot-fixed.ot-hiding.stem-middle.stem-right {
- -webkit-transform: translateX(5px);
- -moz-transform: translateX(5px);
- -o-transform: translateX(5px);
- -ms-transform: translateX(5px);
- transform: translateX(5px);
-}
-.opentip-container.ot-fixed.ot-hidden.stem-bottom.stem-right,
-.opentip-container.ot-fixed.ot-going-to-show.stem-bottom.stem-right,
-.opentip-container.ot-fixed.ot-hiding.stem-bottom.stem-right {
- -webkit-transform: translateY(5px) translateX(5px);
- -moz-transform: translateY(5px) translateX(5px);
- -o-transform: translateY(5px) translateX(5px);
- -ms-transform: translateY(5px) translateX(5px);
- transform: translateY(5px) translateX(5px);
-}
-.opentip-container.ot-fixed.ot-hidden.stem-bottom.stem-center,
-.opentip-container.ot-fixed.ot-going-to-show.stem-bottom.stem-center,
-.opentip-container.ot-fixed.ot-hiding.stem-bottom.stem-center {
- -webkit-transform: translateY(5px);
- -moz-transform: translateY(5px);
- -o-transform: translateY(5px);
- -ms-transform: translateY(5px);
- transform: translateY(5px);
-}
-.opentip-container.ot-fixed.ot-hidden.stem-bottom.stem-left,
-.opentip-container.ot-fixed.ot-going-to-show.stem-bottom.stem-left,
-.opentip-container.ot-fixed.ot-hiding.stem-bottom.stem-left {
- -webkit-transform: translateY(5px) translateX(-5px);
- -moz-transform: translateY(5px) translateX(-5px);
- -o-transform: translateY(5px) translateX(-5px);
- -ms-transform: translateY(5px) translateX(-5px);
- transform: translateY(5px) translateX(-5px);
-}
-.opentip-container.ot-fixed.ot-hidden.stem-middle.stem-left,
-.opentip-container.ot-fixed.ot-going-to-show.stem-middle.stem-left,
-.opentip-container.ot-fixed.ot-hiding.stem-middle.stem-left {
- -webkit-transform: translateX(-5px);
- -moz-transform: translateX(-5px);
- -o-transform: translateX(-5px);
- -ms-transform: translateX(-5px);
- transform: translateX(-5px);
-}
-.opentip-container.ot-fixed.ot-hidden.stem-top.stem-left,
-.opentip-container.ot-fixed.ot-going-to-show.stem-top.stem-left,
-.opentip-container.ot-fixed.ot-hiding.stem-top.stem-left {
- -webkit-transform: translateY(-5px) translateX(-5px);
- -moz-transform: translateY(-5px) translateX(-5px);
- -o-transform: translateY(-5px) translateX(-5px);
- -ms-transform: translateY(-5px) translateX(-5px);
- transform: translateY(-5px) translateX(-5px);
-}
-.opentip-container.ot-fixed .opentip {
- pointer-events: auto;
-}
-.opentip-container.ot-hidden {
- display: none;
-}
-.opentip-container .opentip {
- position: relative;
- font-size: 13px;
- line-height: 120%;
- padding: 9px 14px;
- color: #4f4b47;
- text-shadow: -1px -1px 0px rgba(255,255,255,0.2);
-}
-.opentip-container .opentip .header {
- margin: 0;
- padding: 0;
-}
-.opentip-container .opentip .ot-close {
- pointer-events: auto;
- display: block;
- position: absolute;
- top: -12px;
- left: 60px;
- color: rgba(0,0,0,0.5);
- background: rgba(0,0,0,0);
- text-decoration: none;
-}
-.opentip-container .opentip .ot-close span {
- display: none;
-}
-.opentip-container .opentip .ot-loading-indicator {
- display: none;
-}
-.opentip-container.ot-loading .ot-loading-indicator {
- width: 30px;
- height: 30px;
- font-size: 30px;
- line-height: 30px;
- font-weight: bold;
- display: block;
-}
-.opentip-container.ot-loading .ot-loading-indicator span {
- display: block;
- -webkit-animation: otloading 2s linear infinite;
- -moz-animation: otloading 2s linear infinite;
- -o-animation: otloading 2s linear infinite;
- -ms-animation: otloading 2s linear infinite;
- animation: otloading 2s linear infinite;
- text-align: center;
-}
-.opentip-container.style-dark .opentip,
-.opentip-container.style-alert .opentip {
- color: #f8f8f8;
- text-shadow: 1px 1px 0px rgba(0,0,0,0.2);
-}
-.opentip-container.style-glass .opentip {
- padding: 15px 25px;
- color: #317cc5;
- text-shadow: 1px 1px 8px rgba(0,94,153,0.3);
-}
-.opentip-container.ot-hide-effect-fade {
- -webkit-transition: -webkit-transform 0.5s ease-in-out, opacity 1s ease-in-out;
- -moz-transition: -moz-transform 0.5s ease-in-out, opacity 1s ease-in-out;
- -o-transition: -o-transform 0.5s ease-in-out, opacity 1s ease-in-out;
- -ms-transition: -ms-transform 0.5s ease-in-out, opacity 1s ease-in-out;
- transition: transform 0.5s ease-in-out, opacity 1s ease-in-out;
- opacity: 1;
- -ms-filter: none;
- filter: none;
-}
-.opentip-container.ot-hide-effect-fade.ot-hiding {
- opacity: 0;
- filter: alpha(opacity=0);
- -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
-}
-.opentip-container.ot-show-effect-appear.ot-going-to-show,
-.opentip-container.ot-show-effect-appear.ot-showing {
- -webkit-transition: -webkit-transform 0.5s ease-in-out, opacity 1s ease-in-out;
- -moz-transition: -moz-transform 0.5s ease-in-out, opacity 1s ease-in-out;
- -o-transition: -o-transform 0.5s ease-in-out, opacity 1s ease-in-out;
- -ms-transition: -ms-transform 0.5s ease-in-out, opacity 1s ease-in-out;
- transition: transform 0.5s ease-in-out, opacity 1s ease-in-out;
-}
-.opentip-container.ot-show-effect-appear.ot-going-to-show {
- opacity: 0;
- filter: alpha(opacity=0);
- -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
-}
-.opentip-container.ot-show-effect-appear.ot-showing {
- opacity: 1;
- -ms-filter: none;
- filter: none;
-}
-.opentip-container.ot-show-effect-appear.ot-visible {
- opacity: 1;
- -ms-filter: none;
- filter: none;
-}
- at -moz-keyframes otloading {
- 0% {
- -webkit-transform: rotate(0deg);
- -moz-transform: rotate(0deg);
- -o-transform: rotate(0deg);
- -ms-transform: rotate(0deg);
- transform: rotate(0deg);
- }
-
- 100% {
- -webkit-transform: rotate(360deg);
- -moz-transform: rotate(360deg);
- -o-transform: rotate(360deg);
- -ms-transform: rotate(360deg);
- transform: rotate(360deg);
- }
-}
- at -webkit-keyframes otloading {
- 0% {
- -webkit-transform: rotate(0deg);
- -moz-transform: rotate(0deg);
- -o-transform: rotate(0deg);
- -ms-transform: rotate(0deg);
- transform: rotate(0deg);
- }
-
- 100% {
- -webkit-transform: rotate(360deg);
- -moz-transform: rotate(360deg);
- -o-transform: rotate(360deg);
- -ms-transform: rotate(360deg);
- transform: rotate(360deg);
- }
-}
- at -o-keyframes otloading {
- 0% {
- -webkit-transform: rotate(0deg);
- -moz-transform: rotate(0deg);
- -o-transform: rotate(0deg);
- -ms-transform: rotate(0deg);
- transform: rotate(0deg);
- }
-
- 100% {
- -webkit-transform: rotate(360deg);
- -moz-transform: rotate(360deg);
- -o-transform: rotate(360deg);
- -ms-transform: rotate(360deg);
- transform: rotate(360deg);
- }
-}
- at -ms-keyframes otloading {
- 0% {
- -webkit-transform: rotate(0deg);
- -moz-transform: rotate(0deg);
- -o-transform: rotate(0deg);
- -ms-transform: rotate(0deg);
- transform: rotate(0deg);
- }
-
- 100% {
- -webkit-transform: rotate(360deg);
- -moz-transform: rotate(360deg);
- -o-transform: rotate(360deg);
- -ms-transform: rotate(360deg);
- transform: rotate(360deg);
- }
-}
- at keyframes otloading {
- 0% {
- -webkit-transform: rotate(0deg);
- -moz-transform: rotate(0deg);
- -o-transform: rotate(0deg);
- -ms-transform: rotate(0deg);
- transform: rotate(0deg);
- }
-
- 100% {
- -webkit-transform: rotate(360deg);
- -moz-transform: rotate(360deg);
- -o-transform: rotate(360deg);
- -ms-transform: rotate(360deg);
- transform: rotate(360deg);
- }
-}
diff --git a/debian/lib/opentip/opentip.js b/debian/lib/opentip/opentip.js
deleted file mode 100644
index c36d34c..0000000
--- a/debian/lib/opentip/opentip.js
+++ /dev/null
@@ -1,1665 +0,0 @@
-/*
-#
-# Opentip v2.4.3
-#
-# More info at [www.opentip.org](http://www.opentip.org)
-#
-# Copyright (c) 2012, Matias Meno
-# Graphics by Tjandra Mayerhold
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
-#
-*/
-
-var Opentip, firstAdapter, i, mouseMoved, mousePosition, mousePositionObservers, position, vendors, _i, _len, _ref,
- __slice = [].slice,
- __indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; },
- __hasProp = {}.hasOwnProperty;
-
-Opentip = (function() {
- Opentip.prototype.STICKS_OUT_TOP = 1;
-
- Opentip.prototype.STICKS_OUT_BOTTOM = 2;
-
- Opentip.prototype.STICKS_OUT_LEFT = 1;
-
- Opentip.prototype.STICKS_OUT_RIGHT = 2;
-
- Opentip.prototype["class"] = {
- container: "opentip-container",
- opentip: "opentip",
- header: "ot-header",
- content: "ot-content",
- loadingIndicator: "ot-loading-indicator",
- close: "ot-close",
- goingToHide: "ot-going-to-hide",
- hidden: "ot-hidden",
- hiding: "ot-hiding",
- goingToShow: "ot-going-to-show",
- showing: "ot-showing",
- visible: "ot-visible",
- loading: "ot-loading",
- ajaxError: "ot-ajax-error",
- fixed: "ot-fixed",
- showEffectPrefix: "ot-show-effect-",
- hideEffectPrefix: "ot-hide-effect-",
- stylePrefix: "style-"
- };
-
- function Opentip(element, content, title, options) {
- var elementsOpentips, hideTrigger, methodToBind, optionSources, prop, styleName, _i, _j, _len, _len1, _ref, _ref1, _ref2, _tmpStyle,
- _this = this;
-
- this.id = ++Opentip.lastId;
- this.debug("Creating Opentip.");
- Opentip.tips.push(this);
- this.adapter = Opentip.adapter;
- elementsOpentips = this.adapter.data(element, "opentips") || [];
- elementsOpentips.push(this);
- this.adapter.data(element, "opentips", elementsOpentips);
- this.triggerElement = this.adapter.wrap(element);
- if (this.triggerElement.length > 1) {
- throw new Error("You can't call Opentip on multiple elements.");
- }
- if (this.triggerElement.length < 1) {
- throw new Error("Invalid element.");
- }
- this.loaded = false;
- this.loading = false;
- this.visible = false;
- this.waitingToShow = false;
- this.waitingToHide = false;
- this.currentPosition = {
- left: 0,
- top: 0
- };
- this.dimensions = {
- width: 100,
- height: 50
- };
- this.content = "";
- this.redraw = true;
- this.currentObservers = {
- showing: false,
- visible: false,
- hiding: false,
- hidden: false
- };
- options = this.adapter.clone(options);
- if (typeof content === "object") {
- options = content;
- content = title = void 0;
- } else if (typeof title === "object") {
- options = title;
- title = void 0;
- }
- if (title != null) {
- options.title = title;
- }
- if (content != null) {
- this.setContent(content);
- }
- if (options["extends"] == null) {
- if (options.style != null) {
- options["extends"] = options.style;
- } else {
- options["extends"] = Opentip.defaultStyle;
- }
- }
- optionSources = [options];
- _tmpStyle = options;
- while (_tmpStyle["extends"]) {
- styleName = _tmpStyle["extends"];
- _tmpStyle = Opentip.styles[styleName];
- if (_tmpStyle == null) {
- throw new Error("Invalid style: " + styleName);
- }
- optionSources.unshift(_tmpStyle);
- if (!((_tmpStyle["extends"] != null) || styleName === "standard")) {
- _tmpStyle["extends"] = "standard";
- }
- }
- options = (_ref = this.adapter).extend.apply(_ref, [{}].concat(__slice.call(optionSources)));
- options.hideTriggers = (function() {
- var _i, _len, _ref1, _results;
-
- _ref1 = options.hideTriggers;
- _results = [];
- for (_i = 0, _len = _ref1.length; _i < _len; _i++) {
- hideTrigger = _ref1[_i];
- _results.push(hideTrigger);
- }
- return _results;
- })();
- if (options.hideTrigger && options.hideTriggers.length === 0) {
- options.hideTriggers.push(options.hideTrigger);
- }
- _ref1 = ["tipJoint", "targetJoint", "stem"];
- for (_i = 0, _len = _ref1.length; _i < _len; _i++) {
- prop = _ref1[_i];
- if (options[prop] && typeof options[prop] === "string") {
- options[prop] = new Opentip.Joint(options[prop]);
- }
- }
- if (options.ajax && (options.ajax === true || !options.ajax)) {
- if (this.adapter.tagName(this.triggerElement) === "A") {
- options.ajax = this.adapter.attr(this.triggerElement, "href");
- } else {
- options.ajax = false;
- }
- }
- if (options.showOn === "click" && this.adapter.tagName(this.triggerElement) === "A") {
- this.adapter.observe(this.triggerElement, "click", function(e) {
- e.preventDefault();
- e.stopPropagation();
- return e.stopped = true;
- });
- }
- if (options.target) {
- options.fixed = true;
- }
- if (options.stem === true) {
- options.stem = new Opentip.Joint(options.tipJoint);
- }
- if (options.target === true) {
- options.target = this.triggerElement;
- } else if (options.target) {
- options.target = this.adapter.wrap(options.target);
- }
- this.currentStem = options.stem;
- if (options.delay == null) {
- options.delay = options.showOn === "mouseover" ? 0.2 : 0;
- }
- if (options.targetJoint == null) {
- options.targetJoint = new Opentip.Joint(options.tipJoint).flip();
- }
- this.showTriggers = [];
- this.showTriggersWhenVisible = [];
- this.hideTriggers = [];
- if (options.showOn && options.showOn !== "creation") {
- this.showTriggers.push({
- element: this.triggerElement,
- event: options.showOn
- });
- }
- if (options.ajaxCache != null) {
- options.cache = options.ajaxCache;
- delete options.ajaxCache;
- }
- this.options = options;
- this.bound = {};
- _ref2 = ["prepareToShow", "prepareToHide", "show", "hide", "reposition"];
- for (_j = 0, _len1 = _ref2.length; _j < _len1; _j++) {
- methodToBind = _ref2[_j];
- this.bound[methodToBind] = (function(methodToBind) {
- return function() {
- return _this[methodToBind].apply(_this, arguments);
- };
- })(methodToBind);
- }
- this.adapter.domReady(function() {
- _this.activate();
- if (_this.options.showOn === "creation") {
- return _this.prepareToShow();
- }
- });
- }
-
- Opentip.prototype._setup = function() {
- var hideOn, hideTrigger, hideTriggerElement, i, _i, _j, _len, _len1, _ref, _ref1, _results;
-
- this.debug("Setting up the tooltip.");
- this._buildContainer();
- this.hideTriggers = [];
- _ref = this.options.hideTriggers;
- for (i = _i = 0, _len = _ref.length; _i < _len; i = ++_i) {
- hideTrigger = _ref[i];
- hideTriggerElement = null;
- hideOn = this.options.hideOn instanceof Array ? this.options.hideOn[i] : this.options.hideOn;
- if (typeof hideTrigger === "string") {
- switch (hideTrigger) {
- case "trigger":
- hideOn = hideOn || "mouseout";
- hideTriggerElement = this.triggerElement;
- break;
- case "tip":
- hideOn = hideOn || "mouseover";
- hideTriggerElement = this.container;
- break;
- case "target":
- hideOn = hideOn || "mouseover";
- hideTriggerElement = this.options.target;
- break;
- case "closeButton":
- break;
- default:
- throw new Error("Unknown hide trigger: " + hideTrigger + ".");
- }
- } else {
- hideOn = hideOn || "mouseover";
- hideTriggerElement = this.adapter.wrap(hideTrigger);
- }
- if (hideTriggerElement) {
- this.hideTriggers.push({
- element: hideTriggerElement,
- event: hideOn,
- original: hideTrigger
- });
- }
- }
- _ref1 = this.hideTriggers;
- _results = [];
- for (_j = 0, _len1 = _ref1.length; _j < _len1; _j++) {
- hideTrigger = _ref1[_j];
- _results.push(this.showTriggersWhenVisible.push({
- element: hideTrigger.element,
- event: "mouseover"
- }));
- }
- return _results;
- };
-
- Opentip.prototype._buildContainer = function() {
- this.container = this.adapter.create("<div id=\"opentip-" + this.id + "\" class=\"" + this["class"].container + " " + this["class"].hidden + " " + this["class"].stylePrefix + this.options.className + "\"></div>");
- this.adapter.css(this.container, {
- position: "absolute"
- });
- if (this.options.ajax) {
- this.adapter.addClass(this.container, this["class"].loading);
- }
- if (this.options.fixed) {
- this.adapter.addClass(this.container, this["class"].fixed);
- }
- if (this.options.showEffect) {
- this.adapter.addClass(this.container, "" + this["class"].showEffectPrefix + this.options.showEffect);
- }
- if (this.options.hideEffect) {
- return this.adapter.addClass(this.container, "" + this["class"].hideEffectPrefix + this.options.hideEffect);
- }
- };
-
- Opentip.prototype._buildElements = function() {
- var headerElement, titleElement;
-
- this.tooltipElement = this.adapter.create("<div class=\"" + this["class"].opentip + "\"><div class=\"" + this["class"].header + "\"></div><div class=\"" + this["class"].content + "\"></div></div>");
- this.backgroundCanvas = this.adapter.wrap(document.createElement("canvas"));
- this.adapter.css(this.backgroundCanvas, {
- position: "absolute"
- });
- if (typeof G_vmlCanvasManager !== "undefined" && G_vmlCanvasManager !== null) {
- G_vmlCanvasManager.initElement(this.adapter.unwrap(this.backgroundCanvas));
- }
- headerElement = this.adapter.find(this.tooltipElement, "." + this["class"].header);
- if (this.options.title) {
- titleElement = this.adapter.create("<h1></h1>");
- this.adapter.update(titleElement, this.options.title, this.options.escapeTitle);
- this.adapter.append(headerElement, titleElement);
- }
- if (this.options.ajax && !this.loaded) {
- this.adapter.append(this.tooltipElement, this.adapter.create("<div class=\"" + this["class"].loadingIndicator + "\"><span>↻</span></div>"));
- }
- if (__indexOf.call(this.options.hideTriggers, "closeButton") >= 0) {
- this.closeButtonElement = this.adapter.create("<a href=\"javascript:undefined;\" class=\"" + this["class"].close + "\"><span>Close</span></a>");
- this.adapter.append(headerElement, this.closeButtonElement);
- }
- this.adapter.append(this.container, this.backgroundCanvas);
- this.adapter.append(this.container, this.tooltipElement);
- this.adapter.append(document.body, this.container);
- this._newContent = true;
- return this.redraw = true;
- };
-
- Opentip.prototype.setContent = function(content) {
- this.content = content;
- this._newContent = true;
- if (typeof this.content === "function") {
- this._contentFunction = this.content;
- this.content = "";
- } else {
- this._contentFunction = null;
- }
- if (this.visible) {
- return this._updateElementContent();
- }
- };
-
- Opentip.prototype._updateElementContent = function() {
- var contentDiv;
-
- if (this._newContent || (!this.options.cache && this._contentFunction)) {
- contentDiv = this.adapter.find(this.container, "." + this["class"].content);
- if (contentDiv != null) {
- if (this._contentFunction) {
- this.debug("Executing content function.");
- this.content = this._contentFunction(this);
- }
- this.adapter.update(contentDiv, this.content, this.options.escapeContent);
- }
- this._newContent = false;
- }
- this._storeAndLockDimensions();
- return this.reposition();
- };
-
- Opentip.prototype._storeAndLockDimensions = function() {
- var prevDimension;
-
- if (!this.container) {
- return;
- }
- prevDimension = this.dimensions;
- this.adapter.css(this.container, {
- width: "auto",
- left: "0px",
- top: "0px"
- });
- this.dimensions = this.adapter.dimensions(this.container);
- this.dimensions.width += 1;
- this.adapter.css(this.container, {
- width: "" + this.dimensions.width + "px",
- top: "" + this.currentPosition.top + "px",
- left: "" + this.currentPosition.left + "px"
- });
- if (!this._dimensionsEqual(this.dimensions, prevDimension)) {
- this.redraw = true;
- return this._draw();
- }
- };
-
- Opentip.prototype.activate = function() {
- return this._setupObservers("hidden", "hiding");
- };
-
- Opentip.prototype.deactivate = function() {
- this.debug("Deactivating tooltip.");
- this.hide();
- return this._setupObservers("-showing", "-visible", "-hidden", "-hiding");
- };
-
- Opentip.prototype._setupObservers = function() {
- var observeOrStop, removeObserver, state, states, trigger, _i, _j, _k, _l, _len, _len1, _len2, _len3, _ref, _ref1, _ref2,
- _this = this;
-
- states = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
- for (_i = 0, _len = states.length; _i < _len; _i++) {
- state = states[_i];
- removeObserver = false;
- if (state.charAt(0) === "-") {
- removeObserver = true;
- state = state.substr(1);
- }
- if (this.currentObservers[state] === !removeObserver) {
- continue;
- }
- this.currentObservers[state] = !removeObserver;
- observeOrStop = function() {
- var args, _ref, _ref1;
-
- args = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
- if (removeObserver) {
- return (_ref = _this.adapter).stopObserving.apply(_ref, args);
- } else {
- return (_ref1 = _this.adapter).observe.apply(_ref1, args);
- }
- };
- switch (state) {
- case "showing":
- _ref = this.hideTriggers;
- for (_j = 0, _len1 = _ref.length; _j < _len1; _j++) {
- trigger = _ref[_j];
- observeOrStop(trigger.element, trigger.event, this.bound.prepareToHide);
- }
- observeOrStop((document.onresize != null ? document : window), "resize", this.bound.reposition);
- observeOrStop(window, "scroll", this.bound.reposition);
- break;
- case "visible":
- _ref1 = this.showTriggersWhenVisible;
- for (_k = 0, _len2 = _ref1.length; _k < _len2; _k++) {
- trigger = _ref1[_k];
- observeOrStop(trigger.element, trigger.event, this.bound.prepareToShow);
- }
- break;
- case "hiding":
- _ref2 = this.showTriggers;
- for (_l = 0, _len3 = _ref2.length; _l < _len3; _l++) {
- trigger = _ref2[_l];
- observeOrStop(trigger.element, trigger.event, this.bound.prepareToShow);
- }
- break;
- case "hidden":
- break;
- default:
- throw new Error("Unknown state: " + state);
- }
- }
- return null;
- };
-
- Opentip.prototype.prepareToShow = function() {
- this._abortHiding();
- this._abortShowing();
- if (this.visible) {
- return;
- }
- this.debug("Showing in " + this.options.delay + "s.");
- if (this.container == null) {
- this._setup();
- }
- if (this.options.group) {
- Opentip._abortShowingGroup(this.options.group, this);
- }
- this.preparingToShow = true;
- this._setupObservers("-hidden", "-hiding", "showing");
- this._followMousePosition();
- if (this.options.fixed && !this.options.target) {
- this.initialMousePosition = mousePosition;
- }
- this.reposition();
- return this._showTimeoutId = this.setTimeout(this.bound.show, this.options.delay || 0);
- };
-
- Opentip.prototype.show = function() {
- var _this = this;
-
- this._abortHiding();
- if (this.visible) {
- return;
- }
- this._clearTimeouts();
- if (!this._triggerElementExists()) {
- return this.deactivate();
- }
- this.debug("Showing now.");
- if (this.container == null) {
- this._setup();
- }
- if (this.options.group) {
- Opentip._hideGroup(this.options.group, this);
- }
- this.visible = true;
- this.preparingToShow = false;
- if (this.tooltipElement == null) {
- this._buildElements();
- }
- this._updateElementContent();
- if (this.options.ajax && (!this.loaded || !this.options.cache)) {
- this._loadAjax();
- }
- this._searchAndActivateCloseButtons();
- this._startEnsureTriggerElement();
- this.adapter.css(this.container, {
- zIndex: Opentip.lastZIndex++
- });
- this._setupObservers("-hidden", "-hiding", "-showing", "-visible", "showing", "visible");
- if (this.options.fixed && !this.options.target) {
- this.initialMousePosition = mousePosition;
- }
- this.reposition();
- this.adapter.removeClass(this.container, this["class"].hiding);
- this.adapter.removeClass(this.container, this["class"].hidden);
- this.adapter.addClass(this.container, this["class"].goingToShow);
- this.setCss3Style(this.container, {
- transitionDuration: "0s"
- });
- this.defer(function() {
- var delay;
-
- if (!_this.visible || _this.preparingToHide) {
- return;
- }
- _this.adapter.removeClass(_this.container, _this["class"].goingToShow);
- _this.adapter.addClass(_this.container, _this["class"].showing);
- delay = 0;
- if (_this.options.showEffect && _this.options.showEffectDuration) {
- delay = _this.options.showEffectDuration;
- }
- _this.setCss3Style(_this.container, {
- transitionDuration: "" + delay + "s"
- });
- _this._visibilityStateTimeoutId = _this.setTimeout(function() {
- _this.adapter.removeClass(_this.container, _this["class"].showing);
- return _this.adapter.addClass(_this.container, _this["class"].visible);
- }, delay);
- return _this._activateFirstInput();
- });
- return this._draw();
- };
-
- Opentip.prototype._abortShowing = function() {
- if (this.preparingToShow) {
- this.debug("Aborting showing.");
- this._clearTimeouts();
- this._stopFollowingMousePosition();
- this.preparingToShow = false;
- return this._setupObservers("-showing", "-visible", "hiding", "hidden");
- }
- };
-
- Opentip.prototype.prepareToHide = function() {
- this._abortShowing();
- this._abortHiding();
- if (!this.visible) {
- return;
- }
- this.debug("Hiding in " + this.options.hideDelay + "s");
- this.preparingToHide = true;
- this._setupObservers("-showing", "visible", "-hidden", "hiding");
- return this._hideTimeoutId = this.setTimeout(this.bound.hide, this.options.hideDelay);
- };
-
- Opentip.prototype.hide = function() {
- var _this = this;
-
- this._abortShowing();
- if (!this.visible) {
- return;
- }
- this._clearTimeouts();
- this.debug("Hiding!");
- this.visible = false;
- this.preparingToHide = false;
- this._stopEnsureTriggerElement();
- this._setupObservers("-showing", "-visible", "-hiding", "-hidden", "hiding", "hidden");
- if (!this.options.fixed) {
- this._stopFollowingMousePosition();
- }
- if (!this.container) {
- return;
- }
- this.adapter.removeClass(this.container, this["class"].visible);
- this.adapter.removeClass(this.container, this["class"].showing);
- this.adapter.addClass(this.container, this["class"].goingToHide);
- this.setCss3Style(this.container, {
- transitionDuration: "0s"
- });
- return this.defer(function() {
- var hideDelay;
-
- _this.adapter.removeClass(_this.container, _this["class"].goingToHide);
- _this.adapter.addClass(_this.container, _this["class"].hiding);
- hideDelay = 0;
- if (_this.options.hideEffect && _this.options.hideEffectDuration) {
- hideDelay = _this.options.hideEffectDuration;
- }
- _this.setCss3Style(_this.container, {
- transitionDuration: "" + hideDelay + "s"
- });
- return _this._visibilityStateTimeoutId = _this.setTimeout(function() {
- _this.adapter.removeClass(_this.container, _this["class"].hiding);
- _this.adapter.addClass(_this.container, _this["class"].hidden);
- _this.setCss3Style(_this.container, {
- transitionDuration: "0s"
- });
- if (_this.options.removeElementsOnHide) {
- _this.debug("Removing HTML elements.");
- _this.adapter.remove(_this.container);
- delete _this.container;
- return delete _this.tooltipElement;
- }
- }, hideDelay);
- });
- };
-
- Opentip.prototype._abortHiding = function() {
- if (this.preparingToHide) {
- this.debug("Aborting hiding.");
- this._clearTimeouts();
- this.preparingToHide = false;
- return this._setupObservers("-hiding", "showing", "visible");
- }
- };
-
- Opentip.prototype.reposition = function() {
- var position, stem, _ref,
- _this = this;
-
- position = this.getPosition();
- if (position == null) {
- return;
- }
- stem = this.options.stem;
- if (this.options.containInViewport) {
- _ref = this._ensureViewportContainment(position), position = _ref.position, stem = _ref.stem;
- }
- if (this._positionsEqual(position, this.currentPosition)) {
- return;
- }
- if (!(!this.options.stem || stem.eql(this.currentStem))) {
- this.redraw = true;
- }
- this.currentPosition = position;
- this.currentStem = stem;
- this._draw();
- this.adapter.css(this.container, {
- left: "" + position.left + "px",
- top: "" + position.top + "px"
- });
- return this.defer(function() {
- var rawContainer, redrawFix;
-
- rawContainer = _this.adapter.unwrap(_this.container);
- rawContainer.style.visibility = "hidden";
- redrawFix = rawContainer.offsetHeight;
- return rawContainer.style.visibility = "visible";
- });
- };
-
- Opentip.prototype.getPosition = function(tipJoint, targetJoint, stem) {
- var additionalHorizontal, additionalVertical, offsetDistance, position, stemLength, targetDimensions, targetPosition, unwrappedTarget, _ref;
-
- if (!this.container) {
- return;
- }
- if (tipJoint == null) {
- tipJoint = this.options.tipJoint;
- }
- if (targetJoint == null) {
- targetJoint = this.options.targetJoint;
- }
- position = {};
- if (this.options.target) {
- targetPosition = this.adapter.offset(this.options.target);
- targetDimensions = this.adapter.dimensions(this.options.target);
- position = targetPosition;
- if (targetJoint.right) {
- unwrappedTarget = this.adapter.unwrap(this.options.target);
- if (unwrappedTarget.getBoundingClientRect != null) {
- position.left = unwrappedTarget.getBoundingClientRect().right + ((_ref = window.pageXOffset) != null ? _ref : document.body.scrollLeft);
- } else {
- position.left += targetDimensions.width;
- }
- } else if (targetJoint.center) {
- position.left += Math.round(targetDimensions.width / 2);
- }
- if (targetJoint.bottom) {
- position.top += targetDimensions.height;
- } else if (targetJoint.middle) {
- position.top += Math.round(targetDimensions.height / 2);
- }
- if (this.options.borderWidth) {
- if (this.options.tipJoint.left) {
- position.left += this.options.borderWidth;
- }
- if (this.options.tipJoint.right) {
- position.left -= this.options.borderWidth;
- }
- if (this.options.tipJoint.top) {
- position.top += this.options.borderWidth;
- } else if (this.options.tipJoint.bottom) {
- position.top -= this.options.borderWidth;
- }
- }
- } else {
- if (this.initialMousePosition) {
- position = {
- top: this.initialMousePosition.y,
- left: this.initialMousePosition.x
- };
- } else {
- position = {
- top: mousePosition.y,
- left: mousePosition.x
- };
- }
- }
- if (this.options.autoOffset) {
- stemLength = this.options.stem ? this.options.stemLength : 0;
- offsetDistance = stemLength && this.options.fixed ? 2 : 10;
- additionalHorizontal = tipJoint.middle && !this.options.fixed ? 15 : 0;
- additionalVertical = tipJoint.center && !this.options.fixed ? 15 : 0;
- if (tipJoint.right) {
- position.left -= offsetDistance + additionalHorizontal;
- } else if (tipJoint.left) {
- position.left += offsetDistance + additionalHorizontal;
- }
- if (tipJoint.bottom) {
- position.top -= offsetDistance + additionalVertical;
- } else if (tipJoint.top) {
- position.top += offsetDistance + additionalVertical;
- }
- if (stemLength) {
- if (stem == null) {
- stem = this.options.stem;
- }
- if (stem.right) {
- position.left -= stemLength;
- } else if (stem.left) {
- position.left += stemLength;
- }
- if (stem.bottom) {
- position.top -= stemLength;
- } else if (stem.top) {
- position.top += stemLength;
- }
- }
- }
- position.left += this.options.offset[0];
- position.top += this.options.offset[1];
- if (tipJoint.right) {
- position.left -= this.dimensions.width;
- } else if (tipJoint.center) {
- position.left -= Math.round(this.dimensions.width / 2);
- }
- if (tipJoint.bottom) {
- position.top -= this.dimensions.height;
- } else if (tipJoint.middle) {
- position.top -= Math.round(this.dimensions.height / 2);
- }
- return position;
- };
-
- Opentip.prototype._ensureViewportContainment = function(position) {
- var needsRepositioning, newSticksOut, originals, revertedX, revertedY, scrollOffset, stem, sticksOut, targetJoint, tipJoint, viewportDimensions, viewportPosition;
-
- stem = this.options.stem;
- originals = {
- position: position,
- stem: stem
- };
- if (!(this.visible && position)) {
- return originals;
- }
- sticksOut = this._sticksOut(position);
- if (!(sticksOut[0] || sticksOut[1])) {
- return originals;
- }
- tipJoint = new Opentip.Joint(this.options.tipJoint);
- if (this.options.targetJoint) {
- targetJoint = new Opentip.Joint(this.options.targetJoint);
- }
- scrollOffset = this.adapter.scrollOffset();
- viewportDimensions = this.adapter.viewportDimensions();
- viewportPosition = [position.left - scrollOffset[0], position.top - scrollOffset[1]];
- needsRepositioning = false;
- if (viewportDimensions.width >= this.dimensions.width) {
- if (sticksOut[0]) {
- needsRepositioning = true;
- switch (sticksOut[0]) {
- case this.STICKS_OUT_LEFT:
- tipJoint.setHorizontal("left");
- if (this.options.targetJoint) {
- targetJoint.setHorizontal("right");
- }
- break;
- case this.STICKS_OUT_RIGHT:
- tipJoint.setHorizontal("right");
- if (this.options.targetJoint) {
- targetJoint.setHorizontal("left");
- }
- }
- }
- }
- if (viewportDimensions.height >= this.dimensions.height) {
- if (sticksOut[1]) {
- needsRepositioning = true;
- switch (sticksOut[1]) {
- case this.STICKS_OUT_TOP:
- tipJoint.setVertical("top");
- if (this.options.targetJoint) {
- targetJoint.setVertical("bottom");
- }
- break;
- case this.STICKS_OUT_BOTTOM:
- tipJoint.setVertical("bottom");
- if (this.options.targetJoint) {
- targetJoint.setVertical("top");
- }
- }
- }
- }
- if (!needsRepositioning) {
- return originals;
- }
- if (this.options.stem) {
- stem = tipJoint;
- }
- position = this.getPosition(tipJoint, targetJoint, stem);
- newSticksOut = this._sticksOut(position);
- revertedX = false;
- revertedY = false;
- if (newSticksOut[0] && (newSticksOut[0] !== sticksOut[0])) {
- revertedX = true;
- tipJoint.setHorizontal(this.options.tipJoint.horizontal);
- if (this.options.targetJoint) {
- targetJoint.setHorizontal(this.options.targetJoint.horizontal);
- }
- }
- if (newSticksOut[1] && (newSticksOut[1] !== sticksOut[1])) {
- revertedY = true;
- tipJoint.setVertical(this.options.tipJoint.vertical);
- if (this.options.targetJoint) {
- targetJoint.setVertical(this.options.targetJoint.vertical);
- }
- }
- if (revertedX && revertedY) {
- return originals;
- }
- if (revertedX || revertedY) {
- if (this.options.stem) {
- stem = tipJoint;
- }
- position = this.getPosition(tipJoint, targetJoint, stem);
- }
- return {
- position: position,
- stem: stem
- };
- };
-
- Opentip.prototype._sticksOut = function(position) {
- var positionOffset, scrollOffset, sticksOut, viewportDimensions;
-
- scrollOffset = this.adapter.scrollOffset();
- viewportDimensions = this.adapter.viewportDimensions();
- positionOffset = [position.left - scrollOffset[0], position.top - scrollOffset[1]];
- sticksOut = [false, false];
- if (positionOffset[0] < 0) {
- sticksOut[0] = this.STICKS_OUT_LEFT;
- } else if (positionOffset[0] + this.dimensions.width > viewportDimensions.width) {
- sticksOut[0] = this.STICKS_OUT_RIGHT;
- }
- if (positionOffset[1] < 0) {
- sticksOut[1] = this.STICKS_OUT_TOP;
- } else if (positionOffset[1] + this.dimensions.height > viewportDimensions.height) {
- sticksOut[1] = this.STICKS_OUT_BOTTOM;
- }
- return sticksOut;
- };
-
- Opentip.prototype._draw = function() {
- var backgroundCanvas, bulge, canvasDimensions, canvasPosition, closeButton, closeButtonInner, closeButtonOuter, ctx, drawCorner, drawLine, hb, position, stemBase, stemLength, _i, _len, _ref, _ref1, _ref2,
- _this = this;
-
- if (!(this.backgroundCanvas && this.redraw)) {
- return;
- }
- this.debug("Drawing background.");
- this.redraw = false;
- if (this.currentStem) {
- _ref = ["top", "right", "bottom", "left"];
- for (_i = 0, _len = _ref.length; _i < _len; _i++) {
- position = _ref[_i];
- this.adapter.removeClass(this.container, "stem-" + position);
- }
- this.adapter.addClass(this.container, "stem-" + this.currentStem.horizontal);
- this.adapter.addClass(this.container, "stem-" + this.currentStem.vertical);
- }
- closeButtonInner = [0, 0];
- closeButtonOuter = [0, 0];
- if (__indexOf.call(this.options.hideTriggers, "closeButton") >= 0) {
- closeButton = new Opentip.Joint(((_ref1 = this.currentStem) != null ? _ref1.toString() : void 0) === "top right" ? "top left" : "top right");
- closeButtonInner = [this.options.closeButtonRadius + this.options.closeButtonOffset[0], this.options.closeButtonRadius + this.options.closeButtonOffset[1]];
- closeButtonOuter = [this.options.closeButtonRadius - this.options.closeButtonOffset[0], this.options.closeButtonRadius - this.options.closeButtonOffset[1]];
- }
- canvasDimensions = this.adapter.clone(this.dimensions);
- canvasPosition = [0, 0];
- if (this.options.borderWidth) {
- canvasDimensions.width += this.options.borderWidth * 2;
- canvasDimensions.height += this.options.borderWidth * 2;
- canvasPosition[0] -= this.options.borderWidth;
- canvasPosition[1] -= this.options.borderWidth;
- }
- if (this.options.shadow) {
- canvasDimensions.width += this.options.shadowBlur * 2;
- canvasDimensions.width += Math.max(0, this.options.shadowOffset[0] - this.options.shadowBlur * 2);
- canvasDimensions.height += this.options.shadowBlur * 2;
- canvasDimensions.height += Math.max(0, this.options.shadowOffset[1] - this.options.shadowBlur * 2);
- canvasPosition[0] -= Math.max(0, this.options.shadowBlur - this.options.shadowOffset[0]);
- canvasPosition[1] -= Math.max(0, this.options.shadowBlur - this.options.shadowOffset[1]);
- }
- bulge = {
- left: 0,
- right: 0,
- top: 0,
- bottom: 0
- };
- if (this.currentStem) {
- if (this.currentStem.left) {
- bulge.left = this.options.stemLength;
- } else if (this.currentStem.right) {
- bulge.right = this.options.stemLength;
- }
- if (this.currentStem.top) {
- bulge.top = this.options.stemLength;
- } else if (this.currentStem.bottom) {
- bulge.bottom = this.options.stemLength;
- }
- }
- if (closeButton) {
- if (closeButton.left) {
- bulge.left = Math.max(bulge.left, closeButtonOuter[0]);
- } else if (closeButton.right) {
- bulge.right = Math.max(bulge.right, closeButtonOuter[0]);
- }
- if (closeButton.top) {
- bulge.top = Math.max(bulge.top, closeButtonOuter[1]);
- } else if (closeButton.bottom) {
- bulge.bottom = Math.max(bulge.bottom, closeButtonOuter[1]);
- }
- }
- canvasDimensions.width += bulge.left + bulge.right;
- canvasDimensions.height += bulge.top + bulge.bottom;
- canvasPosition[0] -= bulge.left;
- canvasPosition[1] -= bulge.top;
- if (this.currentStem && this.options.borderWidth) {
- _ref2 = this._getPathStemMeasures(this.options.stemBase, this.options.stemLength, this.options.borderWidth), stemLength = _ref2.stemLength, stemBase = _ref2.stemBase;
- }
- backgroundCanvas = this.adapter.unwrap(this.backgroundCanvas);
- backgroundCanvas.width = canvasDimensions.width;
- backgroundCanvas.height = canvasDimensions.height;
- this.adapter.css(this.backgroundCanvas, {
- width: "" + backgroundCanvas.width + "px",
- height: "" + backgroundCanvas.height + "px",
- left: "" + canvasPosition[0] + "px",
- top: "" + canvasPosition[1] + "px"
- });
- ctx = backgroundCanvas.getContext("2d");
- ctx.setTransform(1, 0, 0, 1, 0, 0);
- ctx.clearRect(0, 0, backgroundCanvas.width, backgroundCanvas.height);
- ctx.beginPath();
- ctx.fillStyle = this._getColor(ctx, this.dimensions, this.options.background, this.options.backgroundGradientHorizontal);
- ctx.lineJoin = "miter";
- ctx.miterLimit = 500;
- hb = this.options.borderWidth / 2;
- if (this.options.borderWidth) {
- ctx.strokeStyle = this.options.borderColor;
- ctx.lineWidth = this.options.borderWidth;
- } else {
- stemLength = this.options.stemLength;
- stemBase = this.options.stemBase;
- }
- if (stemBase == null) {
- stemBase = 0;
- }
- drawLine = function(length, stem, first) {
- if (first) {
- ctx.moveTo(Math.max(stemBase, _this.options.borderRadius, closeButtonInner[0]) + 1 - hb, -hb);
- }
- if (stem) {
- ctx.lineTo(length / 2 - stemBase / 2, -hb);
- ctx.lineTo(length / 2, -stemLength - hb);
- return ctx.lineTo(length / 2 + stemBase / 2, -hb);
- }
- };
- drawCorner = function(stem, closeButton, i) {
- var angle1, angle2, innerWidth, offset;
-
- if (stem) {
- ctx.lineTo(-stemBase + hb, 0 - hb);
- ctx.lineTo(stemLength + hb, -stemLength - hb);
- return ctx.lineTo(hb, stemBase - hb);
- } else if (closeButton) {
- offset = _this.options.closeButtonOffset;
- innerWidth = closeButtonInner[0];
- if (i % 2 !== 0) {
- offset = [offset[1], offset[0]];
- innerWidth = closeButtonInner[1];
- }
- angle1 = Math.acos(offset[1] / _this.options.closeButtonRadius);
- angle2 = Math.acos(offset[0] / _this.options.closeButtonRadius);
- ctx.lineTo(-innerWidth + hb, -hb);
- return ctx.arc(hb - offset[0], -hb + offset[1], _this.options.closeButtonRadius, -(Math.PI / 2 + angle1), angle2, false);
- } else {
- ctx.lineTo(-_this.options.borderRadius + hb, -hb);
- return ctx.quadraticCurveTo(hb, -hb, hb, _this.options.borderRadius - hb);
- }
- };
- ctx.translate(-canvasPosition[0], -canvasPosition[1]);
- ctx.save();
- (function() {
- var cornerStem, i, lineLength, lineStem, positionIdx, positionX, positionY, rotation, _j, _ref3, _results;
-
- _results = [];
- for (i = _j = 0, _ref3 = Opentip.positions.length / 2; 0 <= _ref3 ? _j < _ref3 : _j > _ref3; i = 0 <= _ref3 ? ++_j : --_j) {
- positionIdx = i * 2;
- positionX = i === 0 || i === 3 ? 0 : _this.dimensions.width;
- positionY = i < 2 ? 0 : _this.dimensions.height;
- rotation = (Math.PI / 2) * i;
- lineLength = i % 2 === 0 ? _this.dimensions.width : _this.dimensions.height;
- lineStem = new Opentip.Joint(Opentip.positions[positionIdx]);
- cornerStem = new Opentip.Joint(Opentip.positions[positionIdx + 1]);
- ctx.save();
- ctx.translate(positionX, positionY);
- ctx.rotate(rotation);
- drawLine(lineLength, lineStem.eql(_this.currentStem), i === 0);
- ctx.translate(lineLength, 0);
- drawCorner(cornerStem.eql(_this.currentStem), cornerStem.eql(closeButton), i);
- _results.push(ctx.restore());
- }
- return _results;
- })();
- ctx.closePath();
- ctx.save();
- if (this.options.shadow) {
- ctx.shadowColor = this.options.shadowColor;
- ctx.shadowBlur = this.options.shadowBlur;
- ctx.shadowOffsetX = this.options.shadowOffset[0];
- ctx.shadowOffsetY = this.options.shadowOffset[1];
- }
- ctx.fill();
- ctx.restore();
- if (this.options.borderWidth) {
- ctx.stroke();
- }
- ctx.restore();
- if (closeButton) {
- return (function() {
- var crossCenter, crossHeight, crossWidth, hcs, linkCenter;
-
- crossWidth = crossHeight = _this.options.closeButtonRadius * 2;
- if (closeButton.toString() === "top right") {
- linkCenter = [_this.dimensions.width - _this.options.closeButtonOffset[0], _this.options.closeButtonOffset[1]];
- crossCenter = [linkCenter[0] + hb, linkCenter[1] - hb];
- } else {
- linkCenter = [_this.options.closeButtonOffset[0], _this.options.closeButtonOffset[1]];
- crossCenter = [linkCenter[0] - hb, linkCenter[1] - hb];
- }
- ctx.translate(crossCenter[0], crossCenter[1]);
- hcs = _this.options.closeButtonCrossSize / 2;
- ctx.save();
- ctx.beginPath();
- ctx.strokeStyle = _this.options.closeButtonCrossColor;
- ctx.lineWidth = _this.options.closeButtonCrossLineWidth;
- ctx.lineCap = "round";
- ctx.moveTo(-hcs, -hcs);
- ctx.lineTo(hcs, hcs);
- ctx.stroke();
- ctx.beginPath();
- ctx.moveTo(hcs, -hcs);
- ctx.lineTo(-hcs, hcs);
- ctx.stroke();
- ctx.restore();
- return _this.adapter.css(_this.closeButtonElement, {
- left: "" + (linkCenter[0] - hcs - _this.options.closeButtonLinkOverscan) + "px",
- top: "" + (linkCenter[1] - hcs - _this.options.closeButtonLinkOverscan) + "px",
- width: "" + (_this.options.closeButtonCrossSize + _this.options.closeButtonLinkOverscan * 2) + "px",
- height: "" + (_this.options.closeButtonCrossSize + _this.options.closeButtonLinkOverscan * 2) + "px"
- });
- })();
- }
- };
-
- Opentip.prototype._getPathStemMeasures = function(outerStemBase, outerStemLength, borderWidth) {
- var angle, distanceBetweenTips, halfAngle, hb, rhombusSide, stemBase, stemLength;
-
- hb = borderWidth / 2;
- halfAngle = Math.atan((outerStemBase / 2) / outerStemLength);
- angle = halfAngle * 2;
- rhombusSide = hb / Math.sin(angle);
- distanceBetweenTips = 2 * rhombusSide * Math.cos(halfAngle);
- stemLength = hb + outerStemLength - distanceBetweenTips;
- if (stemLength < 0) {
- throw new Error("Sorry but your stemLength / stemBase ratio is strange.");
- }
- stemBase = (Math.tan(halfAngle) * stemLength) * 2;
- return {
- stemLength: stemLength,
- stemBase: stemBase
- };
- };
-
- Opentip.prototype._getColor = function(ctx, dimensions, color, horizontal) {
- var colorStop, gradient, i, _i, _len;
-
- if (horizontal == null) {
- horizontal = false;
- }
- if (typeof color === "string") {
- return color;
- }
- if (horizontal) {
- gradient = ctx.createLinearGradient(0, 0, dimensions.width, 0);
- } else {
- gradient = ctx.createLinearGradient(0, 0, 0, dimensions.height);
- }
- for (i = _i = 0, _len = color.length; _i < _len; i = ++_i) {
- colorStop = color[i];
- gradient.addColorStop(colorStop[0], colorStop[1]);
- }
- return gradient;
- };
-
- Opentip.prototype._searchAndActivateCloseButtons = function() {
- var element, _i, _len, _ref;
-
- _ref = this.adapter.findAll(this.container, "." + this["class"].close);
- for (_i = 0, _len = _ref.length; _i < _len; _i++) {
- element = _ref[_i];
- this.hideTriggers.push({
- element: this.adapter.wrap(element),
- event: "click"
- });
- }
- if (this.currentObservers.showing) {
- this._setupObservers("-showing", "showing");
- }
- if (this.currentObservers.visible) {
- return this._setupObservers("-visible", "visible");
- }
- };
-
- Opentip.prototype._activateFirstInput = function() {
- var input;
-
- input = this.adapter.unwrap(this.adapter.find(this.container, "input, textarea"));
- return input != null ? typeof input.focus === "function" ? input.focus() : void 0 : void 0;
- };
-
- Opentip.prototype._followMousePosition = function() {
- if (!this.options.fixed) {
- return Opentip._observeMousePosition(this.bound.reposition);
- }
- };
-
- Opentip.prototype._stopFollowingMousePosition = function() {
- if (!this.options.fixed) {
- return Opentip._stopObservingMousePosition(this.bound.reposition);
- }
- };
-
- Opentip.prototype._clearShowTimeout = function() {
- return clearTimeout(this._showTimeoutId);
- };
-
- Opentip.prototype._clearHideTimeout = function() {
- return clearTimeout(this._hideTimeoutId);
- };
-
- Opentip.prototype._clearTimeouts = function() {
- clearTimeout(this._visibilityStateTimeoutId);
- this._clearShowTimeout();
- return this._clearHideTimeout();
- };
-
- Opentip.prototype._triggerElementExists = function() {
- var el;
-
- el = this.adapter.unwrap(this.triggerElement);
- while (el.parentNode) {
- if (el.parentNode.tagName === "BODY") {
- return true;
- }
- el = el.parentNode;
- }
- return false;
- };
-
- Opentip.prototype._loadAjax = function() {
- var _this = this;
-
- if (this.loading) {
- return;
- }
- this.loaded = false;
- this.loading = true;
- this.adapter.addClass(this.container, this["class"].loading);
- this.setContent("");
- this.debug("Loading content from " + this.options.ajax);
- return this.adapter.ajax({
- url: this.options.ajax,
- method: this.options.ajaxMethod,
- onSuccess: function(responseText) {
- _this.debug("Loading successful.");
- _this.adapter.removeClass(_this.container, _this["class"].loading);
- return _this.setContent(responseText);
- },
- onError: function(error) {
- var message;
-
- message = _this.options.ajaxErrorMessage;
- _this.debug(message, error);
- _this.setContent(message);
- return _this.adapter.addClass(_this.container, _this["class"].ajaxError);
- },
- onComplete: function() {
- _this.adapter.removeClass(_this.container, _this["class"].loading);
- _this.loading = false;
- _this.loaded = true;
- _this._searchAndActivateCloseButtons();
- _this._activateFirstInput();
- return _this.reposition();
- }
- });
- };
-
- Opentip.prototype._ensureTriggerElement = function() {
- if (!this._triggerElementExists()) {
- this.deactivate();
- return this._stopEnsureTriggerElement();
- }
- };
-
- Opentip.prototype._ensureTriggerElementInterval = 1000;
-
- Opentip.prototype._startEnsureTriggerElement = function() {
- var _this = this;
-
- return this._ensureTriggerElementTimeoutId = setInterval((function() {
- return _this._ensureTriggerElement();
- }), this._ensureTriggerElementInterval);
- };
-
- Opentip.prototype._stopEnsureTriggerElement = function() {
- return clearInterval(this._ensureTriggerElementTimeoutId);
- };
-
- return Opentip;
-
-})();
-
-vendors = ["khtml", "ms", "o", "moz", "webkit"];
-
-Opentip.prototype.setCss3Style = function(element, styles) {
- var prop, value, vendor, vendorProp, _results;
-
- element = this.adapter.unwrap(element);
- _results = [];
- for (prop in styles) {
- if (!__hasProp.call(styles, prop)) continue;
- value = styles[prop];
- if (element.style[prop] != null) {
- _results.push(element.style[prop] = value);
- } else {
- _results.push((function() {
- var _i, _len, _results1;
-
- _results1 = [];
- for (_i = 0, _len = vendors.length; _i < _len; _i++) {
- vendor = vendors[_i];
- vendorProp = "" + (this.ucfirst(vendor)) + (this.ucfirst(prop));
- if (element.style[vendorProp] != null) {
- _results1.push(element.style[vendorProp] = value);
- } else {
- _results1.push(void 0);
- }
- }
- return _results1;
- }).call(this));
- }
- }
- return _results;
-};
-
-Opentip.prototype.defer = function(func) {
- return setTimeout(func, 0);
-};
-
-Opentip.prototype.setTimeout = function(func, seconds) {
- return setTimeout(func, seconds ? seconds * 1000 : 0);
-};
-
-Opentip.prototype.ucfirst = function(string) {
- if (string == null) {
- return "";
- }
- return string.charAt(0).toUpperCase() + string.slice(1);
-};
-
-Opentip.prototype.dasherize = function(string) {
- return string.replace(/([A-Z])/g, function(_, character) {
- return "-" + (character.toLowerCase());
- });
-};
-
-mousePositionObservers = [];
-
-mousePosition = {
- x: 0,
- y: 0
-};
-
-mouseMoved = function(e) {
- var observer, _i, _len, _results;
-
- mousePosition = Opentip.adapter.mousePosition(e);
- _results = [];
- for (_i = 0, _len = mousePositionObservers.length; _i < _len; _i++) {
- observer = mousePositionObservers[_i];
- _results.push(observer());
- }
- return _results;
-};
-
-Opentip.followMousePosition = function() {
- return Opentip.adapter.observe(document.body, "mousemove", mouseMoved);
-};
-
-Opentip._observeMousePosition = function(observer) {
- return mousePositionObservers.push(observer);
-};
-
-Opentip._stopObservingMousePosition = function(removeObserver) {
- var observer;
-
- return mousePositionObservers = (function() {
- var _i, _len, _results;
-
- _results = [];
- for (_i = 0, _len = mousePositionObservers.length; _i < _len; _i++) {
- observer = mousePositionObservers[_i];
- if (observer !== removeObserver) {
- _results.push(observer);
- }
- }
- return _results;
- })();
-};
-
-Opentip.Joint = (function() {
- function Joint(pointerString) {
- if (pointerString == null) {
- return;
- }
- if (pointerString instanceof Opentip.Joint) {
- pointerString = pointerString.toString();
- }
- this.set(pointerString);
- this;
- }
-
- Joint.prototype.set = function(string) {
- string = string.toLowerCase();
- this.setHorizontal(string);
- this.setVertical(string);
- return this;
- };
-
- Joint.prototype.setHorizontal = function(string) {
- var i, valid, _i, _j, _len, _len1, _results;
-
- valid = ["left", "center", "right"];
- for (_i = 0, _len = valid.length; _i < _len; _i++) {
- i = valid[_i];
- if (~string.indexOf(i)) {
- this.horizontal = i.toLowerCase();
- }
- }
- if (this.horizontal == null) {
- this.horizontal = "center";
- }
- _results = [];
- for (_j = 0, _len1 = valid.length; _j < _len1; _j++) {
- i = valid[_j];
- _results.push(this[i] = this.horizontal === i ? i : void 0);
- }
- return _results;
- };
-
- Joint.prototype.setVertical = function(string) {
- var i, valid, _i, _j, _len, _len1, _results;
-
- valid = ["top", "middle", "bottom"];
- for (_i = 0, _len = valid.length; _i < _len; _i++) {
- i = valid[_i];
- if (~string.indexOf(i)) {
- this.vertical = i.toLowerCase();
- }
- }
- if (this.vertical == null) {
- this.vertical = "middle";
- }
- _results = [];
- for (_j = 0, _len1 = valid.length; _j < _len1; _j++) {
- i = valid[_j];
- _results.push(this[i] = this.vertical === i ? i : void 0);
- }
- return _results;
- };
-
- Joint.prototype.eql = function(pointer) {
- return (pointer != null) && this.horizontal === pointer.horizontal && this.vertical === pointer.vertical;
- };
-
- Joint.prototype.flip = function() {
- var flippedIndex, positionIdx;
-
- positionIdx = Opentip.position[this.toString(true)];
- flippedIndex = (positionIdx + 4) % 8;
- this.set(Opentip.positions[flippedIndex]);
- return this;
- };
-
- Joint.prototype.toString = function(camelized) {
- var horizontal, vertical;
-
- if (camelized == null) {
- camelized = false;
- }
- vertical = this.vertical === "middle" ? "" : this.vertical;
- horizontal = this.horizontal === "center" ? "" : this.horizontal;
- if (vertical && horizontal) {
- if (camelized) {
- horizontal = Opentip.prototype.ucfirst(horizontal);
- } else {
- horizontal = " " + horizontal;
- }
- }
- return "" + vertical + horizontal;
- };
-
- return Joint;
-
-})();
-
-Opentip.prototype._positionsEqual = function(posA, posB) {
- return (posA != null) && (posB != null) && posA.left === posB.left && posA.top === posB.top;
-};
-
-Opentip.prototype._dimensionsEqual = function(dimA, dimB) {
- return (dimA != null) && (dimB != null) && dimA.width === dimB.width && dimA.height === dimB.height;
-};
-
-Opentip.prototype.debug = function() {
- var args;
-
- args = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
- if (Opentip.debug && ((typeof console !== "undefined" && console !== null ? console.debug : void 0) != null)) {
- args.unshift("#" + this.id + " |");
- return console.debug.apply(console, args);
- }
-};
-
-Opentip.findElements = function() {
- var adapter, content, element, optionName, optionValue, options, _i, _len, _ref, _results;
-
- adapter = Opentip.adapter;
- _ref = adapter.findAll(document.body, "[data-ot]");
- _results = [];
- for (_i = 0, _len = _ref.length; _i < _len; _i++) {
- element = _ref[_i];
- options = {};
- content = adapter.data(element, "ot");
- if (content === "" || content === "true" || content === "yes") {
- content = adapter.attr(element, "title");
- adapter.attr(element, "title", "");
- }
- content = content || "";
- for (optionName in Opentip.styles.standard) {
- optionValue = adapter.data(element, "ot" + (Opentip.prototype.ucfirst(optionName)));
- if (optionValue != null) {
- if (optionValue === "yes" || optionValue === "true" || optionValue === "on") {
- optionValue = true;
- } else if (optionValue === "no" || optionValue === "false" || optionValue === "off") {
- optionValue = false;
- }
- options[optionName] = optionValue;
- }
- }
- _results.push(new Opentip(element, content, options));
- }
- return _results;
-};
-
-Opentip.version = "2.4.3";
-
-Opentip.debug = false;
-
-Opentip.lastId = 0;
-
-Opentip.lastZIndex = 100;
-
-Opentip.tips = [];
-
-Opentip._abortShowingGroup = function(group, originatingOpentip) {
- var opentip, _i, _len, _ref, _results;
-
- _ref = Opentip.tips;
- _results = [];
- for (_i = 0, _len = _ref.length; _i < _len; _i++) {
- opentip = _ref[_i];
- if (opentip !== originatingOpentip && opentip.options.group === group) {
- _results.push(opentip._abortShowing());
- } else {
- _results.push(void 0);
- }
- }
- return _results;
-};
-
-Opentip._hideGroup = function(group, originatingOpentip) {
- var opentip, _i, _len, _ref, _results;
-
- _ref = Opentip.tips;
- _results = [];
- for (_i = 0, _len = _ref.length; _i < _len; _i++) {
- opentip = _ref[_i];
- if (opentip !== originatingOpentip && opentip.options.group === group) {
- _results.push(opentip.hide());
- } else {
- _results.push(void 0);
- }
- }
- return _results;
-};
-
-Opentip.adapters = {};
-
-Opentip.adapter = null;
-
-firstAdapter = true;
-
-Opentip.addAdapter = function(adapter) {
- Opentip.adapters[adapter.name] = adapter;
- if (firstAdapter) {
- Opentip.adapter = adapter;
- adapter.domReady(Opentip.findElements);
- adapter.domReady(Opentip.followMousePosition);
- return firstAdapter = false;
- }
-};
-
-Opentip.positions = ["top", "topRight", "right", "bottomRight", "bottom", "bottomLeft", "left", "topLeft"];
-
-Opentip.position = {};
-
-_ref = Opentip.positions;
-for (i = _i = 0, _len = _ref.length; _i < _len; i = ++_i) {
- position = _ref[i];
- Opentip.position[position] = i;
-}
-
-Opentip.styles = {
- standard: {
- "extends": null,
- title: void 0,
- escapeTitle: true,
- escapeContent: false,
- className: "standard",
- stem: true,
- delay: null,
- hideDelay: 0.1,
- fixed: false,
- showOn: "mouseover",
- hideTrigger: "trigger",
- hideTriggers: [],
- hideOn: null,
- removeElementsOnHide: false,
- offset: [0, 0],
- containInViewport: true,
- autoOffset: true,
- showEffect: "appear",
- hideEffect: "fade",
- showEffectDuration: 0.3,
- hideEffectDuration: 0.2,
- stemLength: 5,
- stemBase: 8,
- tipJoint: "top left",
- target: null,
- targetJoint: null,
- cache: true,
- ajax: false,
- ajaxMethod: "GET",
- ajaxErrorMessage: "There was a problem downloading the content.",
- group: null,
- style: null,
- background: "#fff18f",
- backgroundGradientHorizontal: false,
- closeButtonOffset: [5, 5],
- closeButtonRadius: 7,
- closeButtonCrossSize: 4,
- closeButtonCrossColor: "#d2c35b",
- closeButtonCrossLineWidth: 1.5,
- closeButtonLinkOverscan: 6,
- borderRadius: 5,
- borderWidth: 1,
- borderColor: "#f2e37b",
- shadow: true,
- shadowBlur: 10,
- shadowOffset: [3, 3],
- shadowColor: "rgba(0, 0, 0, 0.1)"
- },
- glass: {
- "extends": "standard",
- className: "glass",
- background: [[0, "rgba(252, 252, 252, 0.8)"], [0.5, "rgba(255, 255, 255, 0.8)"], [0.5, "rgba(250, 250, 250, 0.9)"], [1, "rgba(245, 245, 245, 0.9)"]],
- borderColor: "#eee",
- closeButtonCrossColor: "rgba(0, 0, 0, 0.2)",
- borderRadius: 15,
- closeButtonRadius: 10,
- closeButtonOffset: [8, 8]
- },
- dark: {
- "extends": "standard",
- className: "dark",
- borderRadius: 13,
- borderColor: "#444",
- closeButtonCrossColor: "rgba(240, 240, 240, 1)",
- shadowColor: "rgba(0, 0, 0, 0.3)",
- shadowOffset: [2, 2],
- background: [[0, "rgba(30, 30, 30, 0.7)"], [0.5, "rgba(30, 30, 30, 0.8)"], [0.5, "rgba(10, 10, 10, 0.8)"], [1, "rgba(10, 10, 10, 0.9)"]]
- },
- alert: {
- "extends": "standard",
- className: "alert",
- borderRadius: 1,
- borderColor: "#AE0D11",
- closeButtonCrossColor: "rgba(255, 255, 255, 1)",
- shadowColor: "rgba(0, 0, 0, 0.3)",
- shadowOffset: [2, 2],
- background: [[0, "rgba(203, 15, 19, 0.7)"], [0.5, "rgba(203, 15, 19, 0.8)"], [0.5, "rgba(189, 14, 18, 0.8)"], [1, "rgba(179, 14, 17, 0.9)"]]
- }
-};
-
-Opentip.defaultStyle = "standard";
-
-if (typeof module !== "undefined" && module !== null) {
- module.exports = Opentip;
-} else {
- window.Opentip = Opentip;
-}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/rainloop.git
More information about the Pkg-javascript-commits
mailing list