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/dagallery/js/jquery.gallery.js
// jQuery(document).ready(function(jQuery) {
	jQuery('.cq-dagallery').each(function() {
		// jQuery(this).parent('.cq-dagallery-container').css({
		// 	'width': _gallerywidth
		// });
		var _width = jQuery(this).data('width');
		var _gallerywidth = jQuery(this).data('gallerywidth');
		var _height = jQuery(this).data('height');
		var _opacity = jQuery(this).data('opacity');
		var _margin = jQuery(this).data('margin');
		jQuery(this).find('a.normal').boxer({
	        fixed : true
	    });
		// var _background = jQuery(this).data('background');
		jQuery(this).find('li').each(function(index) {
			var _background = jQuery(this).find('.dagallery-info').css('backgroundColor');
			var _color = jQuery(this).find('.dagallery-info').css('color');
		    var _newColor = _color.replace('rgb', 'rgba').replace(')', ','+_opacity+')'); //rgba(100,100,100,.8)
		    var _newBg = _background.replace('rgb', 'rgba').replace(')', ','+_opacity+')'); //rgba(100,100,100,.8)
		    jQuery(this).find('.dagallery-info').css({
		    	'backgroundColor': _newBg
		    });
		    jQuery(this).find('.dagallery-info h3, .dagallery-info p').css({
		    	'color': _color
		    });
			var _imgHeight = jQuery(this).data('height');
			jQuery(this).css({
				// margin: _margin,
				width: _width,
				height: _height
			}).on('mouseover', function(event) {
				// jQuery(this).find('.dagallery-info').css({
					// width: _width,
					// height: _imgHeight
				// });
				var w = jQuery(this).width(),
		        h = jQuery(this).height(),
		        x = (event.pageX - jQuery(this).offset().left - (w / 2) * (w > h ? (h / w) : 1)),
		        y = (event.pageY - jQuery(this).offset().top - (h / 2) * (h > w ? (w / h) : 1)),
		        d = Math.round( Math.atan2(y, x) / 1.57079633 + 5 ) % 4;
		        var class_suffix = '';
		        switch ( d ) {
			        case 0 : class_suffix = '-top';    break;
			        case 1 : class_suffix = '-right';  break;
			        case 2 : class_suffix = '-bottom'; break;
			        case 3 : class_suffix = '-left';   break;
			    }
			    jQuery(this).removeClass().addClass('in'+class_suffix);
				event.preventDefault();
			});

			jQuery(this).on('mouseout', function(event) {
				jQuery(this).removeClass();
				var w = jQuery(this).width(),
		        h = jQuery(this).height(),
		        x = (event.pageX - jQuery(this).offset().left - (w / 2) * (w > h ? (h / w) : 1)),
		        y = (event.pageY - jQuery(this).offset().top - (h / 2) * (h > w ? (w / h) : 1)),
		        d = Math.round( Math.atan2(y, x) / 1.57079633 + 5 ) % 4;
		        var class_suffix = '';
		        switch ( d ) {
			        case 0 : class_suffix = '-top';    break;
			        case 1 : class_suffix = '-right';  break;
			        case 2 : class_suffix = '-bottom'; break;
			        case 3 : class_suffix = '-left';   break;
			    }
			    jQuery(this).removeClass().addClass('out'+class_suffix);
				event.preventDefault();
			});

		});

	});



// });