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/figurenav/js/jquery.figurenav.js
jQuery(document).ready(function($) {
	$('.cq-figure-cover').each(function(index) {
			var _this = $(this);
			var _buttonwidth = $(this).data('buttonwidth');
			var _contentwidth = $(this).data('contentwidth');
			// var _blockmargintop = $(this).data('blockmargintop');
			var _itemheight = $(this).data('itemheight');
			var _mintemwidth = $(this).data('mintemwidth');
			var _displaynum = Math.max(parseInt($(this).data('displaynum'))-1, 0);
			var _bordercolor = $(this).data('bordercolor');
			var _itemnum = $(this).find('.cq-figure-item').length;
			var _currentitem = null;
			// $(this).on('mouseleave', function(event) {
			// 	console.log('leave', _currentitem);
			// 	if(_currentitem) {
			// 		_currentitem.css({
			// 			'margin-top': 0,
			// 			'height': _itemheight,
			// 			'box-shadow': '0 0 4px 1px rgba(0, 0, 0, 0.2)'
			// 		}).animate({},
			// 			300, function() {
			// 				// _currentitem.on('mouseleave', _leaveItem);
			// 		});

			// 		_currentitem.find('figure.cq-figure').css({
			// 			'height': 184,
			// 			'opacity': 1
			// 		});
			// 		// _currentitem.find('.cq-figure-content').css('opacity', 1);
			// 		_currentitem.find('.cq-figure-content').stop(true).animate({'opacity': 1}, 300);

			// 	}
			// });
			$(this).find('.cq-figure-item').each(function(index) {
				var _btnmargintop = $(this).data('btnmargintop');
				var _bgcolor = $(this).data('bgcolor');
				var _fontcolor = $(this).data('fontcolor');
				if(_bgcolor!='') $(this).find('h2, h2>span').css({
					'color': _fontcolor,
					'background-color': _bgcolor
				});
				$(this).css({
					'color': _fontcolor,
					'background-color': _bgcolor,
					'min-width': _mintemwidth,
					'width': 100/_itemnum + '%'
					// 'position': 'relative',
					// 'margin-top': 360
				});
				$(this).find('.cq-figure').css({
					// 'background-size': $(this).width() + 'px '
				});
				$(this).find('.cq-figure-content').each(function(index) {
					$(this).css({
						width: _contentwidth
					});
				});
				$(this).find('a.vc_btn, a.wpb_button_a').each(function(index) {
					$(this).css({
						'width': _buttonwidth,
						'margin-top': _btnmargintop
					});
				});

				$(this).on('mouseenter', _enteritem).on('mouseleave', _leaveItem);
				if(_displaynum>=0&&index==_displaynum) {
					_currentitem = $(this).trigger('mouseenter');
				}


		})
		function _enteritem(event) {
			// $(this).off('mouseleave', _leaveItem);
			if(_currentitem) _currentitem.trigger('mouseleave');
			$(this).css({
				'margin-top': 0,
				'height': _itemheight,
				'box-shadow': '0 0 4px 1px rgba(0, 0, 0, 0.2)'
			}).animate({},
				300, function() {
					// $(this).on('mouseleave', _leaveItem);
			});

			$(this).find('figure.cq-figure').css({
				'height': 184,
				'opacity': 1
			});
			// $(this).find('h4.cq-figure-title').css({
				// 'opacity': 0
			// })
			$(this).find('.cq-figure-content').stop(true).animate({'opacity': 1}, 300);

		};

		function _leaveItem(event){
			$(this).css({
				'box-shadow': 'none',
				'margin-top': 360,
				'height': 120
			});
			$(this).find('figure.cq-figure').css({
				'height': '0px',
				'border-bottom' : '4px solid ' + _bordercolor
			});
			// $(this).find('h4.cq-figure-title').css({
				// 'opacity': 0
			// })
			$(this).find('.cq-figure-content').stop(true).animate({'opacity': 0, 'height': 0}, 300)

		}


	});
});