GRAYBYTE WORDPRESS FILE MANAGER9324

Server IP : 149.255.58.128 / Your IP : 216.73.216.46
System : Linux cloud516.thundercloud.uk 5.14.0-427.26.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 17 15:51:13 EDT 2024 x86_64
PHP Version : 8.2.28
Disable Function : allow_url_include, apache_child_terminate, apache_setenv, exec, passthru, pcntl_exec, posix_kill, posix_mkfifo, posix_getpwuid, posix_setpgid, posix_setsid, posix_setuid, posix_setgid, posix_seteuid, posix_setegid, posix_uname, proc_close, proc_get_status, proc_open, proc_terminate, shell_exec, show_source, system
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/wheelch2/antalyamobilityscooter.com/wp-includes/js/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/wheelch2/antalyamobilityscooter.com/wp-includes/js//wp-custom-header.js
/**
 * @output wp-includes/js/wp-custom-header.js
 */

/* 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 = {
		/**
		 * Initialize 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 = true;
			video.loop = true;
			video.muted = true;
			video.playsInline = true;
			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 || {} );

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
May 20 2025 03:29:06
1032 / wheelch2
0755
codemirror
--
October 16 2024 01:01:17
1032 / wheelch2
0755
crop
--
October 16 2024 01:01:17
1032 / wheelch2
0755
dist
--
April 16 2025 03:36:53
1032 / wheelch2
0755
imgareaselect
--
October 16 2024 01:01:17
1032 / wheelch2
0755
jcrop
--
October 16 2024 01:01:17
1032 / wheelch2
0755
jquery
--
October 16 2024 01:01:17
1032 / wheelch2
0755
mediaelement
--
October 16 2024 01:01:17
1032 / wheelch2
0755
plupload
--
October 16 2024 01:01:17
1032 / wheelch2
0755
swfupload
--
October 16 2024 01:01:17
1032 / wheelch2
0755
thickbox
--
October 16 2024 01:01:17
1032 / wheelch2
0755
tinymce
--
October 16 2024 01:01:17
1032 / wheelch2
0755
.htaccess
0 KB
March 26 2025 13:44:20
1032 / wheelch2
0444
admin-bar.js
10.3 KB
July 16 2024 18:02:44
1032 / wheelch2
0644
admin-bar.min.js
3.405 KB
July 16 2024 18:02:44
1032 / wheelch2
0644
api-request.js
3.246 KB
December 01 2020 03:44:05
1032 / wheelch2
0644
api-request.min.js
0.999 KB
April 08 2022 20:07:18
1032 / wheelch2
0644
autosave.js
21.949 KB
April 16 2025 03:36:53
1032 / wheelch2
0644
autosave.min.js
5.671 KB
February 02 2023 16:36:32
1032 / wheelch2
0644
backbone.js
78.506 KB
November 13 2024 04:42:28
1032 / wheelch2
0644
backbone.min.js
23.731 KB
April 16 2025 03:36:53
1032 / wheelch2
0644
clipboard.js
26.179 KB
October 04 2022 15:55:23
1032 / wheelch2
0644
clipboard.min.js
8.798 KB
October 04 2022 15:55:23
1032 / wheelch2
0644
colorpicker.js
28.401 KB
November 17 2012 15:11:29
1032 / wheelch2
0644
colorpicker.min.js
16.111 KB
April 16 2025 03:36:53
1032 / wheelch2
0644
comment-reply.js
12.22 KB
November 13 2024 04:42:28
1032 / wheelch2
0644
comment-reply.min.js
2.955 KB
November 13 2024 04:42:28
1032 / wheelch2
0644
customize-base.js
25.217 KB
May 20 2023 10:19:23
1032 / wheelch2
0644
customize-base.min.js
7.668 KB
February 02 2023 16:36:32
1032 / wheelch2
0644
customize-loader.js
7.718 KB
July 16 2024 18:02:44
1032 / wheelch2
0644
customize-loader.min.js
3.468 KB
February 02 2023 16:36:32
1032 / wheelch2
0644
customize-models.js
6.661 KB
June 25 2020 12:43:07
1032 / wheelch2
0644
customize-models.min.js
3.595 KB
February 02 2023 16:36:32
1032 / wheelch2
0644
customize-preview-nav-menus.js
14.672 KB
July 27 2020 23:35:02
1032 / wheelch2
0644
customize-preview-nav-menus.min.js
4.915 KB
April 16 2025 03:36:53
1032 / wheelch2
0644
customize-preview-widgets.js
22.708 KB
June 20 2020 12:58:10
1032 / wheelch2
0644
customize-preview-widgets.min.js
7.637 KB
April 16 2025 03:36:53
1032 / wheelch2
0644
customize-preview.js
27.305 KB
July 27 2020 23:35:02
1032 / wheelch2
0644
customize-preview.min.js
10.453 KB
February 02 2023 16:36:32
1032 / wheelch2
0644
customize-selective-refresh.js
32.554 KB
July 16 2024 18:02:44
1032 / wheelch2
0644
customize-selective-refresh.min.js
10.442 KB
April 16 2025 03:36:53
1032 / wheelch2
0644
customize-views.js
4.946 KB
June 28 2018 02:30:15
1032 / wheelch2
0644
customize-views.min.js
2.394 KB
January 06 2021 15:29:24
1032 / wheelch2
0644
heartbeat.js
23.488 KB
November 13 2024 04:42:28
1032 / wheelch2
0644
heartbeat.min.js
5.808 KB
November 13 2024 04:42:28
1032 / wheelch2
0644
hoverIntent.js
7.056 KB
January 03 2022 15:03:18
1032 / wheelch2
0644
hoverIntent.min.js
1.464 KB
April 08 2022 20:07:18
1032 / wheelch2
0644
hoverintent-js.min.js
1.678 KB
December 10 2019 01:03:02
1032 / wheelch2
0644
imagesloaded.min.js
5.391 KB
November 08 2023 06:52:06
1032 / wheelch2
0644
json2.js
17.99 KB
October 06 2015 14:02:25
1032 / wheelch2
0644
json2.min.js
3.069 KB
September 23 2022 19:55:30
1032 / wheelch2
0644
masonry.min.js
23.572 KB
June 13 2020 18:53:27
1032 / wheelch2
0644
mce-view.js
25.243 KB
November 08 2023 06:52:06
1032 / wheelch2
0644
mce-view.min.js
9.541 KB
November 08 2023 06:52:06
1032 / wheelch2
0644
media-audiovideo.js
24.237 KB
April 16 2025 03:36:53
1032 / wheelch2
0644
media-audiovideo.min.js
11.77 KB
April 16 2025 03:36:53
1032 / wheelch2
0644
media-editor.js
28.437 KB
July 27 2020 23:35:02
1032 / wheelch2
0644
media-editor.min.js
10.63 KB
February 02 2023 16:36:32
1032 / wheelch2
0644
media-grid.js
26.026 KB
April 16 2025 03:36:53
1032 / wheelch2
0644
media-grid.min.js
12.947 KB
April 16 2025 03:36:53
1032 / wheelch2
0644
media-models.js
42.582 KB
April 16 2025 03:36:53
1032 / wheelch2
0644
media-models.min.js
12.973 KB
April 16 2025 03:36:53
1032 / wheelch2
0644
media-views.js
266.915 KB
April 16 2025 03:36:53
1032 / wheelch2
0644
media-views.min.js
108.117 KB
April 16 2025 03:36:53
1032 / wheelch2
0644
quicktags.js
22.071 KB
September 08 2021 23:29:58
1032 / wheelch2
0644
quicktags.min.js
10.871 KB
February 02 2023 16:36:32
1032 / wheelch2
0644
shortcode.js
10.506 KB
January 29 2020 00:45:18
1032 / wheelch2
0644
shortcode.min.js
2.581 KB
September 23 2022 19:55:30
1032 / wheelch2
0644
swfobject.js
9.991 KB
April 17 2012 23:09:29
1032 / wheelch2
0644
tw-sack.js
4.853 KB
August 23 2012 00:04:18
1032 / wheelch2
0644
tw-sack.min.js
3.211 KB
April 08 2022 20:07:18
1032 / wheelch2
0644
twemoji.js
32.688 KB
April 16 2025 03:36:53
1032 / wheelch2
0644
twemoji.min.js
15.942 KB
April 16 2025 03:36:53
1032 / wheelch2
0644
underscore.js
67.124 KB
November 13 2024 04:42:28
1032 / wheelch2
0644
underscore.min.js
18.462 KB
April 16 2025 03:36:53
1032 / wheelch2
0644
utils.js
4.556 KB
January 29 2020 00:45:18
1032 / wheelch2
0644
utils.min.js
1.82 KB
September 23 2022 19:55:30
1032 / wheelch2
0644
wp-ajax-response.js
3.812 KB
April 16 2025 03:36:53
1032 / wheelch2
0644
wp-ajax-response.min.js
2.511 KB
April 16 2025 03:36:53
1032 / wheelch2
0644
wp-api.js
45.882 KB
January 10 2023 09:30:13
1032 / wheelch2
0644
wp-api.min.js
14.338 KB
February 02 2023 16:36:32
1032 / wheelch2
0644
wp-auth-check.js
4.108 KB
March 18 2021 19:01:03
1032 / wheelch2
0644
wp-auth-check.min.js
1.619 KB
March 18 2021 19:01:03
1032 / wheelch2
0644
wp-backbone.js
14.884 KB
July 16 2024 18:02:45
1032 / wheelch2
0644
wp-backbone.min.js
2.968 KB
April 08 2022 20:07:18
1032 / wheelch2
0644
wp-custom-header.js
10.22 KB
April 10 2021 12:40:05
1032 / wheelch2
0644
wp-custom-header.min.js
4.338 KB
February 02 2023 16:36:32
1032 / wheelch2
0644
wp-embed-template.js
6.62 KB
November 11 2021 02:49:18
1032 / wheelch2
0644
wp-embed-template.min.js
3.1 KB
April 08 2022 20:07:18
1032 / wheelch2
0644
wp-embed.js
3.139 KB
November 08 2023 06:52:06
1032 / wheelch2
0644
wp-embed.min.js
1.222 KB
November 08 2023 06:52:06
1032 / wheelch2
0644
wp-emoji-loader.js
12.212 KB
April 16 2025 03:36:53
1032 / wheelch2
0644
wp-emoji-loader.min.js
2.872 KB
April 16 2025 03:36:53
1032 / wheelch2
0644
wp-emoji-release.min.js
18.813 KB
April 16 2025 03:36:53
1032 / wheelch2
0644
wp-emoji.js
8.759 KB
February 02 2023 00:53:25
1032 / wheelch2
0644
wp-emoji.min.js
2.822 KB
February 02 2023 00:53:25
1032 / wheelch2
0644
wp-list-revisions.js
0.947 KB
June 28 2018 02:30:15
1032 / wheelch2
0644
wp-list-revisions.min.js
0.583 KB
January 06 2021 15:29:24
1032 / wheelch2
0644
wp-lists.js
24.722 KB
June 24 2023 14:32:20
1032 / wheelch2
0644
wp-lists.min.js
7.345 KB
June 24 2023 14:32:20
1032 / wheelch2
0644
wp-pointer.js
9.993 KB
February 16 2021 20:25:03
1032 / wheelch2
0644
wp-pointer.min.js
3.536 KB
April 08 2022 20:07:18
1032 / wheelch2
0644
wp-sanitize.js
1.31 KB
April 16 2025 03:36:53
1032 / wheelch2
0644
wp-sanitize.min.js
0.447 KB
April 08 2022 20:07:18
1032 / wheelch2
0644
wp-util.js
4.569 KB
September 20 2022 03:52:10
1032 / wheelch2
0644
wp-util.min.js
1.393 KB
September 20 2022 03:52:10
1032 / wheelch2
0644
wpdialog.js
0.556 KB
January 24 2023 21:13:12
1032 / wheelch2
0644
wpdialog.min.js
0.274 KB
January 24 2023 21:13:12
1032 / wheelch2
0644
wplink.js
20.742 KB
April 16 2025 03:36:53
1032 / wheelch2
0644
wplink.min.js
11.052 KB
November 13 2024 04:42:28
1032 / wheelch2
0644
zxcvbn-async.js
0.802 KB
June 28 2018 02:30:15
1032 / wheelch2
0644
zxcvbn-async.min.js
0.343 KB
February 23 2021 16:45:19
1032 / wheelch2
0644
zxcvbn.min.js
802.966 KB
October 26 2019 00:17:07
1032 / wheelch2
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF