2 // poser le cookie au callback de la box chargee
3 var set_cookie = function() {
4 Cookies
.set("modalsplash", box_settings
.splash_url
, { expires
: 7 });
7 $.modalboxsplash = function(href
, options
) {
8 if (box_settings_iframe
) {
9 $.fn
.mediabox($.extend({
11 onComplete
:set_cookie
,
14 width
: box_settings_splash_width
,
15 height
: box_settings_splash_height
18 $.fn
.mediabox($.extend({
20 onComplete
:set_cookie
,
25 // ouvrir la splash page si pas deja vue
26 if (Cookies
.get("modalsplash") != box_settings
.splash_url
) {
27 $.modalboxsplash(box_settings
.splash_url
);