Ghost Exploiter Team Official
/
home2
/
warripp1
/
public_html
/
dev-old
/
wp-includes
/
js
/
Nama File / Folder
Size
Action
codemirror
--
NONE
crop
--
NONE
imgareaselect
--
NONE
jcrop
--
NONE
jquery
--
NONE
mediaelement
--
NONE
plupload
--
NONE
swfupload
--
NONE
thickbox
--
NONE
tinymce
--
NONE
admin-bar.min.js
7.02KB
Hapus
Edit
Rename
api-request.min.js
0.681KB
Hapus
Edit
Rename
autosave.min.js
5.514KB
Hapus
Edit
Rename
backbone.min.js
22.771KB
Hapus
Edit
Rename
colorpicker.js
28.401KB
Hapus
Edit
Rename
colorpicker.min.js
16.284KB
Hapus
Edit
Rename
comment-reply.js
3.368KB
Hapus
Edit
Rename
customize-base.js
25.014KB
Hapus
Edit
Rename
customize-base.min.js
7.772KB
Hapus
Edit
Rename
customize-loader.js
7.66KB
Hapus
Edit
Rename
customize-loader.min.js
3.439KB
Hapus
Edit
Rename
customize-models.js
6.603KB
Hapus
Edit
Rename
customize-models.min.js
3.596KB
Hapus
Edit
Rename
customize-preview-nav-menus.js
14.609KB
Hapus
Edit
Rename
customize-preview-nav-menus.min.js
4.932KB
Hapus
Edit
Rename
customize-preview-widgets.js
20.585KB
Hapus
Edit
Rename
customize-preview.min.js
10.645KB
Hapus
Edit
Rename
customize-selective-refresh.js
32.48KB
Hapus
Edit
Rename
customize-selective-refresh.min.js
10.559KB
Hapus
Edit
Rename
customize-views.js
4.894KB
Hapus
Edit
Rename
customize-views.min.js
2.365KB
Hapus
Edit
Rename
heartbeat.js
19.723KB
Hapus
Edit
Rename
heartbeat.min.js
5.401KB
Hapus
Edit
Rename
hoverIntent.js
4.833KB
Hapus
Edit
Rename
hoverIntent.min.js
1.089KB
Hapus
Edit
Rename
imagesloaded.min.js
7.807KB
Hapus
Edit
Rename
json2.js
17.99KB
Hapus
Edit
Rename
json2.min.js
3.06KB
Hapus
Edit
Rename
masonry.min.js
28.275KB
Hapus
Edit
Rename
media-audiovideo.js
25.6KB
Hapus
Edit
Rename
media-audiovideo.min.js
12.083KB
Hapus
Edit
Rename
media-editor.js
28.229KB
Hapus
Edit
Rename
media-editor.min.js
10.649KB
Hapus
Edit
Rename
media-grid.js
27.068KB
Hapus
Edit
Rename
media-grid.min.js
13.344KB
Hapus
Edit
Rename
media-models.js
43.034KB
Hapus
Edit
Rename
media-models.min.js
13.24KB
Hapus
Edit
Rename
media-views.js
234.686KB
Hapus
Edit
Rename
media-views.min.js
98.354KB
Hapus
Edit
Rename
quicktags.js
21.866KB
Hapus
Edit
Rename
quicktags.min.js
10.888KB
Hapus
Edit
Rename
shortcode.js
10.272KB
Hapus
Edit
Rename
shortcode.min.js
2.552KB
Hapus
Edit
Rename
swfobject.js
9.991KB
Hapus
Edit
Rename
tw-sack.js
4.853KB
Hapus
Edit
Rename
tw-sack.min.js
3.206KB
Hapus
Edit
Rename
twemoji.js
24.895KB
Hapus
Edit
Rename
twemoji.min.js
8.606KB
Hapus
Edit
Rename
underscore.min.js
16.025KB
Hapus
Edit
Rename
utils.js
4.415KB
Hapus
Edit
Rename
utils.min.js
1.782KB
Hapus
Edit
Rename
wp-a11y.js
2.514KB
Hapus
Edit
Rename
wp-a11y.min.js
0.638KB
Hapus
Edit
Rename
wp-ajax-response.js
3.048KB
Hapus
Edit
Rename
wp-ajax-response.min.js
2.019KB
Hapus
Edit
Rename
wp-api.js
45.61KB
Hapus
Edit
Rename
wp-api.min.js
14.345KB
Hapus
Edit
Rename
wp-auth-check.js
3.229KB
Hapus
Edit
Rename
wp-auth-check.min.js
1.741KB
Hapus
Edit
Rename
wp-backbone.js
10.243KB
Hapus
Edit
Rename
wp-backbone.min.js
2.949KB
Hapus
Edit
Rename
wp-custom-header.js
10.148KB
Hapus
Edit
Rename
wp-custom-header.min.js
4.357KB
Hapus
Edit
Rename
wp-embed-template.js
6.045KB
Hapus
Edit
Rename
wp-embed.min.js
1.365KB
Hapus
Edit
Rename
wp-emoji-loader.js
5.158KB
Hapus
Edit
Rename
wp-emoji-loader.min.js
1.742KB
Hapus
Edit
Rename
wp-emoji-release.min.js
11.446KB
Hapus
Edit
Rename
wp-emoji.js
6.602KB
Hapus
Edit
Rename
wp-emoji.min.js
2.758KB
Hapus
Edit
Rename
wp-list-revisions.js
0.893KB
Hapus
Edit
Rename
wp-list-revisions.min.js
0.556KB
Hapus
Edit
Rename
wp-lists.js
24.644KB
Hapus
Edit
Rename
wp-lists.min.js
7.239KB
Hapus
Edit
Rename
wp-pointer.min.js
3.554KB
Hapus
Edit
Rename
wp-sanitize.min.js
0.388KB
Hapus
Edit
Rename
wp-util.js
3.83KB
Hapus
Edit
Rename
wp-util.min.js
1.021KB
Hapus
Edit
Rename
wpdialog.js
0.425KB
Hapus
Edit
Rename
wplink.js
20.521KB
Hapus
Edit
Rename
wplink.min.js
11.04KB
Hapus
Edit
Rename
zxcvbn-async.js
0.49KB
Hapus
Edit
Rename
zxcvbn.min.js
802.932KB
Hapus
Edit
Rename
/* global YT */ (function( window, settings ) { var NativeHandler, YouTubeHandler; /** @namespace wp */ window.wp = window.wp || {}; // Fail gracefully in unsupported browsers. if ( ! ( 'addEventListener' in window ) ) { return; } /** * Trigger an event. * * @param {Element} target HTML element to dispatch the event on. * @param {string} name Event name. */ function trigger( target, name ) { var evt; if ( 'function' === typeof window.Event ) { evt = new Event( name ); } else { evt = document.createEvent( 'Event' ); evt.initEvent( name, true, true ); } target.dispatchEvent( evt ); } /** * Create a custom header instance. * * @memberOf wp * * @class */ function CustomHeader() { this.handlers = { nativeVideo: new NativeHandler(), youtube: new YouTubeHandler() }; } CustomHeader.prototype = { /** * Initalize the custom header. * * If the environment supports video, loops through registered handlers * until one is found that can handle the video. */ initialize: function() { if ( this.supportsVideo() ) { for ( var id in this.handlers ) { var handler = this.handlers[ id ]; if ( 'test' in handler && handler.test( settings ) ) { this.activeHandler = handler.initialize.call( handler, settings ); // Dispatch custom event when the video is loaded. trigger( document, 'wp-custom-header-video-loaded' ); break; } } } }, /** * Determines if the current environment supports video. * * Themes and plugins can override this method to change the criteria. * * @return {boolean} */ supportsVideo: function() { // Don't load video on small screens. @todo: consider bandwidth and other factors. if ( window.innerWidth < settings.minWidth || window.innerHeight < settings.minHeight ) { return false; } return true; }, /** * Base handler for custom handlers to extend. * * @type {BaseHandler} */ BaseVideoHandler: BaseHandler }; /** * Create a video handler instance. * * @memberOf wp * * @class */ function BaseHandler() {} BaseHandler.prototype = { /** * Initialize the video handler. * * @param {object} settings Video settings. */ initialize: function( settings ) { var handler = this, button = document.createElement( 'button' ); this.settings = settings; this.container = document.getElementById( 'wp-custom-header' ); this.button = button; button.setAttribute( 'type', 'button' ); button.setAttribute( 'id', 'wp-custom-header-video-button' ); button.setAttribute( 'class', 'wp-custom-header-video-button wp-custom-header-video-play' ); button.innerHTML = settings.l10n.play; // Toggle video playback when the button is clicked. button.addEventListener( 'click', function() { if ( handler.isPaused() ) { handler.play(); } else { handler.pause(); } }); // Update the button class and text when the video state changes. this.container.addEventListener( 'play', function() { button.className = 'wp-custom-header-video-button wp-custom-header-video-play'; button.innerHTML = settings.l10n.pause; if ( 'a11y' in window.wp ) { window.wp.a11y.speak( settings.l10n.playSpeak); } }); this.container.addEventListener( 'pause', function() { button.className = 'wp-custom-header-video-button wp-custom-header-video-pause'; button.innerHTML = settings.l10n.play; if ( 'a11y' in window.wp ) { window.wp.a11y.speak( settings.l10n.pauseSpeak); } }); this.ready(); }, /** * Ready method called after a handler is initialized. * * @abstract */ ready: function() {}, /** * Whether the video is paused. * * @abstract * @return {boolean} */ isPaused: function() {}, /** * Pause the video. * * @abstract */ pause: function() {}, /** * Play the video. * * @abstract */ play: function() {}, /** * Append a video node to the header container. * * @param {Element} node HTML element. */ setVideo: function( node ) { var editShortcutNode, editShortcut = this.container.getElementsByClassName( 'customize-partial-edit-shortcut' ); if ( editShortcut.length ) { editShortcutNode = this.container.removeChild( editShortcut[0] ); } this.container.innerHTML = ''; this.container.appendChild( node ); if ( editShortcutNode ) { this.container.appendChild( editShortcutNode ); } }, /** * Show the video controls. * * Appends a play/pause button to header container. */ showControls: function() { if ( ! this.container.contains( this.button ) ) { this.container.appendChild( this.button ); } }, /** * Whether the handler can process a video. * * @abstract * @param {object} settings Video settings. * @return {boolean} */ test: function() { return false; }, /** * Trigger an event on the header container. * * @param {string} name Event name. */ trigger: function( name ) { trigger( this.container, name ); } }; /** * Create a custom handler. * * @memberOf wp * * @param {object} protoProps Properties to apply to the prototype. * @return CustomHandler The subclass. */ BaseHandler.extend = function( protoProps ) { var prop; function CustomHandler() { var result = BaseHandler.apply( this, arguments ); return result; } CustomHandler.prototype = Object.create( BaseHandler.prototype ); CustomHandler.prototype.constructor = CustomHandler; for ( prop in protoProps ) { CustomHandler.prototype[ prop ] = protoProps[ prop ]; } return CustomHandler; }; /** * Native video handler. * * @memberOf wp * * @class */ NativeHandler = BaseHandler.extend(/** @lends wp.NativeHandler.prototype */{ /** * Whether the native handler supports a video. * * @param {object} settings Video settings. * @return {boolean} */ test: function( settings ) { var video = document.createElement( 'video' ); return video.canPlayType( settings.mimeType ); }, /** * Set up a native video element. */ ready: function() { var handler = this, video = document.createElement( 'video' ); video.id = 'wp-custom-header-video'; video.autoplay = 'autoplay'; video.loop = 'loop'; video.muted = 'muted'; video.width = this.settings.width; video.height = this.settings.height; video.addEventListener( 'play', function() { handler.trigger( 'play' ); }); video.addEventListener( 'pause', function() { handler.trigger( 'pause' ); }); video.addEventListener( 'canplay', function() { handler.showControls(); }); this.video = video; handler.setVideo( video ); video.src = this.settings.videoUrl; }, /** * Whether the video is paused. * * @return {boolean} */ isPaused: function() { return this.video.paused; }, /** * Pause the video. */ pause: function() { this.video.pause(); }, /** * Play the video. */ play: function() { this.video.play(); } }); /** * YouTube video handler. * * @memberOf wp * * @class wp.YouTubeHandler */ YouTubeHandler = BaseHandler.extend(/** @lends wp.YouTubeHandler.prototype */{ /** * Whether the handler supports a video. * * @param {object} settings Video settings. * @return {boolean} */ test: function( settings ) { return 'video/x-youtube' === settings.mimeType; }, /** * Set up a YouTube iframe. * * Loads the YouTube IFrame API if the 'YT' global doesn't exist. */ ready: function() { var handler = this; if ( 'YT' in window ) { YT.ready( handler.loadVideo.bind( handler ) ); } else { var tag = document.createElement( 'script' ); tag.src = 'https://www.youtube.com/iframe_api'; tag.onload = function () { YT.ready( handler.loadVideo.bind( handler ) ); }; document.getElementsByTagName( 'head' )[0].appendChild( tag ); } }, /** * Load a YouTube video. */ loadVideo: function() { var handler = this, video = document.createElement( 'div' ), // @link http://stackoverflow.com/a/27728417 VIDEO_ID_REGEX = /^.*(?:(?:youtu\.be\/|v\/|vi\/|u\/\w\/|embed\/)|(?:(?:watch)?\?v(?:i)?=|\&v(?:i)?=))([^#\&\?]*).*/; video.id = 'wp-custom-header-video'; handler.setVideo( video ); handler.player = new YT.Player( video, { height: this.settings.height, width: this.settings.width, videoId: this.settings.videoUrl.match( VIDEO_ID_REGEX )[1], events: { onReady: function( e ) { e.target.mute(); handler.showControls(); }, onStateChange: function( e ) { if ( YT.PlayerState.PLAYING === e.data ) { handler.trigger( 'play' ); } else if ( YT.PlayerState.PAUSED === e.data ) { handler.trigger( 'pause' ); } else if ( 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 } }); }, /** * Whether the video is paused. * * @return {boolean} */ isPaused: function() { return YT.PlayerState.PAUSED === this.player.getPlayerState(); }, /** * Pause the video. */ pause: function() { this.player.pauseVideo(); }, /** * Play the video. */ play: function() { this.player.playVideo(); } }); // Initialize the custom header when the DOM is ready. window.wp.customHeader = new CustomHeader(); document.addEventListener( 'DOMContentLoaded', window.wp.customHeader.initialize.bind( window.wp.customHeader ), false ); // Selective refresh support in the Customizer. if ( 'customize' in window.wp ) { window.wp.customize.selectiveRefresh.bind( 'render-partials-response', function( response ) { if ( 'custom_header_settings' in response ) { settings = response.custom_header_settings; } }); window.wp.customize.selectiveRefresh.bind( 'partial-content-rendered', function( placement ) { if ( 'custom_header' === placement.partial.id ) { window.wp.customHeader.initialize(); } }); } })( window, window._wpCustomHeaderSettings || {} );