%PDF- %PDF- 403WebShell
403Webshell
Server IP : 37.220.80.31  /  Your IP : 3.142.173.89
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux 3051455-guretool.twc1.net 5.15.0-107-generic #117-Ubuntu SMP Fri Apr 26 12:26:49 UTC 2024 x86_64
User : www-root ( 1010)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/www-root/data/www/dev.artlot24.ru/bitrix/components/bitrix/photogallery.detail.list/templates/slider_big/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/www-root/data/www/dev.artlot24.ru/bitrix/components/bitrix/photogallery.detail.list/templates/slider_big//script_cursor.js
function BPCMixer(field, cursor, gradation, params)
{
	this.field = field;
	this.cursor = cursor;
	params = (params ? params : {});
	this.minus = (params['minus'] ? params['minus'] : false);
	this.plus = (params['plus'] ? params['plus'] : false);
	this.events = (params['events'] ? params['events'] : {});

	this.gradation = (gradation > 2 ? gradation : 7);
	this.current = 1;
	
	var _this = this;
	
	this.field.onmousedown = function(e) {
		if(!e) { e = window.event; } 
		_this.SetCursor(e.clientX + document.body.scrollLeft, true);
	}; 
	this.cursor.onmousedown = function(e) {
		_this.StartDrag(e, this);}
	this.cursor.onclick = function(e) {
		return false;}
	if (this.minus)
	{
		this.minus.onclick = function(e){
			if (_this.current > 1)
				_this.SetCursor(_this.current - 1);
		}
	}
	if (this.plus)
	{
		this.plus.onclick = function(e){
			if (_this.current < _this.gradation)
				_this.SetCursor(_this.current + 1);
		}
	}
	
	this.Init = function()
	{
		if (!this.params)
			this.params = jsUtilsPhoto.GetElementParams(this.field);
		this.current = (this.current > 0 ? this.current : 1);
		if (!this.cursor_params)
			this.cursor_params = jsUtilsPhoto.GetElementParams(this.cursor);
		this.params['real_width'] = this.params['width'] - this.cursor_params['width'];
		this.grating_period_px = Math.round(this.params['real_width'] / (this.gradation - 1));
		this.grating_period = Math.round(100 / (this.gradation - 1));
	}
	
	this.StartDrag = function(e, div)
	{
		if(!e)
			e = window.event;
		this.x = e.clientX + document.body.scrollLeft;
		this.y = e.clientY + document.body.scrollTop;
		this.floatDiv = div;

		jsUtils.addEvent(document, "mousemove", this.MoveDrag);
		document.onmouseup = this.StopDrag;
		if(document.body.setCapture)
			document.body.setCapture();

		document.onmousedown = jsUtils.False;
		var b = document.body;
		b.ondrag = jsUtils.False;
		b.onselectstart = jsUtils.False;
		b.style.MozUserSelect = _this.floatDiv.style.MozUserSelect = 'none';
	}

	this.StopDrag = function(e)
	{
		if(document.body.releaseCapture)
			document.body.releaseCapture();

		jsUtils.removeEvent(document, "mousemove", _this.MoveDrag);
		document.onmouseup = null;

		this.floatDiv = null;

		document.onmousedown = null;
		var b = document.body;
		b.ondrag = null;
		b.onselectstart = null;
		b.style.MozUserSelect = _this.floatDiv.style.MozUserSelect = '';
		b.style.cursor = '';
	}

	this.MoveDrag = function(e)
	{
		var x = e.clientX + document.body.scrollLeft;
		_this.SetCursor(x, true);
	}
	
	this.SetCursor = function(position, need_calc)
	{
		this.Init();
		
		if (need_calc == true)
		{
			this.params = jsUtilsPhoto.ObjectsMerge(this.params, jsUtils.GetRealPos(this.field));
			position = parseInt(position);
			position = Math.round((position - this.params['left']) / this.grating_period_px) + 1; 
		}
		
		position = (position < 1 ? 1 : (position > this.gradation ? this.gradation : position));
		
		if (this.current != position)
		{
			this.current = position;
			
			this.checkEvent('BeforeSetCursor', this.current);
			
			if (this.current <= 1)
				this.cursor.style.left = '0';
			else
			{
				var position = Math.round(((this.params['real_width'] * (this.current - 1) / (this.gradation - 1)) / this.params['width']) * 100);
				this.cursor.style.left = position + '%';
			}
			this.cursor.parentNode.style.display = 'none'; 
			this.cursor.parentNode.style.display = 'block'; 
			this.checkEvent('AfterSetCursor', this.current);
		}
	}
	this.checkEvent = function()
	{
		eventName = arguments[0];
		if (this[eventName]) {return this[eventName](arguments); } 
		if (this.events[eventName]) {return this.events[eventName](arguments, this); } 
		return true;
	}
}
bPhotoCursorLoad = true;

Youez - 2016 - github.com/yon3zu
LinuXploit