PageSourceSearch

https://water26.ru/modules/mod_s5_image_and_content_fader/js/jd.gallery.transitions.jquery.js

js water26.ru collected 2026-10-08 19:14:37 UTC 3,918 bytes, 103 lines download raw bytes

1/*
2    This file is part of JonDesign's SmoothGallery v2.1beta1.
3
4    JonDesign's SmoothGallery is free software; you can redistribute it and/or modify
5    it under the terms of the GNU General Public License as published by
6    the Free Software Foundation; either version 3 of the License, or
7    (at your option) any later version.
8
9    JonDesign's SmoothGallery is distributed in the hope that it will be useful,
10    but WITHOUT ANY WARRANTY; without even the implied warranty of
11    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12    GNU General Public License for more details.
13
14    You should have received a copy of the GNU General Public License
15    along with JonDesign's SmoothGallery; if not, write to the Free Software
16    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
17
18    Main Developer: Jonathan Schemoul (JonDesign: http://www.jondesign.net/)
19*/
20
21window.gallery.Transitions.fadeslideleft= function(/*oldFx, newFx, oldPos, newPos*/){
22		oldFx=arguments[0][0];
23		newFx=arguments[0][1];
24		oldPos=arguments[0][2];
25		newPos=arguments[0][3];
26		oldFx.options.easing = newFx.options.easing = 'easeOutCubic';
27		oldFx.options.duration = newFx.options.duration = 1500;
28		oldFx.options.queue= newFx.options.queue= false;
29		if (newPos > oldPos)
30		{
31			newFx.css({'left':this.galleryElement.outerWidth()},{duration:window.gallery.options.slideShowDuration}).start({
32				left: /*[[this.galleryElement.outerWidth(),*/ 0,//]
33				opacity: 1
34			});
35			oldFx.css({'opacity':1},{duration:window.gallery.options.slideHideDuration}).start({opacity: 0});
36		} else {
37			newFx.css({'opacity':0},{duration:window.gallery.options.slideShowDuration}).start({opacity: 1});
38			oldFx.completefunc(function(fx){fx.css({left: 0});}.passx(oldFx)).css({'left':0}).start({
39				left: /*[0, */this.galleryElement.outerWidth(),//],
40				opacity: 0
41			});
42		}
43	};
44	window.gallery.Transitions.continuoushorizontal= function(/*oldFx, newFx, oldPos, newPos*/){
45		oldFx=arguments[0][0];
46		newFx=arguments[0][1];
47		oldPos=arguments[0][2];
48		newPos=arguments[0][3];
49		oldFx.options.easing = newFx.options.easing = 'linear';
50		oldFx.options.queue= newFx.options.queue= false;
51		//console.log(this);
52		if (
53			((newPos > oldPos) || ((newPos==0) && (oldPos == (this.maxIter-1) ))) &&
54			(!((newPos == (this.maxIter-1 )) && (oldPos == 0)))
55		) {
56			oldFx.css({opacity: 1});
57			oldFx.start({
58				left: /*[0, */this.galleryElement.outerWidth() * -1//]
59			});
60			newFx.css({opacity: 1, left: this.galleryElement.outerWidth()});
61			newFx.start({
62				left: /*[this.galleryElement.outerWidth(),*/ 0//]
63			});
64		} else  {
65			oldFx.css({opacity: 1,left:0});
66			oldFx.start({
67				left: /*[0, */this.galleryElement.outerWidth()//]
68			});
69			newFx.css({opacity: 1, left: this.galleryElement.outerWidth() * -1});
70			newFx.start({
71				left: /*[this.galleryElement.outerWidth() * -1,*/ 0 //]
72			});
73		}
74	};
75	window.gallery.Transitions.continuousvertical= function(/*oldFx, newFx, oldPos, newPos*/){
76		oldFx=arguments[0][0];
77		newFx=arguments[0][1];
78		oldPos=arguments[0][2];
79		newPos=arguments[0][3];
80		oldFx.options.easing = newFx.options.easing = 'linear';
81		if (
82			((newPos > oldPos) || ((newPos==0) && (oldPos == (this.maxIter-1) ))) &&
83			(!((newPos == (this.maxIter-1 )) && (oldPos == 0)))
84		) {
85			oldFx.css({opacity: 1});
86			oldFx.start({
87				top:  this.galleryElement.outerHeight() * -1
88			});
89			newFx.css({opacity: 1, top: this.galleryElement.outerHeight()});
90			newFx.start({
91				top: /*[this.galleryElement.outerHeight(),*/ 0//]
92			});
93		} else  {
94			oldFx.css({opacity: 1});
95			oldFx.start({
96				top: this.galleryElement.outerHeight()
97			});
98			newFx.css({opacity: 1, top: this.galleryElement.outerHeight() * -1});
99			newFx.start({
100				top: /*[this.galleryElement.outerHeight() * -1,*/ 0 /*]*/
101			});
102		}
103	}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.