PageSourceSearch

https://www.nva-flieger.de/plugins/slideshow2/js/slideshow.push.js

js nva-flieger.de collected 2026-10-02 21:32:37 UTC 1,909 bytes, 64 lines download raw bytes

1/**
2Script: Slideshow.Push.js
3	Slideshow.Push - Push extension for Slideshow.
4
5License:
6	MIT-style license.
7
8Copyright:
9	Copyright (c) 2008 [Aeron Glemann](http://www.electricprism.com/aeron/).
10	
11Dependencies:
12	Slideshow.
13	Mootools 1.3.1 More: Fx.Elements.
14*/
15
16Slideshow.Push = new Class({
17	Extends: Slideshow,
18	
19/**
20Constructor: initialize
21	Creates an instance of the Slideshow class.
22
23Arguments:
24	element - (element) The wrapper element.
25	data - (array or object) The images and optional thumbnails, captions and links for the show.
26	options - (object) The options below.
27
28Syntax:
29	var myShow = new Slideshow.Push(element, data, options);
30*/
31	
32	initialize: function(el, data, options){
33		options = options || {};
34		options.overlap = true;		
35		this.parent(el, data, options);
36	},
37
38/**
39Private method: show
40	Does the slideshow effect.
41*/
42
43	_show: function(fast){
44		var images = [this.image, ((this.counter % 2) ? this.a : this.b)];
45		if (!this.image.retrieve('fx'))
46			this.image.store('fx', new Fx.Elements(images, {'duration': this.options.duration, 'link': 'cancel', 'onStart': this._start.bind(this), 'onComplete': this._complete.bind(this), 'transition': this.options.transition }));
47		this.image.set('styles', {'left': 'auto', 'right': 'auto' }).setStyle(this.direction, this.width);
48		var values = {'0': {}, '1': {} };
49		values['0'][this.direction] = [this.width, 0];
50		values['1'][this.direction] = [0, -this.width];
51		if (images[1].getStyle(this.direction) == 'auto'){
52			var width = this.width - images[1].width;	
53			images[1].set('styles', {'left': 'auto', 'right': 'auto' }).setStyle(this.direction, width);		 
54			values['1'][this.direction] = [width, -this.width];
55		}
56		if (fast){
57		 	for (var prop in values)
58		 		values[prop][this.direction] = values[prop][this.direction][1];			
59			this.image.retrieve('fx').cancel().set(values);
60		} 
61		else
62			this.image.retrieve('fx').start(values);
63	}
64});

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.