HEX
Server: Apache
System: Linux web2213.uni5.net 5.4.282-1.el8.elrepo.x86_64 #1 SMP Mon Aug 19 18:33:22 EDT 2024 x86_64
User: clinicamaciel (596848)
PHP: 7.3.33
Disabled: apache_child_terminate,c99_buff_prepare,c99_sess_put,dl,eval,exec,leak,link,myshellexec,openlog,passthru,pclose,pcntl_exec,php_check_syntax,php_strip_whitespace,popen,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,show_source,symlink,system,socket_listen,socket_create_listen,putenv
Upload Files
File: /home/clinicamaciel/www/wp-content/plugins/vc-extensions-bundle/metrocarousel/js/init.js
jQuery(document).ready(function($) {
	$('body').addClass('metro');
	var _carouselindex = 0;
	jQuery('.carousel').each(function(index) {
		var _index = index;
		_carouselindex = _index;
		var _position = $(this).data('position') || 'bottom-left';
		var _buttontype = $(this).data('buttontype') || 'default';
		var _animation = $(this).data('animation') || 'slide';
		var _containermagin = $(this).data('containermagin');
		var _carouselheight = $(this).data('carouselheight') || 300;
		var _autoplay = $(this).data('autoplay') == "yes" ? true : false;
		var _autoplayspeed = $(this).data('autoplayspeed') || 4000;
		var _carouselbgcolor = $(this).data('carouselbgcolor') || 'none';
		$(this).css({
			'background-color': _carouselbgcolor,
			'height': _carouselheight,
			'margin': _containermagin
		});
		$(this).carousel({
		    auto: _autoplay,
		    height: 300,
		    effect: _animation,
		    period: _autoplayspeed,
		    duration: 600,
		    markers: {
		    	position: _position,
		        type: _buttontype
		        // type: "cycle"
		    }
		});

		$(this).find('.carousel-item').each(function() {
			$(this).attr('rel', 'carousel-gallery'+_index).boxer({
				fixed : true
	   		});
		});
	});
	jQuery('.tile').each(function(index) {
		var _index = index + _carouselindex + 1;
		var _slideeffect = $(this).data('slideeffect') || 'slideLeft';
		var _tileheight = $(this).data('tileheight') || 300;
		var _containermagin = $(this).data('containermagin');
		var _tileautoplayspeed = $(this).data('tileautoplayspeed') || 4000;
		$(this).css({
			'height': _tileheight,
			'margin': _containermagin
		});;
		$(this).livetile({
			effect: _slideeffect,
            period: _tileautoplayspeed,
            duration: 800,
            easing: 'easeInOutExpo'
		});
		$(this).find('.carousel-item').each(function() {
			$(this).attr('rel', 'carousel-gallery'+_index).boxer({
				fixed : true
	   		});
		});
	});


	$(window).on('resize', function(event) {
		$('.tile').each(function(index) {
			var _mintilewidth = $(this).data('mintilewidth');
			var _mintileheight = $(this).data('mintileheight');
			var _tileheight = $(this).data('tileheight') || 300;
			if($(this).width()<=_mintilewidth){
				$(this).css('height', _mintileheight);
			}else{
				$(this).css('height', _tileheight);
			}
		});
		$('.carousel').each(function(index) {
			var _mincarouselwidth = $(this).data('mincarouselwidth');
			var _mincarouselheight = $(this).data('mincarouselheight');
			var _position = $(this).data('position');
			if(_position=="top-center"||_position=="bottom-center"){
				var _markers = $(this).find('.markers');
				_markers.css({
                    left: $(this).width()/2 - _markers.width()/2,
                    right: 'auto'
                });
			}
			var _carouselheight = $(this).data('carouselheight') || 300;
			if($(this).width()<=_mincarouselwidth){
				$(this).css('height', _mincarouselheight);
			}else{
				$(this).css('height', _carouselheight);
			}
		});

	});

	$(window).trigger('resize');


});