芝麻web文件管理V1.00
');var r=jQuery(t).find(".ultimate_h_parallax");r.css({"max-width":"none",position:"absolute"}),r.css("min-width",r.parent().outerWidth()+e+"px")});const resiz=function(){jQuery(".vcpb-fs-jquery").each(function(){var e=jQuery(this),t=e.data("parallax_sense"),t=e.outerWidth()*(t/100),a=jQuery(e).find(".ultimate_h_parallax");a.parent().outerHeight()>a.outerHeight()&&a.css("min-height",a.parent().outerHeight()+t+"px"),a.outerHeight()>a.outerWidth()&&a.css("width","auto"),jQuery(e).css("background-image","")})};resiz(),jQuery(window).resize(function(){resiz()}),jQuery(window).on("load",function(){jQuery(".vcpb-fs-jquery").each(function(){let layer_count=jQuery(this).find(".ultimate_h_parallax").length,lay_opt=(layer_count=1/layer_count,new Array);var is_mobile,is_mobile,disable_row_effect,disable_row_effect;jQuery(this).find(".ultimate_h_parallax").each(function(e){lay_opt.push("{'xparallax':"+layer_count*(e+1)+" , 'yparallax':"+layer_count*(e+1)+"}")}),lay_opt=lay_opt.join(","),is_mobile=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?"true":"false";const is_img_parallax_disable_on_mobile=jQuery(this).parent().data("img-parallax-mobile-disable").toString();disable_row_effect="true"==is_mobile&&"true"==is_img_parallax_disable_on_mobile?"true":"false","false"==disable_row_effect&&eval("jQuery(this).find('.ultimate_h_parallax').parallax({mouseport: jQuery(this).parent()},"+lay_opt+"); var mouse = {x: 0, y: 0}; document.addEventListener('mousemove', function(e){ mouse.x = e.clientX || e.pageX; mouse.y = e.clientY || e.pageY; jQuery(this).parent().trigger({type: 'mousemove', pageX: mouse.x, pageY: mouse.y }); }, true); jQuery(this).parent().trigger({type: 'mouseenter', pageX: 0, pageY: 0}); var x = 1; document.onmousemove = document.onmouseover = function (e) { if(x > 1) return false; mouse.x = e.clientX || e.pageX; mouse.y = e.clientY || e.pageY; x++; if(x == 2) jQuery(this).parent().trigger({type: 'mousemove', pageX: mouse.x, pageY: mouse.y }); }")})})}});