BossBey File Manager
PHP:
8.2.30
OS:
Linux
User:
imagivibe
Root
/
home
/
imagivibe
/
www
/
wp-content
/
plugins
/
porto-functionality
/
shortcodes
/
assets
/
js
📤 Upload
📝 New File
📁 New Folder
Close
Editing: video-bg.min.js
(function(t,i){"use strict";t=t||{};var e="__videobackground",n=function(t,i){return this.initialize(t,i)};n.defaults={overlay:!0,volume:1,playbackRate:1,muted:!0,loop:!0,autoplay:!0,position:"50% 50%",posterType:"detect"},n.prototype={initialize:function(t,i){return this.$el=t,this.setData().setOptions(i).build(),this},setData:function(){return this.$el.data(e,this),this},setOptions:function(t){return this.options=i.extend(!0,{},n.defaults,t,{path:this.$el.data("video-path"),wrapper:this.$el}),this},build:function(){return i.fn.vide&&this.options.path?(this.options.overlay&&this.options.wrapper.prepend(i("<div />").addClass("video-overlay")),this.options.wrapper.vide(this.options.path,this.options),this):this}},i.extend(t,{PluginVideoBackground:n}),i.fn.themePluginVideoBackground=function(t){return this.map((function(){var o=i(this);return o.data(e)?o.data(e):new n(o,t)}))}}).apply(this,[window.theme,jQuery]),function(t,i){(i=i||{}).isReady&&t.fn.themePluginVideoBackground&&t("[data-plugin-video-background]:not(.manual)").each((function(){var e,n=t(this),o=i.getOptions(n.data("plugin-options"));o&&(e=o),n.themePluginVideoBackground(e)})),t(document.body).on("porto_init",(function(e,n){t.fn.themePluginVideoBackground&&n.find("[data-plugin-video-background]:not(.manual)").each((function(){var e,n=t(this),o=i.getOptions(n.data("plugin-options"));o&&(e=o),n.find(".video-overlay").length&&(n.find(".video-overlay").prev().remove(),n.find(".video-overlay").remove(),n.removeData("__videobackground")),n.themePluginVideoBackground(e)}))}))}(window.jQuery,window.theme);
Save
Cancel