HEX
Server: Apache
System: Linux mx52.hostgator.mx 5.14.0-687.12.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Sun Jun 7 14:39:27 EDT 2026 x86_64
User: narrativ (1644)
PHP: 8.2.33
Disabled: NONE
Upload Files
File: /home4/narrativ/wp.narrativa.mx/wp-content/themes/jnews/assets/js/admin/video.helper.js
!function(e){"use strict";var o,i,t=!1;function n(o){e(".video-documentation-list a").removeClass("video-active"),e(".video-documentation-list a[data-id='"+o+"']").addClass("video-active")}function d(){if(t)o.playVideo();else{var d=e(".video-documentation-holder").get(0);o=new YT.Player(d,{videoId:(c=e(".video-documentation-list a").first(),n(i=e(c).data("id")),i),playerVars:{controls:1,showinfo:0,rel:0,showsearch:0,iv_load_policy:3},events:{onReady:a}}),t=!0}var c}function a(e){e.target.playVideo()}function c(){var o=e(window).width()-80,i=e(window).height()-80;e(".video-documentation-holder").css({width:o-350,height:i}),e(".video-documentation-list").css({height:i})}e(document).bind("ready",(function(){e(".video-documentation").on("click",(function(){e("body").addClass("video-documentation-body"),function(){if("undefined"==typeof YT||void 0===YT.Player){var e=document.createElement("script");e.src="https://www.youtube.com/iframe_api";var o=document.getElementsByTagName("script")[0];o.parentNode.insertBefore(e,o),window.onYouTubePlayerAPIReady=function(){d()}}else d()}(),c()})),e(".video-documentation-close, .video-documentation-overlay").on("click",(function(){e("body").removeClass("video-documentation-body"),o&&o.pauseVideo()})),e(".video-documentation-list a").on("click",(function(i){i.preventDefault();var t=e(this).data("id");n(t),function(e){o&&o.loadVideoById(e)}(t)}))})),e(window).bind("resize",c)}(jQuery);