Server : Apache System : Linux webd348.cluster026.gra.hosting.ovh.net 5.15.148-ovh-vps-grsec-zfs-classid #1 SMP Thu Feb 8 09:41:04 UTC 2024 x86_64 User : hednacluml ( 122243) PHP Version : 8.3.9 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl Directory : /home/hednacluml/universe/plugins-dist/mediabox/javascript/ |
jQuery(function($){ // poser le cookie au callback de la box chargee var set_cookie = function() { Cookies.set("modalsplash", mediabox_settings.splash_url, { expires: mediabox_settings.splash_days || 7 }); } $.modalboxsplash = function(href, options) { if (mediabox_settings.splash_iframe) { options = $.extend({ type: 'iframe', width: mediabox_settings.splash_width || '', height: mediabox_settings.splash_height || '' }, options); } options = $.extend({className: 'splashbox'}, options); $.modalbox(href,$.extend({onShow:set_cookie},options)); }; // ouvrir la splash page si pas deja vue if (Cookies.get("modalsplash") != mediabox_settings.splash_url) { $.modalboxsplash(mediabox_settings.splash_url); } });