?
Current File : /home/c/i/d/cideo/www/wp-includesVIp/js/crop/images/admin.js.tar
home/cideo/www/wp-contentVIp/plugins/polylang-theme-strings/js/admin.js000066600000006647151262263660022311 0ustar00window.mw_polylang_strings_admin = function(){
    var _this = {
        attr: {
            prefix: '',
            settings: [],
            urls: []
        },

        lng: [],

        init: {
            polylang_info_area: function(){
                var form = jQuery('#string-translation');
                var id = '#' + _this.attr.prefix + 'polylang_info_area';

                if (form.length)
                {
                    jQuery(id, form).remove();

                    var area = jQuery('<div>');
                        area.attr({id: id.replace('#', '')});

                    form.prepend(area);
                    area = jQuery(id, form);

                    var html  = '<span class="caption">&laquo;<b>' + _this.lng[10] + '</b>&raquo; ' + _this.lng[11] + ' [v.<b>' + _this.lng[12] + '</b>].</span>';
                        html += '<span>' + _this.lng[20] + ': <i><a href="' + _this.attr.urls['polylang_strings_theme_current'] + '">' + _this.lng[21] + '</a></i></span>';
                        html += '<span>' + _this.lng[30] + ': <i><a href="' + _this.attr.urls['polylang_strings'] + '">' + _this.lng[31] + '</a></i></span>';

                        if (_this.attr.settings['search_plugins_strings']){
                            html += '<span>' + _this.lng[35] + ': <i><a href="' + _this.attr.urls['polylang_plugins'] + '">' + _this.lng[36] + '</a></i></span>';
                        }

                        html += '<span class="links">';
                        html += '<a href="https://modeewine.com/en-polylang-theme-strings" target="_blank">' + _this.lng[40] + '</a>';
                        html += '<a href="https://modeewine.com/en-donation" target="_blank">' + _this.lng[50] + '</a>';
                        html += '<a href="https://wordpress.org/support/view/plugin-reviews/polylang-theme-strings#new-post" target="_blank">' + _this.lng[60] + '</a>';
                        html += '</span>';

                    area.html(html);
                }
            },

            plugins_page: function(){
                var slug = 'polylang-theme-strings';
                var pll_slug = 'polylang';

                var tr = jQuery('' +
                    '#' + slug + '.active' + // For WP < 4.5
                    ', ' +
                    '[data-slug="' + slug + '"].active' + // For WP >= 4.5
                '');

                var pll_tr = jQuery('' +
                    '#' + pll_slug + '.active' + // For WP < 4.5
                    ', ' +
                    '[data-slug="' + pll_slug + '"].active' + // For WP >= 4.5
                '');

                if (tr.length && pll_tr.length)
                {
                    jQuery('<div class="link-pll-strings"><a href="' + _this.attr.urls['polylang_theme_strings_settings'] + '">' + _this.lng[71] + '</a></div>').insertAfter(jQuery('.plugin-description', tr));
                    jQuery('<div class="link-pll-strings"><a href="' + _this.attr.urls['polylang_strings'] + '">' + _this.lng[70] + '</a></div>').insertAfter(jQuery('.plugin-description', tr));
                }
                else
                if (tr.length && !pll_tr.length){
                    jQuery('<div class="link-pll-strings warning">' + _this.lng[80] + ' &laquo;<a href="https://wordpress.org/plugins/polylang" target="_blank">' + _this.lng[81] + '</a>&raquo;</div>').insertAfter(jQuery('.plugin-description', tr));
                }
            }
        }
    }

    return _this;
}();
home/cideo/www/wp-contentVIp/plugins/gAppointments/assets/admin.js000066600000013746151262346130021403 0ustar00( function($) {	
	/**
	 * Appointment Type
	 */	 		
	jQuery('body').on('change', '#ga_appointment_type', function() {
		//alert( jQuery(this).val() );
		var type = jQuery(this).val();
		
		if( type == 'time_slot' ) {
			jQuery('.cmb2-id-ga-appointment-duration, .cmb2-id-ga-appointment-time').show();
		} else if( type == 'date' ) {
			jQuery('.cmb2-id-ga-appointment-duration, .cmb2-id-ga-appointment-time').hide();
		}
		
    });		
	
	/**
	 * Appointment Cancel Message
	 */	 		
	jQuery('body').on('change', '#cmb2-metabox-ga_appointment_submitdiv #post-status', function() {
		//alert( jQuery(this).val() );
		var postStatus = jQuery(this).val();
		
		if( postStatus == 'cancelled' ) {
			jQuery('#cmb2-metabox-ga_appointment_submitdiv .ga_cancel_message').removeClass('cmb2-hidden');
		} else {
			jQuery('#cmb2-metabox-ga_appointment_submitdiv .ga_cancel_message').addClass('cmb2-hidden');
		}
    });		
	
	/**
	 * Available Times Mode
	 */	 		
	jQuery('body').on('change', '.ga_service_available_times_mode', function() {
		var timeMode = jQuery(this).val();
		
		var excluded = [
			'cmb2-id-ga_service_available_times_mode',		
			'cmb2-id-ga-service-schedule-lead-time-minutes',
			'cmb2-id-ga-service-period-type',
			'cmb2-id-ga-service-max-bookings',
			'cmb2-id-ga-service-multiple-selection',
			'cmb2-id-ga-service-max-selection',
			'cmb2-id-ga-service-double-bookings',
		];	
	
		var interval = [
			'cmb2-id-ga-service-price',
			'cmb2-id-ga-service-duration',
			'cmb2-id-ga-service-cleanup',
			'cmb2-id-ga-service-capacity',
			'cmb2-id-ga-service-reduce-gaps',
			'cmb2-id-ga-service-time-format',
			'cmb2-id-ga-service-show-end-times',
			'cmb2-id-ga-service-remove-am-pm',
		];
		
		var custom = [
			'cmb2-id-ga_service_custom_slots',
			'cmb2-id-ga-service-time-format',
			'cmb2-id-ga-service-show-end-times',
			'cmb2-id-ga-service-remove-am-pm',
		];
		
		var dates = [
			'cmb2-id-ga-service-price',
			'cmb2-id-ga-service-capacity',
		];		
		
		jQuery('#cmb2-metabox-ga_services_details .cmb-row').each(function() {
			var field_class = jQuery(this).attr('class').match(/cmb2-id-[^ ]+/);
			var data = [];

			if( timeMode == 'interval' ) {
				data = interval;
			} else if( timeMode == 'custom' ) {
				data = custom;
			} else if( timeMode == 'no_slots' ) {
				data = dates;
			}			

			if( $.inArray(field_class[0], data) >= 0 ) {
				jQuery(this).removeClass('cmb2-hidden');
			} else {
				if( $.inArray(field_class[0], excluded) >= 0 ) {
					jQuery(this).removeClass('cmb2-hidden');
				} else {
					jQuery(this).addClass('cmb2-hidden');
				}
			}
		});	
    });			
	
	/**
	 * Calendar Availability Type
	 */	 
	jQuery('body').on('change', '#ga_service_period_type', function() {
		var period_type = jQuery(this).val();
		
		if( period_type == 'future_days' ) {
			jQuery('.cmb2-id-ga_service_date_range, .cmb2-id-ga_service_custom_dates').hide(); // Hide other field
			jQuery('.cmb2-id-ga-service-schedule-max-future-days').show();
		} else if( period_type == 'date_range' ) {
			jQuery('.cmb2-id-ga_service_date_range').show();
			jQuery('.cmb2-id-ga-service-schedule-max-future-days, .cmb2-id-ga_service_custom_dates').hide(); // Hide other field
		} else if( period_type == 'custom_dates' ) {
			jQuery('.cmb2-id-ga_service_custom_dates').show();
			jQuery('.cmb2-id-ga-service-schedule-max-future-days, .cmb2-id-ga_service_date_range').hide(); // Hide other field			
		}

    });	

	/**
	 * Add Color Picker to all inputs that have 'color-field' class
	 */
	jQuery('.color-field').wpColorPicker();
	
	/**
	 * Delete Services Term AJAX
	 */	   
	jQuery('body').on('click', '.ga_service_cat_delete', function() {
		if ( confirm("Are you sure?") ) {
			var term_id = jQuery(this).attr('term-id');
			var parent_li = jQuery(this).parent('li');
			
			// wp ajax
			var data = {
				'action': 'ga_service_delete_term',
				'term_id': term_id,
			};		

			jQuery.post(ga_service_delete_term_obj.ajax_url, data, function(response) {
				if ( typeof response !== 'undefined' ) {					
					if( response.success == true ) {
						parent_li.fadeOut(150, function() {
							jQuery(this).remove();
						}); 					
					}					
				}
			});			
		}	
	
    });	

	/**
	 * Deselect Services Type
	 */	   
	jQuery('body').on('change', '.ga_provider_service_type', function() {
		var service_type = jQuery(this).parent('label').attr('class');

		if( service_type == 'ga_provider_service_slots' ) {
			jQuery('#ga_dates_services input:checkbox').removeAttr("checked");
		}

		if( service_type == 'ga_provider_service_dates' ) {
			jQuery('#ga_time_slots_services input:checkbox').removeAttr("checked");
		}		

    });	

	/**
	 * ADD NEW CUSTOM DATE
	 */		
	jQuery('body').on('click', '.custom_dates_period .ga_add_custom_date', function() {
        var cloned = jQuery(this).parent('.custom_dates_period').find('#custom_dates_period .custom-date').first().clone().removeAttr( 'style' );
		jQuery(this).parent('.custom_dates_period').find('#custom_dates_period').append( cloned );
    });	
	

	/**
	 * REMOVE CUSTOM DATE
	 */	   
	jQuery('body').on('click', '#custom_dates_period .custom-date .custom-date-delete', function() {
        jQuery(this).parent('.custom-date').fadeOut(150, function() {
			jQuery(this).remove();
		}); 
    });	

	/**
	 * ADD NEW CUSTOM SLOT
	 */		
	jQuery('body').on('click', '#ga_custom_slots .add-slot', function() {
		var data = {
			'action': 'ga_service_add_slot',
		};	
		
		var $this = jQuery(this);
		
		jQuery.post(ga_service_add_slot_obj.ajax_url, data, function(response) {
			$this.closest('#ga_custom_slots').find('tbody').append( response );
		});		
    });	
	
	
	/**
	 * REMOVE CUSTOM SLOT
	 */	   
	jQuery('body').on('click', '#ga_custom_slots .slot-delete', function() {		
		if( confirm('Are you sure?') ) {
			jQuery(this).closest('tr').fadeOut(150, function() {
				jQuery(this).remove();
			}); 			
		}
    });		
	
	
} ) ( jQuery );

home/cideo/www/wp-contentVIp/plugins/Ultimate_VC_Addons/woocomposer/assets/js/admin.js000066600000000655151275516710025211 0ustar00(function($) {
	"use strict";
	jQuery(document).ready(function(e) {
		var display_type = jQuery("#display_type"),
			per_page = jQuery("#per_page"),
			columns = jQuery("#columns"),
			orderby = jQuery("#orderby"),
			order = jQuery("#order"),
			cat = jQuery("#cat").prev('label');
		alert(display_type.val());
		display_type.bind("change",function(){
			alert(jQuery(this).val());
		});
		cat.hasClass('none')
	});
})(jQuery);;