Private
Server IP : 195.201.23.43  /  Your IP : 18.119.165.116
Web Server : Apache
System : Linux webserver2.vercom.be 5.4.0-192-generic #212-Ubuntu SMP Fri Jul 5 09:47:39 UTC 2024 x86_64
User : kdecoratie ( 1041)
PHP Version : 7.1.33-63+ubuntu20.04.1+deb.sury.org+1
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/kdecoratie/public_html/modules/mod_showplus/js/ext/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/kdecoratie/public_html/modules/mod_showplus/js/ext/slideshow.fold.js
/**
Script: Slideshow.Fold.js
	Slideshow.Fold - Flash extension for Slideshow.

License:
	MIT-style license.

Copyright:
	Copyright (c) 2008 [Aeron Glemann](http://www.electricprism.com/aeron/).

Dependencies:
	Slideshow.
*/

Slideshow.Fold = new Class({
	Extends: Slideshow,
	
/**
Private method: show
	Does the slideshow effect.
*/

	_show: function(fast){
		if (!this.image.retrieve('tween')){
			var options = (this.options.overlap) ? {'duration': this.options.duration} : {'duration': this.options.duration / 2};
			$$(this.a, this.b).set('tween', Object.merge(options, {'link': 'chain', 'onStart': this._start.bind(this), 'onComplete': this._complete.bind(this), 'property': 'clip', 'transition': this.options.transition}));
		}
		var img = (this.counter % 2) ? this.a : this.b,
			rect = this._rect(this.image),
			half = Math.ceil(rect.top + (rect.bottom - rect.top) / 2);
			
		if (fast){			
			img.get('tween').cancel().set('rect(0, 0, 0, 0)');
			this.image.get('tween').cancel().set('rect(auto, auto, auto, auto)'); 			
		} 
		else {
			if (this.options.overlap){	
				img.get('tween').set('rect(auto, auto, auto, auto)');
				this.image.get('tween')
					.set(rect.top + ' ' + rect.left + ' ' + half + ' ' + rect.left)
					.start(rect.top + ' ' + rect.right + ' ' + half + ' ' + rect.left)
					.start(rect.top + ' ' + rect.right + ' ' + rect.bottom + ' ' + rect.left);
			} 
			else	{
				var fn = function(rect){
					this.image.get('tween')
						.set(rect.top + ' ' + rect.left + ' ' + half + ' ' + rect.left)
						.start(rect.top + ' ' + rect.right + ' ' + half + ' ' + rect.left)
						.start(rect.top + ' ' + rect.right + ' ' + rect.bottom + ' ' + rect.left);
				}.pass(rect, this);
				if (this.firstrun)
					return fn();
				rect = this._rect(img);
				img.get('tween')
					.set(rect.top + ' ' + rect.right + ' ' + rect.bottom + ' ' + rect.left)
					.start(rect.top + ' ' + rect.right + ' ' + half + ' ' + rect.left)
					.start(rect.top + ' ' + rect.left + ' ' + half + ' ' + rect.left).chain(fn);
			}
		}
	},
	
	/**
	Private method: rect
		Calculates the clipping rect
	*/

	_rect: function(img){
		var rect = img.getCoordinates(this.el.retrieve('images'));
		rect.left = (rect.left < 0) ? Math.abs(rect.left) : 0;
		rect.top = (rect.top < 0) ? Math.abs(rect.top) : 0;
		rect.right = (rect.right > this.width) ? rect.left + this.width : rect.width;
		rect.bottom = (rect.bottom > this.height) ? rect.top + this.height : rect.height;
		return rect;		
	}
});
Private