Publié le

Découvrez la puissance de la gratitude :-)

';iframe=document.createElement(el);setProps(options)}function resizeend(){if(new Date()-rtimewidthDelta){var newHeight=parseInt(jQuery('#'+props.id+'-wrapper').height());$('#'+props.id+'-wrapper iframe')[0].src=$('#'+props.id+'-wrapper iframe')[0].src.replace(/outer_width=[0-9]+/,'outer_width='+endWidth).replace(/outer_height=[0-9]+/,'outer_height='+newHeight).replace(/width=[0-9]+/,'width='+endWidth).replace(/height=[0-9]+/,'height='+newHeight).replace(/start=([0-9]+)?/,'start='+startSlide)}startWidth=endWidth}}function load(options,ratio){setup(options);if(!container)return;try{container.appendChild(iframe);if(window.postMessage){if(window.addEventListener){window.addEventListener('message',messageHandler,false)}else if(window.attachEvent){window.attachEvent('onmessage',messageHandler)}}else{setInterval(function(){var hash=window.location.hash,matches=hash.match(/^#message(.*)$/);if(matches){setHeight(matches[1])}},debounceMilliseconds)}}catch(ey){}if(proportional){jQuery(window).bind('resize',function(event){jQuery('#'+props.id+'-wrapper').css('height',parseInt(jQuery('#'+props.id+'-wrapper').width()*ratio))})}startWidth=parseInt(jQuery('#'+props.id+'-wrapper').width());$(window).resize(function(){rtime=new Date();if(timeout===false){timeout=true;setTimeout(resizeend,delta)}})}load(options,ratio)}})(jQuery);