403Webshell
Server IP : 104.21.74.147  /  Your IP : 216.73.217.154
Web Server : nginx/1.24.0
System : Linux wordpress-sites 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.1.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/rebeccaone.com/wp-content/plugins/convertplug/framework/lib/fields/dropdown/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/rebeccaone.com/wp-content/plugins/convertplug/framework/lib/fields/dropdown/dropdown.js
/* eslint-env jquery */
(function ($) {
	$(document).ready(function () {
		$('.smile-select').each(function (index, el) {
			$(el).on('change', function () {
				//  Partial Refresh -   Apply text-align, border-style etc.
				const data_element = $(el);
				const data_element_val = $(el).val();
				const data_css_preview =
					data_element.attr('data-css-preview') || '';
				const data_element_selector =
					data_element.attr('data-css-selector') || '';
				const data_property =
					data_element.attr('data-css-property') || '';
				const data_unit = data_element.attr('data-unit') || 'px';
				const data_value = data_element_val;
				partial_refresh_dropdown(
					data_css_preview,
					data_element_selector,
					data_property,
					data_unit,
					data_value
				);
				$(document).trigger('smile-select-change', [el]);
				$(document).trigger('smile-select-dropdown-change', [
					el,
					data_value,
				]);
			});
		});

		//  Partial Refresh
		//  -   Apply text-align, border-style etc.
		const a = $('.smile-select');
		const o = $('.smile-select').val();
		const css_preview = a.attr('data-css-preview') || '';
		const selector = a.attr('data-css-selector') || '';
		const property = a.attr('data-css-property') || '';
		const unit = a.attr('data-unit') || 'px';
		const value = o;
		partial_refresh_dropdown(css_preview, selector, property, unit, value);
	});

	function partial_refresh_dropdown(
		css_preview,
		selector,
		property,
		unit,
		value
	) {
		//  apply css by - inline
		if (
			css_preview !== 1 ||
			null === css_preview ||
			'undefined' === css_preview
		) {
			jQuery('#smile_design_iframe')
				.contents()
				.find(selector)
				.css(property, value);
		}
		//  apply css by - after css generation
		jQuery(document).trigger('updated', [
			css_preview,
			selector,
			property,
			value,
			unit,
		]);
	}
})(jQuery);

Youez - 2016 - github.com/yon3zu
LinuXploit