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/parallax/js/init.js
jQuery(document).ready(function($) {
	var touch = Modernizr.touch;
	$('.cq-parallaxcontainer').each(function(index) {
		var _this = $(this);
		var _speed = $(this).data('speed') || 0.2;
		var _coverratio = $(this).data('coverratio') || 0.75;
		var _holderminheight = $(this).data('holderminheight') || 200;
		var _holdermaxheight = $(this).data('holdermaxheight') == "" ? null : parseInt($(this).data('holdermaxheight'));
		var _extraheight = $(this).data('extraheight') == "" ? 0 : parseInt($(this).data('extraheight'));
		var _linkArr = [];
		var _target = $(this).data('target');
		$('.cq-parallaximage', _this).each(function(linkIndex) {
			_linkArr[linkIndex] = $(this).data('link');
			var _link = $(this).data('link');
			if(_link!="") $(this).css('cursor', 'pointer');
			// $(this).data('index', _imageLength - holderIndex - 1);
			// console.log('this', $(this), _imageLength);
			$(this).on('click', function(event) {
					// var _target = $(this).data('target');
					// var _link = $(this).data('link');
					var _link = $(this).data('link');
					if(_link&&_link!=""){
						if(_target=="_blank"){
							window.open(_link);
						}else{
							window.location = _link;
						}
					}

			});


		});
		$('.cq-parallaximage', _this).imageScroll({
		  container: _this,
		  speed: _speed,
		  coverRatio: _coverratio,
		  holderMinHeight: _holderminheight,
          holderMaxHeight: _holdermaxheight,
          extraHeight: _extraheight,
		  coverRatio: _coverratio,
		  holderClass: 'cq-parallaximgholder',
		  // imageAttribute: (touch === true) ? 'image-mobile' : 'image',
		  touch: touch
		});

		// $(window).on('resize', function(event) {
		// 	_this.find('.cq-parallaximgholder').css({
		// 		'width': _this.width()
		// 	});
		// });
		// $(window).trigger('resize');
		var _imageLength = $('.cq-parallaximage', _this).length;
		$('.cq-parallaximgholder', _this).each(function(holderIndex) {
			if(_linkArr[holderIndex]!="") $(this).css('cursor', 'pointer');
			$(this).data('index', _imageLength - holderIndex - 1);
			$(this).on('click', function(event) {
					var _link = _linkArr[$(this).data('index')];
					if(_link&&_link!=""){
						if(_target=="_blank"){
							window.open(_link);
						}else{
							window.location = _link;
						}
					}

			});
		});



	});



});