7.4.33 | Linux x86_64
Server128.199.10.0
Userwww-data (uid:33)
PHP7.4.33 (apache2handler)
Terminal
Upload
Files: /var/www/html/wp-includes/js
View: wp-custom-header.min.js
/*! This file is auto-generated */ !function(i,t){var e,n;function a(e,t){var n;"function"==typeof i.Event?n=new Event(t):(n=document.createEvent("Event")).initEvent(t,!0,!0),e.dispatchEvent(n)}function o(){this.handlers={nativeVideo:new e,youtube:new n}}function s(){}i.wp=i.wp||{},"addEventListener"in i&&(o.prototype={initialize:function(){if(this.supportsVideo())for(var e in this.handlers){e=this.handlers[e];if("test"in e&&e.test(t)){this.activeHandler=e.initialize.call(e,t),a(document,"wp-custom-header-video-loaded");break}}},supportsVideo:function(){return!(i.innerWidth<t.minWidth||i.innerHeight<t.minHeight)},BaseVideoHandler:s},s.prototype={initialize:function(e){var t=this,n=document.createElement("button");this.settings=e,this.container=document.getElementById("wp-custom-header"),(this.button=n).setAttribute("type","button"),n.setAttribute("id","wp-custom-header-video-button"),n.setAttribute("class","wp-custom-header-video-button wp-custom-header-video-play"),n.innerHTML=e.l10n.play,n.addEventListener("click",function(){t.isPaused()?t.play():t.pause()}),this.container.addEventListener("play",function(){n.className="wp-custom-header-video-button wp-custom-header-video-play",n.innerHTML=e.l10n.pause,"a11y"in i.wp&&i.wp.a11y.speak(e.l10n.playSpeak)}),this.container.addEventListener("pause",function(){n.className="wp-custom-header-video-button wp-custom-header-video-pause",n.innerHTML=e.l10n.play,"a11y"in i.wp&&i.wp.a11y.speak(e.l10n.pauseSpeak)}),this.ready()},ready:function(){},isPaused:function(){},pause:function(){},play:function(){},setVideo:function(e){var t,n=this.container.getElementsByClassName("customize-partial-edit-shortcut");n.length&&(t=this.container.removeChild(n[0])),this.container.innerHTML="",this.container.appendChild(e),t&&this.container.appendChild(t)},showControls:function(){this.container.contains(this.button)||this.container.appendChild(this.button)},test:function(){return!1},trigger:function(e){a(this.container,e)}},e=(s.extend=function(e){function t(){return s.apply(this,arguments)}for(var n in(t.prototype=Object.create(s.prototype)).constructor=t,e)t.prototype[n]=e[n];return t})({test:function(e){return document.createElement("video").canPlayType(e.mimeType)},ready:function(){var e=this,t=document.createElement("video");t.id="wp-custom-header-video",t.autoplay=!0,t.loop=!0,t.muted=!0,t.playsInline=!0,t.width=this.settings.width,t.height=this.settings.height,t.addEventListener("play",function(){e.trigger("play")}),t.addEventListener("pause",function(){e.trigger("pause")}),t.addEventListener("canplay",function(){e.showControls()}),this.video=t,e.setVideo(t),t.src=this.settings.videoUrl},isPaused:function(){return this.video.paused},pause:function(){this.video.pause()},play:function(){this.video.play()}}),n=s.extend({test:function(e){return"video/x-youtube"===e.mimeType},ready:function(){var e,t=this;"YT"in i?YT.ready(t.loadVideo.bind(t)):((e=document.createElement("script")).src="https://www.youtube.com/iframe_api",e.onload=function(){YT.ready(t.loadVideo.bind(t))},document.getElementsByTagName("head")[0].appendChild(e))},loadVideo:function(){var t=this,e=document.createElement("div");e.id="wp-custom-header-video",t.setVideo(e),t.player=new YT.Player(e,{height:this.settings.height,width:this.settings.width,videoId:this.settings.videoUrl.match(/^.*(?:(?:youtu\.be\/|v\/|vi\/|u\/\w\/|embed\/)|(?:(?:watch)?\?v(?:i)?=|\&v(?:i)?=))([^#\&\?]*).*/)[1],events:{onReady:function(e){e.target.mute(),t.showControls()},onStateChange:function(e){YT.PlayerState.PLAYING===e.data?t.trigger("play"):YT.PlayerState.PAUSED===e.data?t.trigger("pause"):YT.PlayerState.ENDED===e.data&&e.target.playVideo()}},playerVars:{autoplay:1,controls:0,disablekb:1,fs:0,iv_load_policy:3,loop:1,modestbranding:1,playsinline:1,rel:0,showinfo:0}})},isPaused:function(){return YT.PlayerState.PAUSED===this.player.getPlayerState()},pause:function(){this.player.pauseVideo()},play:function(){this.player.playVideo()}}),i.wp.customHeader=new o,document.addEventListener("DOMContentLoaded",i.wp.customHeader.initialize.bind(i.wp.customHeader),!1),"customize"in i.wp)&&(i.wp.customize.selectiveRefresh.bind("render-partials-response",function(e){"custom_header_settings"in e&&(t=e.custom_header_settings)}),i.wp.customize.selectiveRefresh.bind("partial-content-rendered",function(e){"custom_header"===e.partial.id&&i.wp.customHeader.initialize()}))}(window,window._wpCustomHeaderSettings||{});
NameSizeActions
admin-bar.js10.3KView Edit Del
admin-bar.min.js3.4KView Edit Del
api-request.js3.2KView Edit Del
api-request.min.js1023BView Edit Del
autosave.js21.9KView Edit Del
autosave.min.js5.7KView Edit Del
backbone.js78.6KView Edit Del
backbone.min.js23.7KView Edit Del
clipboard.js26.2KView Edit Del
clipboard.min.js8.8KView Edit Del
codemirror/--
colorpicker.js28.4KView Edit Del
colorpicker.min.js16.1KView Edit Del
comment-reply.js12.2KView Edit Del
comment-reply.min.js3KView Edit Del
crop/--
customize-base.js25.2KView Edit Del
customize-base.min.js7.7KView Edit Del
customize-loader.js7.7KView Edit Del
customize-loader.min.js3.5KView Edit Del
customize-models.js6.7KView Edit Del
customize-models.min.js3.6KView Edit Del
customize-preview-nav-menus.js14.7KView Edit Del
customize-preview-nav-menus.min.js4.9KView Edit Del
customize-preview-widgets.js22.7KView Edit Del
customize-preview-widgets.min.js7.6KView Edit Del
customize-preview.js27.9KView Edit Del
customize-preview.min.js10.8KView Edit Del
customize-selective-refresh.js32.6KView Edit Del
customize-selective-refresh.min.js10.4KView Edit Del
customize-views.js5.1KView Edit Del
customize-views.min.js2.5KView Edit Del
dist/--
heartbeat.js23.5KView Edit Del
heartbeat.min.js5.8KView Edit Del
hoverIntent.js7.1KView Edit Del
hoverIntent.min.js1.5KView Edit Del
hoverintent-js.min.js1.7KView Edit Del
imagesloaded.min.js5.4KView Edit Del
imgareaselect/--
jcrop/--
jquery/--
json2.js31BView Edit Del
json2.min.js35BView Edit Del
masonry.min.js23.6KView Edit Del
mce-view.js25.2KView Edit Del
mce-view.min.js9.5KView Edit Del
media-audiovideo.js24.1KView Edit Del
media-audiovideo.min.js11.8KView Edit Del
media-editor.js28.8KView Edit Del
media-editor.min.js10.8KView Edit Del
media-grid.js26KView Edit Del
media-grid.min.js13KView Edit Del
media-models.js42.5KView Edit Del
media-models.min.js13KView Edit Del
media-views.js266.5KView Edit Del
media-views.min.js108.1KView Edit Del
mediaelement/--
plupload/--
quicktags.js22.1KView Edit Del
quicktags.min.js10.9KView Edit Del
shortcode.js10.5KView Edit Del
shortcode.min.js2.6KView Edit Del
swfobject.js0BView Edit Del
swfobject.min.js35BView Edit Del
swfupload/--
thickbox/--
tinymce/--
tw-sack.js4.9KView Edit Del
tw-sack.min.js3.2KView Edit Del
twemoji.js36.3KView Edit Del
twemoji.min.js19.4KView Edit Del
underscore.js67.3KView Edit Del
underscore.min.js18.6KView Edit Del
utils.js4.6KView Edit Del
utils.min.js1.8KView Edit Del
wp-ajax-response.js3.8KView Edit Del
wp-ajax-response.min.js2.5KView Edit Del
wp-api.js45.9KView Edit Del
wp-api.min.js14.3KView Edit Del
wp-auth-check.js4.3KView Edit Del
wp-auth-check.min.js1.6KView Edit Del
wp-backbone.js14.9KView Edit Del
wp-backbone.min.js3KView Edit Del
wp-custom-header.js10.2KView Edit Del
wp-custom-header.min.js4.3KView Edit Del
wp-embed-template.js6.6KView Edit Del
wp-embed-template.min.js3.1KView Edit Del
wp-embed.js3.1KView Edit Del
wp-embed.min.js1.2KView Edit Del
wp-emoji-loader.js12.9KView Edit Del
wp-emoji-loader.min.js2.8KView Edit Del
wp-emoji-release.min.js22.2KView Edit Del
wp-emoji.js8.6KView Edit Del
wp-emoji.min.js2.8KView Edit Del
wp-list-revisions.js970BView Edit Del
wp-list-revisions.min.js597BView Edit Del
wp-lists.js24.7KView Edit Del
wp-lists.min.js7.3KView Edit Del
wp-pointer.js10KView Edit Del
wp-pointer.min.js3.5KView Edit Del
wp-sanitize.js1.6KView Edit Del
wp-sanitize.min.js402BView Edit Del
wp-util.js4.6KView Edit Del
wp-util.min.js1.4KView Edit Del
wpdialog.js569BView Edit Del
wpdialog.min.js281BView Edit Del
wplink.js20.7KView Edit Del
wplink.min.js11.1KView Edit Del
zxcvbn-async.js821BView Edit Del
zxcvbn-async.min.js351BView Edit Del
zxcvbn.min.js803KView Edit Del