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/userprofile/js/init.js
jQuery(document).ready(function($) {
    $('.cq-userprofile').each(function(index) {
        var _this = $(this);
        var _autoslide = parseInt(_this.data('autoslide'), 10);

        $('.cq-userprofile-btn', _this).on('click', function(event) {
          // $('.cq-userprofile-content', _this).css('z-index', '999');
          $(this).toggleClass('active');
          // $('.cq-userprofile-content', _this).toggleClass('open');
          return $('.cq-userprofile-iconcontainer', _this).toggleClass('open');

        });
        var _autoslideID = 0;
        function _autoToggle(){
            if(_autoslide>0){
                _autoslideID = setTimeout(function(){
                    clearTimeout(_autoslideID);
                    $('.cq-userprofile-btn', _this).trigger('click');
                    _autoToggle();
                }, _autoslide*1000);
            }
        }
        if(_autoslide>0) _autoToggle();

        _this.on('mouseover', function(event) {
            clearTimeout(_autoslideID);
            event.preventDefault();
        }).on('mouseleave', function(event) {
            event.preventDefault();
            if(_autoslide>0) _autoToggle();
        });


        $('.cq-userprofile-buttonlink', _this).each(function(index) {
        	var _title = $(this).data('icontooltip');
        	if(_title!=""){
        		$(this).tooltipster({
		          content: _title,
		          position: 'top',
		          // autoClose: false,
		          // offsetX: _offsetx,
		          // offsetY: _offsety,
		          // maxWidth: _maxwidth,
		          delay: 100,
		          speed: 300,
		          touchDevices: false,
		          interactive: true,
		          animation: 'grow',
		          theme: 'tooltipster-shadow',
		          contentAsHTML: true
		          // theme   : 'tooltipster-' + _tooltipstyle,
		        });
        	}

        });

        $('.cq-userprofile-avatar', _this).each(function(index) {
            var _title = $('.cq-userprofile-avatarlink', $(this)).data('avatartooltip');
            if(_title!=""){
                $(this).tooltipster({
                  content: _title,
                  position: 'top',
                  // autoClose: false,
                  // offsetX: _offsetx,
                  // offsetY: _offsety,
                  // maxWidth: _maxwidth,
                  delay: 100,
                  speed: 300,
                  touchDevices: false,
                  interactive: true,
                  animation: 'grow',
                  theme: 'tooltipster-shadow',
                  contentAsHTML: true
                  // theme   : 'tooltipster-' + _tooltipstyle,
                });
            }

        });



        var _avatar = $('.cq-userprofile-avatar', _this)[0];

        if(_avatar == undefined || _avatar == null){
        	$('.cq-userprofile-content', _this).css({
        		'padding-left': '16px',
        		'width': '100%'
        	});
        }

    });

});