File "splash.mediabox.js"
Full path: /home/argothem/www/v4_old/plugins-dist/mediabox/javascript/splash.mediabox.js
File size: 748 bytes
MIME-type: text/plain
Charset: utf-8
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);
}
});