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/videocard/js/init.js
jQuery(document).ready(function($) {

    $('.cq-videocard').each(function(index) {
        var _this = $(this);
        var _elementheight = parseInt($(this).data('elementheight'), 10);
        var _videoURL = $(this).data('videourl');
        var _autoplay = $(this).data('autoplay');
        var _showbar = $(this).data('showbar');
        var _ismute = $(this).data('mute');
        var _isloop = $(this).data('isloop');
        // var _islogo = $(this).data('islogo');
        var _startat = $(this).data('startat') || 0;
        var _stopat = $(this).data('stopat');
        var _videoquality = $(this).data('videoquality');
        var _videovolume = $(this).data('videovolume') || 50;
        var _opacity = $(this).data('opacity');
        var _avatarsize = parseInt($(this).data('avatarsize'), 10);
        var _namecolor = $(this).data('namecolor');
        var _namesize = $(this).data('namesize');
        var _iconcolor = $(this).data('iconcolor');
        var _iconbgcolor = $(this).data('iconbgcolor');
        var _labelsize = $(this).data('labelsize');
        var _labelcolor = $(this).data('labelcolor');
        var _extrainfosize = $(this).data('extrainfosize');
        var _extrainfocolor = $(this).data('extrainfocolor');
        if(_extrainfocolor!=""){
            $('.cq-videocard-extra', _this).css('color', _extrainfocolor);
        }
        if(_extrainfosize!=""){
            $('.cq-videocard-extra', _this).css('font-size', _extrainfosize);
        }
        if(_namecolor!=""){
            $('.cq-videocard-avatarname', _this).css('color', _namecolor);
        }
        if(_labelsize!=""){
            $('.cq-videocard-avatarlabel', _this).css('font-size', _labelsize);
        }
        if(_labelcolor!=""){
            $('.cq-videocard-avatarlabel', _this).css('color', _labelcolor);
        }
        if(_iconcolor!=""){
            $('.cq-videocard-icon', _this).css('color', _iconcolor);
        }
        if(_iconbgcolor!=""){
            $('.cq-videocard-icon', _this).css('background-color', _iconbgcolor);
        }
        if(_namesize!=""){
            $('.cq-videocard-avatarname', _this).css('font-size', _namesize);
        }
        // var _ratio = $(this).data('ratio');
        if(_elementheight!=""&&_elementheight>0){
            _this.css('height', _elementheight);
        }
        if(_avatarsize!=""&&_avatarsize>0){
            $('.cq-videocard-avatar', _this).css({
                width: _avatarsize,
                height: _avatarsize,
                'border-radius': _avatarsize
            });
            $('.cq-videocard-icon', _this).css({
                width: _avatarsize,
                height: _avatarsize,
                'font-size': _avatarsize*0.5 + 'px',
                'line-height': _avatarsize + 'px'
            });
        }
        var _player = jQuery(".cq-videocard-video", _this).YTPlayer({
            videoURL: _videoURL,
            // ratio: _ratio,
            vol: _videovolume,
            containment: 'self',
            showControls: _showbar,
            autoPlay: _autoplay,
            mute: _ismute,
            loop: _isloop,
            startAt: _startat,
            stopAt: _stopat,
            quality: _videoquality,
            opacity: _opacity,
            // showYTLogo: _islogo,
            stopMovieOnBlur: false

            // videoURL: 'https://youtu.be/kFXxrOy6qc0',
            // containment: 'self',
            // autoPlay: true,
            // mute: false,
            // startAt: 0,
            // opacity: .5,
            // showYTLogo: false,
            // stopMovieOnBlur: false
        });
        // var filters = {
        //       grayscale: 100,
        //       sepia: 50,
        //       hue_rotate : 220
        // }
        // _player.YTPApplyFilters(filters)

        // setTimeout(function () {
        //     $('#card').addClass('hover');
        // }, 2000);

        // setTimeout(function () {
        //     $('#card').removeClass('hover');
        // }, 5000);
        // var _isPaused = false;
        // jQuery('.cq-videocard-video', _this).on('click', function(event) {
        //     // $.fn.YTPPause();
        //     if($(event.target).is('.buttonBar')) {
        //         return;
        //     }

        //     if(!_isPaused){
        //         _isPaused = true;
        //         _player.YTPPause();
        //     }else{
        //         _isPaused = false;
        //         _player.YTPPlay();
        //     }
        //     // jQuery("#bgndVideo").YTPPause();
        //     // event.preventDefault();
        // });

    });

});