PageSourceSearch

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

js gyronav.ru collected 2026-10-07 13:08:56 UTC 3,638 bytes, 101 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		if (newPos > oldPos)
29		{
30			newFx.css({'left':this.galleryElement.outerWidth()}).start({
31				left: /*[[this.galleryElement.outerWidth(),*/ 0,//]
32				opacity: 1
33			});
34			oldFx.css({'opacity':1}).start({opacity: 0});
35		} else {
36			newFx.css({'opacity':0}).start({opacity: 1});
37			oldFx.completefunc(function(fx){fx.css({left: 0});}.passx(oldFx)).css({'left':0}).start({
38				left: /*[0, */this.galleryElement.outerWidth(),//],
39				opacity: 0
40			});
41		}
42	};
43	window.gallery.Transitions.continuoushorizontal= function(/*oldFx, newFx, oldPos, newPos*/){
44		oldFx=arguments[0][0];
45		newFx=arguments[0][1];
46		oldPos=arguments[0][2];
47		newPos=arguments[0][3];
48		oldFx.options.easing = newFx.options.easing = 'linear';
49		if (
50			((newPos > oldPos) || ((newPos==0) && (oldPos == (this.maxIter-1) ))) &&
51			(!((newPos == (this.maxIter-1 )) && (oldPos == 0)))
52		) {
53			oldFx.css({opacity: 1});
54			oldFx.start({
55				left: /*[0, */this.galleryElement.outerWidth() * -1//]
56			});
57			newFx.css({opacity: 1, left: this.galleryElement.outerWidth()});
58			newFx.start({
59				left: /*[this.galleryElement.outerWidth(),*/ 0//]
60			});
61		} else  {
62			oldFx.css({opacity: 1,left:0});
63			oldFx.start({
64				left: /*[0, */this.galleryElement.outerWidth()//]
65			});
66			newFx.css({opacity: 1, left: this.galleryElement.outerWidth() * -1});
67			newFx.start({
68				left: /*[this.galleryElement.outerWidth() * -1,*/ 0 //]
69			});
70		}
71	};
72	window.gallery.Transitions.continuousvertical= function(/*oldFx, newFx, oldPos, newPos*/){
73		oldFx=arguments[0][0];
74		newFx=arguments[0][1];
75		oldPos=arguments[0][2];
76		newPos=arguments[0][3];
77		oldFx.options.easing = newFx.options.easing = 'linear';
78		if (
79			((newPos > oldPos) || ((newPos==0) && (oldPos == (this.maxIter-1) ))) &&
80			(!((newPos == (this.maxIter-1 )) && (oldPos == 0)))
81		) {
82			oldFx.css({opacity: 1});
83			oldFx.start({
84				top:  this.galleryElement.outerHeight() * -1
85			});
86			newFx.css({opacity: 1, top: this.galleryElement.outerHeight()});
87			newFx.start({
88				top: /*[this.galleryElement.outerHeight(),*/ 0//]
89			});
90		} else  {
91			oldFx.css({opacity: 1});
92			oldFx.start({
93				top: this.galleryElement.outerHeight()
94			});
95			newFx.css({opacity: 1, top: this.galleryElement.outerHeight() * -1});
96			newFx.start({
97				top: /*[this.galleryElement.outerHeight() * -1,*/ 0 /*]*/
98			});
99		}
100	}
101

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.