Sh3ll
OdayForums


Server : LiteSpeed
System : Linux premium84.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
User : claqxcrl ( 523)
PHP Version : 8.1.32
Disable Function : NONE
Directory :  /home/claqxcrl/askdragao.com/wp-content/plugins/sportspress/assets/js/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/claqxcrl/askdragao.com/wp-content/plugins/sportspress/assets/js/admin/iconpicker.js
jQuery( document ).ready(
	function($){

		// Icon picker
		$( '.sp-icons input' ).on(
			'change',
			function() {
				if ('' == $( this ).val()) {
					$( '.sp-custom-colors' ).hide();
					$( '.sp-custom-thumbnail' ).show();
				} else {
					$( '.sp-custom-thumbnail' ).hide();
					$( '.sp-custom-colors' ).show();
				}
			}
		);

		// Color picker
		$( '.colorpick' ).iris(
			{
				change: function(event, ui){
					$( this ).css( { backgroundColor: ui.color.toString() } );
				},
				hide: true,
				border: true
			}
		).each(
			function() {
				$( this ).css( { backgroundColor: $( this ).val() } );
			}
		)
		.click(
			function(){
				$( '.iris-picker' ).hide();
				$( this ).closest( '.sp-color-box-for-icon, td' ).find( '.iris-picker' ).show();
			}
		);

		$( 'body' ).click(
			function() {
				$( '.iris-picker' ).hide();
			}
		);

		$( '.sp-color-box-for-icon, .colorpick' ).click(
			function(event){
				event.stopPropagation();
			}
		);

	}
);

ZeroDay Forums Mini