1var _____WB$wombat$assign$function_____=function(name){return (globalThis._wb_wombat && globalThis._wb_wombat.local_init && globalThis._wb_wombat.local_init(name))||globalThis[name];};if(!globalThis.__WB_pmw){globalThis.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{ 2let window = _____WB$wombat$assign$function_____("window"); 3let self = _____WB$wombat$assign$function_____("self"); 4let document = _____WB$wombat$assign$function_____("document"); 5let location = _____WB$wombat$assign$function_____("location"); 6let top = _____WB$wombat$assign$function_____("top"); 7let parent = _____WB$wombat$assign$function_____("parent"); 8let frames = _____WB$wombat$assign$function_____("frames"); 9let opener = _____WB$wombat$assign$function_____("opener"); 10// Inside the function "this" will be "document" when called by ready() 11// and "the ajaxed element" when called because of onAjaxLoad 12var mediaboxInit = function() { 13 //console.log(box_settings); 14 var options = { 15 transition:box_settings.trans, 16 speed:box_settings.speed, 17 maxWidth:box_settings.maxW, 18 maxHeight:box_settings.maxH, 19 minWidth:box_settings.minW, 20 minHeight:box_settings.minH, 21 opacity:box_settings.opa, 22 slideshowSpeed:box_settings.ssSpeed, 23 slideshowStart:box_settings.str_ssStart, 24 slideshowStop:box_settings.str_ssStop, 25 current:box_settings.str_cur, 26 previous:box_settings.str_prev, 27 next:box_settings.str_next, 28 close:box_settings.str_close, 29 splash_url:box_settings.splash_url 30 }; 31 32 // passer le portfolio de la dist en mode galerie 33 if (box_settings.sel_g){ 34 jQuery(box_settings.sel_g, this).not('.hasbox,#colorbox') 35 .attr("onclick","") // se debarrasser du onclick de SPIP 36 .colorbox(jQuery.extend({}, options, {rel:'galerieauto',slideshow:true,slideshowAuto:false})) 37 .addClass("hasbox"); 38 } 39 40 if (box_settings.tt_img) { 41 // selectionner tous les liens vers des images 42 jQuery("a[type=\'image/jpeg\'],a[type=\'image/png\'],a[type=\'image/gif\']",this).not('.hasbox') 43 .attr("onclick","") // se debarrasser du onclick de SPIP 44 .colorbox(options) // activer la box 45 .addClass("hasbox") // noter qu\'on l\'a vue 46 ; 47 } 48 49 // charger la box sur autre chose 50 if (box_settings.sel_c){ 51 jQuery(box_settings.sel_c).not('.hasbox') 52 .colorbox(jQuery.extend({}, options, {slideshow:true,slideshowAuto:false})) 53 .addClass("hasbox") // noter qu\'on l\'a vue 54 ; 55 } 56}; 57 58/* initialiser maintenant si box_settings est deja la 59 * nb en cas de defer sur le chargement du scipt javascript principal 60 */ 61if (typeof(box_settings)!='undefined') 62 (function($){ if(typeof onAjaxLoad == "function") onAjaxLoad(mediaboxInit); $(mediaboxInit); })(jQuery); 63 64;(function ($) { 65 /* 66 * overlayClose: (Boolean:false) Allow click on overlay to close the dialog? 67 * iframe: (Boolean:false) Open box in iframe 68 * minHeight: (Number:200) The minimum height for the container 69 * minWidth: (Number:200) The minimum width for the container 70 * maxHeight: (Number:null) The maximum height for the container. If not specified, the window height is used. 71 * maxWidth: (Number:null) The maximum width for the container. If not specified, the window width is used. 72 * autoResize: (Boolean:false) Resize container on window resize? Use with caution - this may have undesirable side-effects. 73 * onOpen: (Function:null) The callback function used in place of SimpleModal's open 74 * onShow: (Function:null) The callback function used after the modal dialog has opened 75 * onClose: (Function:null) The callback function used in place of SimpleModal's close 76 */ 77 $.fn.mediabox = function (options) { 78 var cbox_options = { 79 overlayClose: true, 80 iframe: false, 81 maxWidth:box_settings.maxW, 82 maxHeight:box_settings.maxH, 83 minWidth:box_settings.minW, 84 minHeight:box_settings.minH, 85 opacity:box_settings.opa, 86 slideshowStart:box_settings.str_ssStart, 87 slideshowStop:box_settings.str_ssStop, 88 current:box_settings.str_cur, 89 previous:box_settings.str_prev, 90 next:box_settings.str_next, 91 close:box_settings.str_close, 92 onOpen: (options && options.onOpen) || null, 93 onComplete: (options && options.onShow) || null, 94 onClosed: (options && options.onClose) || null 95 }; 96
97 return this.colorbox($.extend(cbox_options,options)); 98 }; 99 $.mediaboxClose = function () {$.fn.colorbox.close();}; 100 101 // API modalbox 102 $.modalbox = function (href, options) {$.fn.mediabox($.extend({href:href,inline:href.match(/^#/),overlayClose:true},options));}; 103 $.modalboxload = function (url, options) { $.modalbox(url,options); }; 104 $.modalboxclose = $.mediaboxClose; 105 106})(jQuery); 107}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.