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/videocover/js/init.js
jQuery(document).ready(function($) {
    $('.cq-videocover-lightbox, .cq-videocover-imglightbox').each(function(index) {
    	var _videowidth = $(this).data('videowidth') == "" ? 800 : parseInt($(this).data('videowidth'))
    	if($(this).attr('href')!=""){
			$(this).lightbox({
	        	// "viewportFill": 1
	        	"fixed": true,
	        	"margin": 10,
	        	"videoWidth": _videowidth,
	        	// "retina": true,
	        	// "mobile": true,
	        	"minWidth": 320
	        });
    	}
    });
    $('.cq-videocover').each(function(index, el) {
    	var _iconsize = $(this).data('iconsize');
    	var _iconbgsize = $(this).data('iconbgsize');
    	var _iconcolor = $(this).data('iconcolor');
    	var _iconbgcolor = $(this).data('iconbgcolor');
        var _iconposition = $(this).data('iconposition');
        var _imagetooltip = $(this).data('tooltip');
        var _tooltip = null;
        if(_imagetooltip!=""){
            if(_iconposition=="center"){
                _tooltip = $(this).tooltipster({
                    content: _imagetooltip,
                    position: 'top',
                    offsetY: '-4',
                    delay: 200,
                    speed: 300,
                    touchDevices: true,
                    interactive: false,
                    animation: 'fade',
                    theme: 'tooltipster-shadow',
                    contentAsHTML: true
                });

            }else{
                _tooltip = $('.cq-videocover-iconcontainer', $(this)).tooltipster({
                    content: _imagetooltip,
                    position: 'top',
                    offsetY: '-4',
                    delay: 200,
                    speed: 300,
                    touchDevices: true,
                    interactive: false,
                    animation: 'fade',
                    theme: 'tooltipster-shadow',
                    contentAsHTML: true
                });

            }

            $(this).on('click', function(event) {
                if(_tooltip) _tooltip.tooltipster('hide');

            });
        }
    	if(_iconsize!=""){
    		$(this).find('.cq-videocover-icon, .cq-videocover-label').css({
    			'font-size': _iconsize
    		});
    	}
    	if(_iconbgsize!=""){
    		_iconbgsize = parseInt(_iconbgsize) + 'px';
    		$(this).find('.cq-videocover-iconcontainer').css({
    			'width': _iconbgsize,
    			'height': _iconbgsize
    		});
    		$(this).find('.cq-videocover-icon, .cq-videocover-label').css({
    			'line-height': _iconbgsize
    		})
    	}

    	if(_iconcolor!=""){
    		$(this).find('.cq-videocover-icon, .cq-videocover-label').css({
    			'color': _iconcolor
    		});
    	}
    	if(_iconbgcolor!=""){
    		$(this).find('.cq-videocover-iconcontainer').css({
    			'background-color': _iconbgcolor
    		});
    	}

    	// $(this).on('mouseover', function(event) {
    	// 	$(this).find('.cq-videocover-iconcontainer').addClass('animated zoomIn');
    	// }).on('mouseleave', function(event) {
    	// 	$(this).find('.cq-videocover-iconcontainer').removeClass('zoomIn');
    	// });


    });
});