HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux wordpress-ubuntu-s-2vcpu-4gb-fra1-01 5.4.0-169-generic #187-Ubuntu SMP Thu Nov 23 14:52:28 UTC 2023 x86_64
User: root (0)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //proc/1526/task/13134/cwd/lipovac/wp-content/plugins/Ultimate_VC_Addons/assets/js/video-banner.js
(function(a) {
    a(document).ready(function() {
        var b = "";
        a(".ult-video-banner").each(function(g, e) {
            var k = a(e).attr("id");
            var h = a(e).data("current-time");
            var j = a(e).data("placeholder");
            var d = 0;
            a(e).find("video").get(0).addEventListener("canplay", function() {
                if (d >= 1) {
                    return false
                }
                a(e).find("video").get(0).currentTime = h;
                a(e).find("video").get(0).pause();
                d++
            });
            var f = a(e).find(".ult-video-banner-overlay").data("overlay");
            var c = a(e).find(".ult-video-banner-overlay").data("overlay-hover");
            if (f != "") {
                b += "#" + k + " .ult-video-banner-overlay { background:" + f + " }"
            }
            if (c != "") {
                b += "#" + k + ".ult-vb-touch-start .ult-video-banner-overlay { background:" + c + " }"
            }
        });
        if (b != "") {
            a("head").append("<style>" + b + "</style>")
        }
        a(document).on("mouseover", ".ult-video-banner", function() {
            a(this).addClass("ult-vb-touch-start");
            a(this).find("video").get(0).play()
        });
        a(document).on("mouseout", ".ult-video-banner", function() {
            a(this).removeClass("ult-vb-touch-start");
            a(this).find("video").get(0).pause()
        });
        a(document).on("touchstart", ".ult-video-banner", function() {
            if (a(this).hasClass("ult-vb-touch-start")) {
                a(this).removeClass("ult-vb-touch-start");
                a(this).find("video").get(0).pause();
                return false
            }
            a(this).addClass("ult-vb-touch-start");
            a(this).find("video").get(0).play()
        })
    })
}(jQuery));