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/modules/modal/assets/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/rebeccaone.com/wp-content/plugins/convertplug/modules/modal/assets/js/modal.js
/* eslint-env jquery */
(function ($) {
	'use strict';
	jQuery(document).on('click', '.cp-overlay-close', function () {
		if (!jQuery(this).hasClass('do_not_close')) {
			const modal = $(this).parents('.cp-overlay'),
				cp_tooltip = modal.find('.cp-tooltip-icon').data('classes');
			jQuery(document).trigger('closeModal', [modal]);
			jQuery('head').append(
				'<style id="cp-tooltip-close-css">.tip.' +
					cp_tooltip +
					'{ display:none; }</style>'
			);
		}
	});

	jQuery(document).on('click', '.cp-overlay', function () {
		if (
			!jQuery(this).hasClass('do_not_close') &&
			jQuery(this).hasClass('close_btn_nd_overlay')
		) {
			const modal = jQuery(this);
			jQuery(document).trigger('closeModal', [modal]);
		}
	});

	jQuery(document).on('click', '.cp_fs_overlay', function () {
		if (
			!jQuery(this).parents('.cp-overlay').hasClass('do_not_close') &&
			jQuery(this).parents('.cp-overlay').hasClass('close_btn_nd_overlay')
		) {
			const modal = jQuery(this).parents('.cp-overlay');
			jQuery(document).trigger('closeModal', [modal]);
		}
	});

	jQuery(document).on('click', '.cp-overlay .cp-modal', function (e) {
		e.stopPropagation();
	});

	jQuery(document).on('smile_customizer_field_change', function () {
		CPResponsiveTypoInit();
	});

	jQuery(document).on('smile_data_received', function () {
		CPResponsiveTypoInit();
	});

	jQuery('.wpcf7').on('wpcf7:invalid', function () {
		//Contact Form 7 - Height Issue fixed
		cp_column_equilize();
	});

	jQuery(window).on('modalOpen', function (e, data) {
		jQuery('html').addClass('cp-mp-open');

		let close_btn_delay = data.data('close-btnonload-delay');
		close_btn_delay = Math.round(close_btn_delay * 1000); // convert delay time from seconds to miliseconds

		if (close_btn_delay) {
			setTimeout(function () {
				data.find('.cp-overlay-close').removeClass('cp-hide-close');
			}, close_btn_delay);
		}

		cp_column_equilize(); // set columns equalized
		CPModelHeight(); //  Model height
		cp_form_sep_top();
		cp_set_width_svg();
		cp_row_equilize();

		const cp_animate = data.find('.cp-animate-container'),
			animationclass = cp_animate.data('overlay-animation'),
			animatedwidth = cp_animate.data('disable-animationwidth'),
			vw = jQuery(window).width();

		if (vw >= animatedwidth || typeof animatedwidth === 'undefined') {
			jQuery(cp_animate).addClass('smile-animated ' + animationclass);
		}

		jQuery('#cp-tooltip-close-css').remove();

		// remove scroller if modal is window size
		jQuery('.cp-modal-popup-container').each(function (index, element) {
			const t = jQuery(element),
				modal = t.find('.cp-modal');
			if (!modal.hasClass('cp-modal-exceed')) {
				if (modal.hasClass('cp-modal-window-size')) {
					jQuery('html').addClass('cp-window-viewport');
				} else {
					jQuery('html').delay(1000).addClass('cp-custom-viewport');
				}
			}
		});

		//for close modal after x  sec of inactive
		let inactive_close_time = data.data('close-after');
		$.idleTimer('destroy');
		if (typeof inactive_close_time !== 'undefined') {
			inactive_close_time = inactive_close_time * 1000;
			jQuery('.cp-overlay').idleTimer({
				timeout: inactive_close_time,
				idle: false,
			});
		}
		if (jQuery('.kleo-carousel-features-pager').length > 0) {
			setTimeout(function () {
				$(window).trigger('resize');
			}, 1500);
		}
		setTimeout(function () {
			cp_init_psscroll(data);
		}, 1500);
	});

	jQuery(document).ready(function () {
		jQuery(document).on('keydown', function (e) {
			if (e.which === 27) {
				const cp_overlay = jQuery('.cp-open'),
					modal = cp_overlay;
				if (
					cp_overlay.hasClass('close_btn_nd_overlay') &&
					!cp_overlay.hasClass('do_not_close')
				) {
					jQuery(document).trigger('closeModal', [modal]);
				}
			}
		});
		set_affiliate_link(); // Affiliate settings
		CPResponsiveTypoInit();
	});

	function cp_init_psscroll(data) {
		let ht = jQuery('.cp-mp-open').height(),
			modal_ht = '',
			wht = '';
		data.find('.cp-modal-content').attr('data-height', ht);
		if (data.hasClass('cp-overlay') && typeof data !== 'undefined') {
			let count = 0;
			if (!data.hasClass('ps-container')) {
				count++;
				const modal = data.find('.cp-modal-content');
				const old_id = data.attr('data-modal-id');

				data.attr('id', old_id + '-' + count);

				const id = data.attr('id');
				if (typeof Ps !== 'undefined') {
					Ps.initialize(document.getElementById(id));
				}

				if (data.hasClass('cp-window-overlay')) {
					wht = $(window).height();
					const body = data.find('.cp-modal-body');
					ht = data.data('height');
					modal_ht = body.height() + 100;
					ht = parseInt(ht) - 100;

					if (wht >= modal_ht) {
						modal_ht = wht;
					}

					if (data.find('.cp-modal').hasClass('cp-modal-exceed')) {
						data.find('.cp-overlay-background').css(
							'height',
							modal_ht + 'px'
						);
						data.find('.cp_fs_overlay').css(
							'height',
							modal_ht + 'px'
						);
						data.find('.cp-modal-content').css(
							'height',
							modal_ht + 'px'
						);
					}
				} else {
					ht = data.data('height');
					ht = parseInt(ht) - 100;
					modal_ht = modal.height() + 100;
					wht = $(window).height();

					if (wht >= modal_ht) {
						modal_ht = wht;
					}
					if (data.find('.cp-modal').hasClass('cp-modal-exceed')) {
						data.find('.cp-overlay-background').css(
							'height',
							modal_ht + 'px'
						);
					}
				}
			}
		}
	}
})(jQuery);

Youez - 2016 - github.com/yon3zu
LinuXploit