%PDF- %PDF- 403WebShell
403Webshell
Server IP : 37.220.80.31  /  Your IP : 3.137.200.150
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/js/mobileapp/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/www-root/data/www/dev.artlot24.ru/bitrix/js/mobileapp/gesture.js
(function(){

	BX.namespace("BX.MobileApp");

	BX.MobileApp.Gesture = {
		addLongTapListener:function (node, callback, customDuration)
		{
			var touchDuration = customDuration|| 500;
			var timerInterval;
			var preventTouchEnd = false;

			function timer(interval, targetNode)
			{
				timerInterval = setTimeout(function(){
					tapHold(targetNode);
				}, interval);
			}

			var startPosition = {x: 0, y: 0};

			function touchStart(e)
			{
				preventTouchEnd = false;
				if (e.target.tagName === "A")
				{
					return;
				}

				startPosition = {x: e.changedTouches[0].clientX, y: e.changedTouches[0].clientY};
				timer(touchDuration, e.target);
			}

			function touchEnd(e)
			{
				startPosition = {x: 0, y: 0};
				clearTimeout(timerInterval);
				if (preventTouchEnd)
				{
					e.preventDefault();
				}
			}

			function touchMove(e)
			{
				var x = e.changedTouches[0].clientX;
				var y = e.changedTouches[0].clientY;
				if (Math.abs(startPosition.x - x) > 5 || Math.abs(startPosition.y - y) > 5)
				{
					startPosition = {x: 0, y: 0};
					clearTimeout(timerInterval);
				}
			}

			function tapHold(targetNode)
			{
				clearTimeout(timerInterval);
				preventTouchEnd = true;
				if (callback)
				{
					callback(targetNode);
				}
			}

			BX.addClass(node, "long-tap-block");
			node.addEventListener('touchstart', touchStart);
			node.addEventListener('touchend', touchEnd);
			node.addEventListener('touchmove', touchMove);
			BX.addCustomEvent("onNativeTouchEnd", function(){
				clearTimeout(timerInterval);
			})
		}
	};

})();

Youez - 2016 - github.com/yon3zu
LinuXploit