✏️ 正在编辑: video.js
路径:
/home/h359620/public_html/wp-content/themes/datis/inc/elementor/widgets/datis_video/js/video.js
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
jQuery(window).on("elementor/frontend/init", (function () { elementorFrontend.hooks.addAction("frontend/element_ready/datis_video.default", (function (t, a) { const o = t.find(".datis-play-btn"), e = a(".datis-video-modal"), d = a("#datis-video-popup-player"); a(".datis-video-close"); o.on("click", (function () { const t = a(this).data("video"), o = a(this).data("autoplay") ? "autoplay" : "", n = a(this).data("loop") ? "loop" : "", i = a(this).data("muted") ? "muted" : "", l = a(this).data("controls") ? "controls" : ""; d.attr("src", t).attr("autoplay", o).attr("loop", n).attr("muted", i).attr("controls", l), e.css("display", "flex").hide().fadeIn() })), e.on("click", (function (t) { (t.target === this || a(t.target).hasClass("datis-video-close")) && (d.trigger("pause").attr("src", ""), e.fadeOut()) })) })) }));
💾 保存文件
← 返回文件管理器