GRAYBYTE WORDPRESS FILE MANAGER3849

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.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
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/giriqfky/chahida.co.in/wp-content/plugins/ag-custom-admin/script/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/giriqfky/chahida.co.in/wp-content/plugins/ag-custom-admin/script//agca_farbtastic.js
 function isDarker(rgb){
	var r=parseInt(rgb.substring(1,3));
	var g=parseInt(rgb.substring(3,5));
	var b=parseInt(rgb.substring(5));	
	
    r = r/255, g = g/255, b = b/255;
    var max = Math.max(r, g, b), min = Math.min(r, g, b);
    var h, s, v = max;

    var d = max - min;
    s = max == 0 ? 0 : d / max;

    if(max == min){
        h = 0; // achromatic
    }else{
        switch(max){
            case r: h = (g - b) / d + (g < b ? 6 : 0); break;
            case g: h = (b - r) / d + 2; break;
            case b: h = (r - g) / d + 4; break;
        }
        h /= 6;
    }
    //return [h, s, v];
	if(v < 0.5){
		return true;
	}else{
		return false;
	}
}

 jQuery(document).ready(function() { 

	jQuery('.pick_color_button').click(function(e){		
		jQuery('#'+jQuery(this).attr('alt')).focus();
		jQuery('#picker').css("left",e.pageX-100);
		jQuery('#picker').css("top",e.pageY-100);
		jQuery('#picker').show();
		
	});
    jQuery('.color_picker').click(function(){	
		jQuery('#picker').farbtastic('#'+jQuery(this).attr('id'));	
	});
	 jQuery('.color_picker').bind('keydown',function(){		
		 updateColor(jQuery(this).attr('id'),jQuery(this).val())
		 updateAllColors();
	});
	jQuery('#picker').mouseleave(function(){
		jQuery(this).hide();
	});	
	jQuery('#picker').hide();
	jQuery('.pick_color_button_clear').click(function(){	
		jQuery('#'+jQuery(this).attr('alt')).val("");
		jQuery('#'+jQuery(this).attr('alt')).attr("style","");
	});	
  });
  
  jQuery(document).ready(function() {
	jQuery('#picker').farbtastic(function(color){	
	if(document.activeElement.id !=""){	
		updateColor(document.activeElement.id,color);
			updateAllColors();
	}	   
	});
	jQuery(".color_picker").bind('keydown',function(){
		updateColor(jQuery(this).attr('id'),jQuery(this).val());	
		updateAllColors();
	});
  });

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 10 2025 04:32:25
giriqfky / giriqfky
0755
.htaccess
0.41 KB
July 10 2025 04:32:25
giriqfky / giriqfky
0644
ag_script.js
35.178 KB
May 30 2025 12:21:34
giriqfky / giriqfky
0644
agca_farbtastic.js
1.764 KB
May 30 2025 12:21:34
giriqfky / giriqfky
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF