HEX
Server: Apache
System: Linux vpshost0528.publiccloud.com.br 4.4.79-grsec-1.lc.x86_64 #1 SMP Wed Aug 2 14:18:21 -03 2017 x86_64
User: novoprovisorio2 (10002)
PHP: 7.4.11
Disabled: apache_child_terminate,dl,escapeshellarg,escapeshellcmd,exec,link,mail,openlog,passthru,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_get_last_error,pcntl_getpriority,pcntl_setpriority,pcntl_signal,pcntl_signal_dispatch,pcntl_sigprocmask,pcntl_sigtimedwait,pcntl_sigwaitinfo,pcntl_strerror,pcntl_wait,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,php_check_syntax,php_strip_whitespace,popen,proc_close,proc_open,shell_exec,symlink,system
Upload Files
File: /home/storage/f/44/55/novoprovisorio2/public_html/wp-content/themes/thegem/js/diagram_edit.js
jQuery(document).ready(function() {
	thegem_init_diagram_edit();
});

function thegem_init_diagram_edit() {
	jQuery('.diagram-edit-skills').each(function() {
		jQuery(this).data('skills-count', jQuery(this).find('fieldset').size());
	});
	jQuery('a.diagram-edit-add-skill').unbind('click');
	jQuery('a.diagram-edit-add-skill').click(function() {
		var index = parseInt(jQuery(this).parents('.diagram-edit-skills:first').data('skills-count')) + 1;
		var code = jQuery(this).parents('form:first').find('.diagram-edit-skill-template').html();
		code = code.replace(/%INDEX%/g, index);
		jQuery(this).parent().before(code);
		jQuery(this).parents('.diagram-edit-skills:first').data('skills-count', index);
		thegem_init_diagram_skills();
		return false;
	});
	thegem_init_diagram_skills();
}

function thegem_init_diagram_skills() {
	jQuery('.diagram-edit-skills fieldset').each(function() {
		jQuery(this).find('a.diagram-delete-skill').unbind('click');
		jQuery(this).find('a.diagram-delete-skill').click(function() {
			jQuery(this).parent().parent().remove();
			return false;
		});

		jQuery(this).find('input.color-select').each(function(){
			jQuery(this).siblings('.cs_button').remove();
			jQuery('<span class="cs_button" style="margin: 0; float: right;"></span>')
				.insertAfter(jQuery(this))
				.css('backgroundColor', jQuery(this).val());
			jQuery(this).width('70%');
		});

		jQuery(this).find('input.color-select').ColorPicker({
			onSubmit: function(hsb, hex, rgb, el) {
				jQuery(el).val('#' + hex);
				jQuery(el).ColorPickerHide();
				jQuery(el).change();
			},
			onBeforeShow: function () {
				jQuery(this).ColorPickerSetColor(this.value);
			}
		});

		jQuery(this).find('input.color-select').unbind('change');
		jQuery(this).find('input.color-select').bind('change', function(){
			jQuery(this).next('.cs_button').css('backgroundColor', jQuery(this).val());
		});

		jQuery(this).find('input.color-select + .cs_button').unbind('click');
		jQuery(this).find('input.color-select + .cs_button').click(function(){
			jQuery(this).prev('input').ColorPickerShow();
		});
	});
}