HEX
Server: Apache
System: Linux webd011.cluster130.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
User: ezpgggd (105871)
PHP: 7.4.33
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/ezpgggd/www/wp-content/plugins/modula/assets/js/misc/modula-link.js
!function(o){function t(t){var i,n=this,e=!1;if(this.$el=o(t),this.images=this.$el.data("images"),this.config=this.$el.data("config"),0!=this.config&&this.config){var c=jQuery.map(this.images,(function(o){return{src:o.src,opts:{caption:o.opts.caption,thumb:o.opts.thumb,image_id:o.opts.image_id}}}));this.config.lightboxOpts.beforeLoad=function(){jQuery(document).trigger("modula_link_fancybox_lightbox_before_load",[n,this])},this.config.lightboxOpts.afterLoad=function(){jQuery(document).trigger("modula_link_fancybox_lightbox_after_load",[n,this])},this.config.lightboxOpts.beforeShow=function(){jQuery(document).trigger("modula_link_fancybox_lightbox_before_show",[n,this])},this.config.lightboxOpts.afterShow=function(){jQuery(document).trigger("modula_link_fancybox_lightbox_after_show",[n,this])},this.config.lightboxOpts.beforeClose=function(){jQuery(document).trigger("modula_link_fancybox_lightbox_before_close",[n,this])},this.config.lightboxOpts.afterClose=function(){jQuery(document).trigger("modula_link_fancybox_lightbox_after_close",[n,this])},this.config.lightboxOpts.onInit=function(){jQuery(document).trigger("modula_link_fancybox_lightbox_on_init",[n,this])},this.config.lightboxOpts.onActivate=function(){jQuery(document).trigger("modula_link_fancybox_lightbox_on_activate",[n,this])},this.config.lightboxOpts.onDeactivate=function(){jQuery(document).trigger("modula_link_fancybox_lightbox_on_deactivate",[n,this])},this.$el.click((function(t){t.preventDefault(),void 0!==o.modulaFancybox&&o.modulaFancybox.open(c,n.config.lightboxOpts)})),o(document).trigger("modula_link_api_after_init",[n]),void 0!==n.config.lightboxOpts.copyCaptionMobile&&"1"==n.config.lightboxOpts.copyCaptionMobile&&jQuery(document).on("click","html body .modula-fancybox-container .modula-fancybox-caption__body",(function(t){if(e){clearTimeout(i),e=!1;let t=o(this).find(".modula-caption-description").text();navigator.clipboard.writeText(t).then((function(){console.log("Text copied to clipboard")})).catch((function(o){console.error("Could not copy text: ",o)}))}else e=!0,i=setTimeout((function(){e=!1}),300)}))}}t.prototype.open=function(t){void 0!==o.modulaFancybox&&o.modulaFancybox.open(this.images,this.config.lightboxOpts,t)},o.fn.modulaLink=function(){new t(this)}}(jQuery),jQuery(document).ready((function(o){var t=o(".modula-link");o.each(t,(function(){o(this).modulaLink()}))}));