PageSourceSearch

https://cryptorials.io/wp-content/themes/mesocolumn/lib/scripts/jd-gallery/jd.gallery.transitions.js

js cryptorials.io collected 2026-10-02 07:10:44 UTC 3,529 bytes, 105 lines download raw bytes

1var _____WB$wombat$assign$function_____=function(name){return (globalThis._wb_wombat && globalThis._wb_wombat.local_init && globalThis._wb_wombat.local_init(name))||globalThis[name];};if(!globalThis.__WB_pmw){globalThis.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{
2let window = _____WB$wombat$assign$function_____("window");
3let self = _____WB$wombat$assign$function_____("self");
4let document = _____WB$wombat$assign$function_____("document");
5let location = _____WB$wombat$assign$function_____("location");
6let top = _____WB$wombat$assign$function_____("top");
7let parent = _____WB$wombat$assign$function_____("parent");
8let frames = _____WB$wombat$assign$function_____("frames");
9let opener = _____WB$wombat$assign$function_____("opener");
10/**
11 * @author jon
12 */
13gallery.Transitions.extend({
14	fadeslideleft: function(oldFx, newFx, oldPos, newPos){
15		oldFx.options.transition = newFx.options.transition = Fx.Transitions.Cubic.easeOut;
16		oldFx.options.duration = newFx.options.duration = 1500;
17		if (newPos > oldPos)
18		{
19			newFx.start({
20				left: [this.galleryElement.offsetWidth, 0],
21				opacity: 1
22			});
23			oldFx.start({opacity: [1,0]});
24		} else {
25			newFx.start({opacity: [0,1]});
26			oldFx.start({
27				left: [0, this.galleryElement.offsetWidth],
28				opacity: 0
29			}).chain(function(fx){fx.set({left: 0});}.pass(oldFx));
30		}
31	},
32	continuoushorizontal: function(oldFx, newFx, oldPos, newPos){
33		oldFx.options.transition = newFx.options.transition = Fx.Transitions.linear;
34		if (
35			((newPos > oldPos) || ((newPos==0) && (oldPos == (this.maxIter-1) ))) &&
36			(!((newPos == (this.maxIter-1 )) && (oldPos == 0)))
37		) {
38			oldFx.set({opacity: 1});
39			oldFx.start({
40				left: [0, this.galleryElement.offsetWidth * -1]
41			});
42			newFx.set({opacity: 1, left: this.galleryElement.offsetWidth});
43			newFx.start({
44				left: [this.galleryElement.offsetWidth, 0]
45			});
46		} else  {
47			oldFx.set({opacity: 1});
48			oldFx.start({
49				left: [0, this.galleryElement.offsetWidth]
50			});
51			newFx.set({opacity: 1, left: this.galleryElement.offsetWidth * -1});
52			newFx.start({
53				left: [this.galleryElement.offsetWidth * -1, 0]
54			});
55		}
56	},
57	continuousvertical: function(oldFx, newFx, oldPos, newPos){
58		oldFx.options.transition = newFx.options.transition = Fx.Transitions.linear;
59		if (
60			((newPos > oldPos) || ((newPos==0) && (oldPos == (this.maxIter-1) ))) &&
61			(!((newPos == (this.maxIter-1 )) && (oldPos == 0)))
62		) {
63			oldFx.set({opacity: 1});
64			oldFx.start({
65				top: [0, this.galleryElement.offsetHeight * -1]
66			});
67			newFx.set({opacity: 1, top: this.galleryElement.offsetHeight});
68			newFx.start({
69				top: [this.galleryElement.offsetHeight, 0]
70			});
71		} else  {
72			oldFx.set({opacity: 1});
73			oldFx.start({
74				top: [0, this.galleryElement.offsetHeight]
75			});
76			newFx.set({opacity: 1, top: this.galleryElement.offsetHeight * -1});
77			newFx.start({
78				top: [this.galleryElement.offsetHeight * -1, 0]
79			});
80		}
81	}
82});
83}
84
85/*
86     FILE ARCHIVED ON 11:56:29 Apr 25, 2023 AND RETRIEVED FROM THE
87     INTERNET ARCHIVE ON 12:49:14 Aug 06, 2026.
88     JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.
89
90     ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
91     SECTION 108(a)(3)).
92*/
93/*
94playback timings (ms):
95  captures_list: 0.532
96  exclusion.robots: 0.063
97  exclusion.robots.policy: 0.054
98  esindex: 0.01
99  cdx.remote: 7.941
100  LoadShardBlock: 105.947 (3)
101  PetaboxLoader3.datanode: 95.686 (5)
102  PetaboxLoader3.resolve: 347.118 (2)
103  load_resource: 368.362
104  loaddict: 38.437
105*/

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.