Файловый менеджер - Редактировать - /home/digitalm/www/zetaworks/wp-content/themes/uncode/library/js/backgroundSelfVideos.min.js
Назад
(function($){"use strict";UNCODE.backgroundSelfVideos=function($ctx){typeof $ctx=="undefined"&&($ctx=$("body"));var backgroundSelfVideosInit=function($ctx){$(".background-video-shortcode",$ctx).each(function(index,el){if(SiteParameters.block_mobile_videos===!0)return!1;if($(this).closest("mediaelementwrapper").length)return!0;var $video_el=$(this),$parent_carousel=$video_el.parents(".uncode-slider").eq(0),$parent_drop_move=$video_el.closest(".t-entry-drop.drop-move"),video_id=$video_el.attr("id");SiteParameters.is_frontend_editor&&(video_id=video_id+"_"+index,$video_el.attr("id",video_id));if(typeof MediaElement=="function")var media=new MediaElement(video_id,{startVolume:0,loop:!0,success:function(mediaElement,domObject){domObject.volume=0,$(mediaElement).data("started",!1),mediaElement.addEventListener("timeupdate",function(e){$(e.target).data("started")||$(mediaElement).data("started",!0)}),mediaElement.addEventListener("loadedmetadata",function(e){mediaElement.play()}),UNCODE.isMobile||requestTimeout(function(){UNCODE.initVideoComponent(document.body,".uncode-video-container.video:not(.drop-move), .uncode-video-container.self-video:not(.drop-move)")},100),$("html.firefox").length&&!$parent_carousel.length&&mediaElement.play();if($parent_drop_move.length){var setResizeMEto,resizeMediaElement=function(){var dataW=$parent_drop_move.attr("data-w"),videoW=domObject.width,videoH=domObject.height,newW=UNCODE.wwidth/12*parseFloat(dataW),newH=newW/(videoW/videoH);$(domObject).css({height:newH,width:newW})};$(window).on("resize load",function(){clearRequestTimeout(setResizeMEto),setResizeMEto=requestTimeout(function(){resizeMediaElement()},10)})}mediaElement.addEventListener("play",function(){$(mediaElement).closest(".uncode-video-container:not(.t-entry-drop)").css("opacity","1"),$(mediaElement).closest("#page-header").addClass("video-started"),$(mediaElement).closest(".background-wrapper").find(".block-bg-blend-mode.not-ie").css("opacity","1")},!0)},error:function(){}})})};backgroundSelfVideosInit($ctx),$("body").hasClass("compose-mode")&&typeof window.parent.vc!="undefined"&&window.parent.vc.events.on("shortcodeView:updated shortcodeView:ready",function(model){var $el=model.view.$el,shortcode=model.attributes.shortcode;backgroundSelfVideosInit($el)})}})(jQuery)
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Генерация страницы: 0.06 |
proxy
|
phpinfo
|
Настройка