芝麻web文件管理V1.00
编辑当前文件:/var/www/cognitio.in/wp-content/plugins/Ultimate_VC_Addons/assets/min-js/video-banner.min.js
!function(r){r(document).ready(function(){let u="";r(".ult-video-banner").each(function(t,e){var n=r(e).attr("id");const a=r(e).data("current-time");r(e).data("placeholder");let o=0;r(e).find("video").get(0).addEventListener("canplay",function(){if(1<=o)return!1;r(e).find("video").get(0).currentTime=a,r(e).find("video").get(0).pause(),o++});var i=r(e).find(".ult-video-banner-overlay").data("overlay"),d=r(e).find(".ult-video-banner-overlay").data("overlay-hover");""!=i&&(u+="#"+n+" .ult-video-banner-overlay { background:"+i+" }"),""!=d&&(u+="#"+n+".ult-vb-touch-start .ult-video-banner-overlay { background:"+d+" }")}),""!=u&&r("head").append(""),r(document).on("mouseover",".ult-video-banner",function(){r(this).addClass("ult-vb-touch-start"),r(this).find("video").get(0).play()}),r(document).on("mouseout",".ult-video-banner",function(){r(this).removeClass("ult-vb-touch-start"),r(this).find("video").get(0).pause()}),r(document).on("touchstart",".ult-video-banner",function(){if(r(this).hasClass("ult-vb-touch-start"))return r(this).removeClass("ult-vb-touch-start"),r(this).find("video").get(0).pause(),!1;r(this).addClass("ult-vb-touch-start"),r(this).find("video").get(0).play()})})}(jQuery);