PageSourceSearch

https://www.industrial-craft.net/wp-content/plugins/blip-slideshow…/js/slideshow.flash.js?ver=1.3.1.110417

js industrial-craft.net collected 2026-09-24 09:32:31 UTC 1,537 bytes, 62 lines download raw bytes

1/**
2Script: Slideshow.Flash.js
3	Slideshow.Flash - Flash 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*/
14
15(function(){
16	Slideshow.Flash = new Class({
17		Extends: Slideshow,
18	
19		options: {
20			color: ['#FFF']
21		},
22	
23	/**
24	Constructor: initialize
25		Creates an instance of the Slideshow class.
26
27	Arguments:
28		element - (element) The wrapper element.
29		data - (array or object) The images and optional thumbnails, captions and links for the show.
30		options - (object) The options below.
31
32	Syntax:
33		var myShow = new Slideshow.Flash(element, data, options);
34*/
35
36		initialize: function(el, data, options){
37			options = options || {};
38			options.overlap = true;
39			if (options.color)
40				options.color = Array.from(options.color);
41			this.parent(el, data, options);
42		},
43
44	/**
45	Private method: show
46		Does the slideshow effect.
47*/
48
49		_show: function(fast){
50			if (!this.image.retrieve('tween'))
51			  $$(this.a, this.b).set('tween', {'duration': this.options.duration, 'link': 'cancel', 'onStart': this._start.bind(this), 'onComplete': this._complete.bind(this), 'property': 'opacity'});
52			if (fast)
53				this.image.get('tween').cancel().set(1);
54			else {
55				this.el.retrieve('images').setStyle('background', this.options.color[this.slide % this.options.color.length]);
56				var img = (this.counter % 2) ? this.a : this.b;
57				img.get('tween').cancel().set(0);
58				this.image.get('tween').set(0).start(1);
59			}
60		}
61	});
62})();

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.