SlideShare une entreprise Scribd logo
1  sur  27
(function($,setTimeout){function noop(){}
function genericCallback(data){lastValue=[data];}
function appendScript(node){head.insertBefore(node,head.firstChild);}
function callIfDefined(method,object,parameters){return
method&&method.apply(object.context||object,parameters);}
function qMarkOrAmp(url){return(/?/).test(url)?"&":"?";}
var
STR_ASYNC="async",STR_CHARSET="charset",STR_EMPTY="",STR_ERROR="error",STR_JQUER
Y_JSONP="_jqjsp",STR_ON="on",STR_ONCLICK=STR_ON+"click",STR_ONERROR=STR_ON+STR_E
RROR,STR_ONLOAD=STR_ON+"load",STR_ONREADYSTATECHANGE=STR_ON+"readystatechange",S
TR_REMOVE_CHILD="removeChild",STR_SCRIPT_TAG="<script/>",STR_SUCCESS="success",S
TR_TIMEOUT="timeout",browser=$.browser,head=$("head")[0]||
document.documentElement,pageCache={},count=0,lastValue,xOptionsDefaults={callba
ck:STR_JQUERY_JSONP,url:location.href};function jsonp(xOptions)
{xOptions=$.extend({},xOptionsDefaults,xOptions);var
completeCallback=xOptions.complete,dataFilter=xOptions.dataFilter,callbackParame
ter=xOptions.callbackParameter,successCallbackName=xOptions.callback,cacheFlag=x
Options.cache,pageCacheFlag=xOptions.pageCache,charset=xOptions.charset,url=xOpt
ions.url,data=xOptions.data,timeout=xOptions.timeout,pageCached,done=0,cleanUp=n
oop;xOptions.abort=function(){!done+
+&&cleanUp();};if(callIfDefined(xOptions.beforeSend,xOptions,
[xOptions])===false||done){return xOptions;}
url=url||STR_EMPTY;data=data?((typeof data)=="string"?data:
$.param(data,xOptions.traditional)):STR_EMPTY;url+=data?(qMarkOrAmp(url)
+data):STR_EMPTY;callbackParameter&&(url+=qMarkOrAmp(url)
+encodeURIComponent(callbackParameter)+"=?");!cacheFlag&&!
pageCacheFlag&&(url+=qMarkOrAmp(url)+"_"+(new Date()).getTime()
+"=");url=url.replace(/=?(&|$)/,"="+successCallbackName+"$1");function
notifySuccess(json){!done++&&setTimeout(function()
{cleanUp();pageCacheFlag&&(pageCache[url]={s:
[json]});dataFilter&&(json=dataFilter.apply(xOptions,
[json]));callIfDefined(xOptions.success,xOptions,
[json,STR_SUCCESS]);callIfDefined(completeCallback,xOptions,
[xOptions,STR_SUCCESS]);},0);}
function notifyError(type){!done++&&setTimeout(function()
{cleanUp();pageCacheFlag&&type!
=STR_TIMEOUT&&(pageCache[url]=type);callIfDefined(xOptions.error,xOptions,
[xOptions,type]);callIfDefined(completeCallback,xOptions,[xOptions,type]);},0);}
pageCacheFlag&&(pageCached=pageCache[url])?(pageCached.s?
notifySuccess(pageCached.s[0]):notifyError(pageCached)):setTimeout(function(scri
pt,scriptAfter,timeoutTimer){if(!done)
{timeoutTimer=timeout>0&&setTimeout(function()
{notifyError(STR_TIMEOUT);},timeout);cleanUp=function()
{timeoutTimer&&clearTimeout(timeoutTimer);script[STR_ONREADYSTATECHANGE]=script[
STR_ONCLICK]=script[STR_ONLOAD]=script[STR_ONERROR]=null;head[STR_REMOVE_CHILD]
(script);scriptAfter&&head[STR_REMOVE_CHILD]
(scriptAfter);};window[successCallbackName]=genericCallback;script=$
(STR_SCRIPT_TAG)[0];script.id=STR_JQUERY_JSONP+count++;if(charset)
{script[STR_CHARSET]=charset;}
function callback(result){(script[STR_ONCLICK]||noop)
();result=lastValue;lastValue=undefined;result?
notifySuccess(result[0]):notifyError(STR_ERROR);}
if(browser.msie)
{script.event=STR_ONCLICK;script.htmlFor=script.id;script[STR_ONREADYSTATECHANGE
]=function(){/loaded|
complete/.test(script.readyState)&&callback();};}else{script[STR_ONERROR]=script
[STR_ONLOAD]=callback;browser.opera?((scriptAfter=$(STR_SCRIPT_TAG)
[0]).text="jQuery('#"+script.id+"')
[0]."+STR_ONERROR+"()"):script[STR_ASYNC]=STR_ASYNC;;}
script.src=url;appendScript(script);scriptAfter&&appendScript(scriptAfter);}},0)
;return xOptions;}
jsonp.setup=function(xOptions){$.extend(xOptionsDefaults,xOptions);};
$.jsonp=jsonp;})(jQuery,setTimeout);function SSBandInteraction(config)
{this.config=config;this._init();}
SSBandInteraction.prototype._init=function(){var that=this;var
container=this.config.container;var
linksDisabled=this.config.linksDisabled;container.bind('mousedown',function(e)
{if(e.which!==1){return;}
var offset=$(this).offset();that.startX=e.pageX-
offset.left;container.bind('mouseup',function(e){var targetNode;var
target=e.target;var targetTagName=target.tagName.toUpperCase();if(linksDisabled)
{targetNode=false;}else
if(targetTagName==='SPAN'&&target.parentNode.tagName.toUpperCase()==='A')
{targetNode=target.parentNode;}else if(targetTagName==='A'||
targetTagName==='AREA'){targetNode=target;}
if(targetNode){var
hrefValue=parseInt(targetNode.attributes.href.value,10);if(isNaN(hrefValue))
{window.open(targetNode.href);}}else if(targetTagName!=='INPUT'){var offset=$
(this).offset();var endX=e.pageX-offset.left;if(Math.abs(that.startX-endX)<20){$
(that).trigger({type:'bandclick',ssData:{x:endX}});}}
container.unbind('mouseup');});});$(container).bind('click',function(e)
{e.preventDefault();});$(this).bind('bandclick',function(e)
{e.preventDefault();var x=e.ssData.x;var
bandSize=that.config.width/3;if(x<bandSize){$
(that).trigger('bandprevious');}else if(x>(bandSize*2)){$
(that).trigger('bandnext');}});};SSBandInteraction.prototype.activate=function()
{var that=this;$(this).bind('bandprevious',function()
{$.slideshareEventManager.trigger('previous');
$.slideshareEventManager.trackEvent('band_prev');});$
(this).bind('bandnext',function(){$.slideshareEventManager.trigger('next');
$.slideshareEventManager.trackEvent('band_next');});};SSBandInteraction.prototyp
e.deactivate=function(){$(this).unbind('bandprevious');$
(this).unbind('bandnext');};SSBandInteraction.prototype.destroy=function()
{};if($.slideshareEventManager===undefined){$.extend({slideshareEventManager:
{SHOUTEVENTS:
{'next':true,'previous':true,'gotoslide':true,'slidechanged':true},functions:
{'showlastscreen':function(){var
controller=this.controller;controller.displayLastScreen();},'gotofirstslide':fun
ction(){var
controller=this.controller;controller.play(1);controller.config.has_audio&&this.
trigger('slidecastseekslide',{index:1});},'next':function(){var
controller=this.controller;var currentPosition=controller.currentPosition;var
lastPosition=controller.slideCount;var
currentSlide=controller.slides[currentPosition];var
nextSlide=controller.slides[currentPosition+1];if(currentSlide.config.slideMode=
=='ytube_video'){currentSlide._pauseVideo();}
if(currentPosition===lastPosition){this.trigger('showlastscreen');}else{var
position=currentPosition+1;controller.play(position);controller.config.has_audio
&&this.trigger('slidecastseekslide',{index:position});}},'previous':function()
{var controller=this.controller;var
currentPosition=controller.currentPosition;controller.slides[currentPosition].st
op();controller.play(currentPosition-
1);controller.config.has_audio&&this.trigger('slidecastseekslide',
{index:currentPosition-1});},'gotolastslide':function(){var
controller=this.controller;var
lastPosition=controller.slideCount;controller.play(lastPosition);},'document_tou
ch_scroll':function(data)
{this.controller.currentComponentSet.slidedisplayer.manualScroll(data.delta);},'
toggleaudio':function(){var
controller=this.controller;if(controller.audioResource)
{controller.audioResource.togglePlay();}},'audioplayed':function(){var
controller=this.controller;controller.currentComponentSet.toolbar.updateAudioInt
eraction({audioPlaying:true});},'audiopaused':function(){var
controller=this.controller;controller.currentComponentSet.toolbar.updateAudioInt
eraction({audioPlaying:false});},'gotoslide':function(data){var
controller=this.controller;controller.play(data.index);
$.slideshareEventManager.trackEvent('jumptoslide');},'viewonss':function(e){var
controller=this.controller;window.open(controller.config.slideview_url,'viewer')
;},'viewfullscreen':function(e){var
controller=this.controller;controller.audioResource&&controller.audioResource.pa
use();if(controller.config.inpage_full_screen)
{controller.switchView('fullscreen');}else{window.open(controller.getFullScreenU
rl(),'viewer','width='+screen.width+',height='+screen.height);}},'leavefullscree
n':function(e){var
controller=this.controller;if(controller.config.inpage_full_screen)
{controller.switchView('normal');}else{try{window.close();}catch(exception)
{}}},'zoomin':function(e){var
controller=this.controller;controller.currentComponentSet.slidedisplayer.zoomin(
);},'zoomout':function(e){var
controller=this.controller;controller.currentComponentSet.slidedisplayer.zoomout
();},'playersearch':function(e){},'playershare':function(e)
{if(this.hostedIn==='slideview'){try{share_form_click();}catch(ex)
{}}else{this.controller.displayShareScreen();}},'metadataloaded':function(data)
{var controller=this.controller;var metaDataType=data.type;var
handlers=controller._metaDataHandlers()
[metaDataType];handlers.success.call(controller,data.json);},'metadataloadfailed
':function(data){var controller=this.controller;var metaDataType=data.type;var
handlers=controller._metaDataHandlers()
[metaDataType];handlers.failure.call(controller);this.trackRawEvent('jsplayer_de
bug',metaDataType+'_metadataloadfailed');},'width_adjusted':function(data){var
controller=this.controller;if(this.hostedIn==='slideview'&&controller.mode==='im
age')
{this.trackRawEvent('jsplayer_debug','width_adjusted',''+controller.config.id);}
},'width_not_adjusted':function(data){var
controller=this.controller;if(this.hostedIn==='slideview'&&controller.mode==='im
age')
{this.trackRawEvent('jsplayer_debug','width_not_adjusted',''+controller.config.i
d);}},'slidechanged':function(data){var slideIndex=data.index;var
controller=this.controller;var
currentPosition=controller.currentPosition;if(currentPosition===slideIndex&&!
data.force){return;}
controller.updateCurrentPosition(slideIndex);controller._load(slideIndex);contro
ller.currentComponentSet.slidedisplayer._scrollTo(slideIndex);if(slideIndex===2)
{$.slideshareEventManager.trackEvent('slidechange_2');}else
if(slideIndex===controller.slideCount)
{$.slideshareEventManager.trackEvent('slidechange_last');}
if(controller.has_lead&&(slideIndex===controller.config.form_after_slide_no+1))
{this.trigger('showleadform');}},'showleadform':function()
{if(this.controller.audioResource){this.controller.audioResource.pause();}
if(!this.controller.leadCreated)
{this.controller.currentComponentSet.leadForm.toggle();}},'showleadcta':function
(){if(this.controller.config.show_lead_cta)
{this.controller.currentComponentSet.leadcta.show();}},'leadformloaded':function
(data){this.trigger('showleadcta');if(data)
{this.controller.config.leadFormHtml=data.leadFormHtml;}},'leadcreated':function
()
{this.controller.leadCreated=true;if(this.controller.currentComponentSet.leadcta
)
{this.controller.currentComponentSet.leadcta.hide();}},'currentversionloaded':fu
nction(data){var slide=this.controller.slides[data.index];var
resourceKey=data.resourceKey;slide.updateRenderedResourceVersion(resourceKey);},
'resourceloaded':function(data){var slide=this.controller.slides[data.index];var
resourceKey=data.resourceKey;slide.updateResource(resourceKey,
{status:'cached'});if(slide.status==='failed'){return;}
var resources=slide.resources,key;for(key in resources)
{if(resources[key].cacheable===true&&resources[key].status!=='cached'){return;}}
slide.status='cached';this.trigger('slideloaded',
{index:data.index});},'resourceloadfailed':function(data){var
slide=this.controller.slides[data.index];var
resourceKey=data.resourceKey;slide.updateResource(resourceKey,
{status:'failed'});if(slide.resources[resourceKey].isCritical===true)
{slide.status='failed';this.trigger('slideloadfailed',{index:data.index});}
this.trackRawEvent('jsplayer_debug',resourceKey+'_resourceloadfailed');},'fontre
sourceloaded':function(data){var
controller=this.controller;if(controller.config.use_ssl)
{if(data.style.indexOf(".eot")!==-1)
{data.style=data.style.replace(/http:///g,'https://');}}
var styleData='<style>'+data.style+'</style>';$
(styleData).appendTo(controller.componentSets.normal.container);},'slideloaded':
function(data){var controller=this.controller;var slideIndex=data.index;var
slide=controller.slides[slideIndex];if(slide.currentViewMode.rendered)
{slide.paint();}
if(controller.startSlide===slideIndex&&window._jspl&&_jspl.pageInitTime){var
slide_info=this.controller.config.id+'_slide_'+slideIndex;this.trackValueEvent("
jsperf_"+this.hostedIn,slide_info,'',(new Date()).getTime()-
_jspl.pageInitTime);}
controller.preloadMoreIfIdle(slideIndex);},'slideloadfailed':function(data)
{controller=this.controller;var
slide=controller.slides[data.index];if(slide.currentViewMode.rendered){var
width=slide.currentViewMode.width;var
height=slide.currentViewMode.height;slide.displayError(controller.generateErrorD
om('slide_error_template',{width:width,height:height}));}
controller.preloadMoreIfIdle(data.index);var
slide_info=this.controller.config.id+'_slide_'+data.index;this.trackRawEvent('js
player_debug','slideloadfailed',slide_info);},'videoloadfailed':function()
{this.trackRawEvent('jsplayer_debug','videoloadfailed');},'slideloading':functio
n(data){var controller=this.controller;var
slide=controller.slides[data.index];var
loadingSlides=controller.loadingSlides;if(loadingSlides.indexOf(data.index)===-
1){controller.loadingSlides.push(data.index);}
if(slide.currentViewMode.rendered){slide.displayLoading();}
if(controller.currentPosition===data.index)
{this.trackRawEvent('jsplayer_debug','current_slide_loading');}},'audioloaded':f
unction(data){var controller=this.controller;var
audioResource=controller.audioResource;audioResource&&audioResource.triggerPlayP
rogress();audioResource.soundLoadHandler=function()
{};controller.currentComponentSet.toolbar.updateAudioInteraction({audioReady:tru
e});},'audiometaloaded':function(data){var controller=this.controller;var
audioResource=controller.audioResource;audioResource.slidePositions=data.transit
ions||
{};audioResource.metaDataReady=true;audioResource._trySoundCreation();controller
.currentComponentSet.toolbar.updateAudioInteraction({audioMetaReady:true});var
audiobar=controller.currentComponentSet.audiobar;audiobar&&(audiobar.resource=au
dioResource)&&audiobar.renderMarkers();
(controller.currentPosition>0)&&audiobar.updateCurrentPosition(controller.curren
tPosition);},'audioloadfailed':function(data)
{this.trackRawEvent('jsplayer_debug','audioloadfailed');},'audiometaloadfailed':
function(data)
{this.trackRawEvent('jsplayer_debug','audiometaloadfailed');},'updateaudioprogre
ss':function(data){var
audiobar=this.controller.currentComponentSet.audiobar;audiobar&&audiobar.updateP
rogress(data.milliseconds);},'updateaudiobuffer':function(data){var
audiobar=this.controller.currentComponentSet.audiobar;audiobar&&audiobar.updateB
uffer(data.milliseconds);},'updateaudiomarker':function(data){var
audiobar=this.controller.currentComponentSet.audiobar;audiobar&&audiobar.updateC
urrentPosition(data.index);},'slidecastseekslide':function(data){var
pos=data.index||1;var
audioResource=this.controller.audioResource;if(audioResource){var
slidePositions=audioResource.slidePositions||{};var
audioPos=(slidePositions[pos]||
0)*1000;audioResource.setPosition(audioPos);audioResource.triggerPlayProgress();
}
this.trigger('gotoslide',{index:pos});},'showvolumecontrol':function(data){var
toolbar=this.controller.currentComponentSet.toolbar;var
triggerLeftOffset=data&&data.currentTarget&&(data.currentTarget.offsetLeft-
4);toolbar&&toolbar.volumeControl&&toolbar.volumeControl.show(triggerLeftOffset)
;},'hidevolumecontrol':function(data){var
toolbar=this.controller.currentComponentSet.toolbar;toolbar&&toolbar.volumeContr
ol&&toolbar.volumeControl.hide();},'changevolume':function(data){var
audioResource=this.controller.audioResource;audioResource&&audioResource.changeV
olume(data.volume);},'volumechanged':function(data){var
toolbar=this.controller.currentComponentSet.toolbar;toolbar&&toolbar.volumeContr
ol&&toolbar.volumeControl.setVolume(data.volume);},'repaint':function(data)
{this.controller.repaint();}},registerController:function(controller)
{this.controller=controller;},registerPlayer:function(player){this.player=$
(player);},registerEnvironment:function(hostedIn)
{hostedIn=hostedIn||'slideshare';this.hostedIn=hostedIn;},trigger:function(event
name,data){var that=this;if(this.functions[eventname]!==undefined)
{this.functions[eventname].call(this,data);}
if(this.SHOUTEVENTS[eventname])
{this.player.trigger({type:eventname,ssData:data});}},trackEvent:function(label)
{if(window._gaq!==undefined)
{window._gaq.push(['_trackEvent','jsplayer',this.hostedIn,label]);}},trackRawEve
nt:function(category,action,label){if(window._gaq!==undefined)
{window._gaq.push(['_trackEvent',category,action,label]);}},trackValueEvent:func
tion(category,action,optional_label,optional_value){if(window._gaq!==undefined)
{window._gaq.push(['_trackEvent',category,action,optional_label,optional_value])
;}}}});}
function SSLastScreen(config)
{this.config=config;this.html=config.settings.html;this.related=this.config.sett
ings.related;this.relatedPerScreen=2;this.relatedScreenIndex=0;this._init();}
SSLastScreen.prototype._init=function()
{};SSLastScreen.prototype.show=function(dimensions){if(this.overlay!==undefined)
{return;}
this.overlay=$('<div/>').css({width:'100%',height:'100%','background-
color':'black',opacity:0.75,position:'absolute',top:0,left:0}).appendTo(this.con
fig.renderTo);this.lastScreen=$
('<div/>').addClass('lastScreenContainer').html(this.html).appendTo(this.config.
renderTo);this.setDimensions(dimensions);this.populateTemplate();this.bindEvents
();};SSLastScreen.prototype.populateTemplate=function()
{this.lastScreen.find('.lastScreenEmbedCode').val(this.config.embed_code);this.l
astScreen.find('.lastScreenSSUrl').val(this.config.settings.url);this.populateRe
lated(0,this.lastScreen.find('.relatedPresentation
ul>li.relatedContent'));};SSLastScreen.prototype.populateRelated=function(index,
elements){var i,j,start,end;var template,relatedItem;var
trackRelatedClick=function()
{$.slideshareEventManager.trackEvent('lastscreen_relatedclick');};start=this.rel
atedPerScreen*index;if(start>this.related.length){return;}
end=start+this.relatedPerScreen-
1;this.relatedScreenIndex=index;for(i=start,j=0;i<=end;i++,j++)
{relatedItem=this.related[i];template=$(elements[j]);if(typeof
relatedItem==='undefined')
{template.hide();}else{template.show();template.find('.relatedThumb
img').attr('src',relatedItem.thumbnail);template.find('.relatedThumb').attr('hre
f',relatedItem.url);template.find('.relatedTitle').text(relatedItem.title).attr(
'href',relatedItem.url);template.find('.relatedAuthor').text(relatedItem.author)
.attr('href','/'+relatedItem.author_login);template.find('.relatedViews').text(r
elatedItem.views);template.unbind('click');template.bind('click',trackRelatedCli
ck);}}
this.rebindRotateTimeout();};SSLastScreen.prototype.rotateRelated=function(direc
tion){var relatedElems=this.lastScreen.find('.relatedPresentation
ul>li.relatedContent');var newIndex;if(direction==='back')
{newIndex=this.relatedScreenIndex-1;if(newIndex<0)
{newIndex=(parseInt((this.related.length-
1)/this.relatedPerScreen,10));}}else{newIndex=this.relatedScreenIndex+1;if(newIn
dex>(parseInt((this.related.length-1)/this.relatedPerScreen,10))){newIndex=0;}}
this.populateRelated(newIndex,relatedElems);};SSLastScreen.prototype.rebindRotat
eTimeout=function(){var that=this;if(this.rotateIntervalId)
{clearTimeout(this.rotateIntervalId);}
this.rotateIntervalId=setTimeout(function()
{that.rotateRelated('front');},3000);};SSLastScreen.prototype.destroy=function()
{if(this.rotateIntervalId){clearTimeout(this.rotateIntervalId);}
if(this.overlay){this.overlay.remove();delete(this.overlay);}
if(this.lastScreen)
{this.lastScreen.remove();delete(this.lastScreen);}};SSLastScreen.prototype.bind
Events=function(){var
that=this;this.lastScreen.find('.close').bind('click',function(e)
{e.preventDefault();that.destroy();});this.lastScreen.find('input[type=text]').b
ind('focus',function(){if($(this).hasClass('lastScreenEmbedCode'))
{$.slideshareEventManager.trackEvent('lastscreen_embedclick');}});this.lastScree
n.find('.lastScreenEmailShare').bind('click',function(e)
{e.preventDefault();that.destroy();
$.slideshareEventManager.trigger('playershare');
$.slideshareEventManager.trackEvent('lastscreen_share');});this.lastScreen.find(
'.lastScreenReplay').bind('click',function(e){e.preventDefault();that.destroy();
$.slideshareEventManager.trigger('gotofirstslide');
$.slideshareEventManager.trackEvent('lastscreen_replay');});this.lastScreen.find
('.lastScreenNext').bind('click',function(e)
{e.preventDefault();that.rotateRelated('front');});this.lastScreen.find('.lastSc
reenPrev').bind('click',function(e)
{e.preventDefault();that.rotateRelated('back');});this.lastScreen.find('input[ty
pe=text]').bind('click',function(e)
{this.select();});};SSLastScreen.prototype.setDimensions=function(dimensions)
{if(this.lastScreen===undefined){return;}
this.lastScreen.css({height:dimensions.height,width:dimensions.width});};functio
n SSLeadCTA(config){this.config=config;this.image_width=103;this._init();}
SSLeadCTA.prototype._init=function(){this.lead_cta_div=$
('<div/>').addClass('lead_cta_div').css({'left':
(this.config.renderTo.width()/2)-
this.image_width/2}).html(this.config.html).appendTo(this.config.renderTo);if(th
is.config.has_audio){this.lead_cta_div.css({'bottom':54});}
this.cta_link=$
('#lead_cta',this.lead_cta_div);this.deactivate();};SSLeadCTA.prototype._bindEve
nts=function(){this.cta_link.unbind('click').bind('click',function(e)
{e.preventDefault();e.stopPropagation();
$.slideshareEventManager.trigger('showleadform');});};SSLeadCTA.prototype._unbin
dEvents=function(){this.cta_link.unbind('click').bind('click',function(e)
{e.preventDefault();e.stopPropagation();});};SSLeadCTA.prototype.deactivate=func
tion(){this._unbindEvents();};SSLeadCTA.prototype.activate=function()
{this._bindEvents();};SSLeadCTA.prototype.hide=function(){$
('.lead_cta_div').hide();};SSLeadCTA.prototype.show=function()
{this.lead_cta_div.show();};SSLeadCTA.prototype.destroy=function()
{this._unbindEvents();this.lead_cta_div.remove();};function SSLeadForm(config)
{this.config=config;this.config.showLeadForm=true;this._init();}
SSLeadForm.prototype._init=function(){var
that=this;if(this.config.leadFormHtml==='')
{$.ajax({url:this.config.lead_form_url,data:
{},dataType:'html',cache:false,type:'POST',success:function(data)
{that.config.leadFormHtml=data;
$.slideshareEventManager.trigger('leadformloaded',
{leadFormHtml:data});},failure:function()
{}});}else{$.slideshareEventManager.trigger('leadformloaded');}};SSLeadForm.prot
otype.toggle=function(){if(document.getElementById('leadsform-placeholder-
new')===null){$
(this.config.leadFormHtml).insertBefore(this.config.renderTo);if(!
this.config.show_skip_button){$('.j-lead-cancel').remove();}}
this.setDimensions(this.config);$('.lead-
overlay').fadeToggle(1000,"linear");};SSLeadForm.prototype._bindEvents=function(
){var validate=null;$('form','.lead-overlay').live('submit',function(evt)
{evt.preventDefault();evt.stopPropagation();var placeholder=$('.lead-overlay
#leadsform-placeholder-new');var progress=$('.lead-overlay .progress');var
progress_done=$('.lead-overlay .progress_done');var progress_error=$('.lead-
overlay .progress_error');placeholder.form=$
('form',placeholder);try{if(placeholder.form[0].validate_formfields())
{placeholder.css({'height':'120px'});progress.show();placeholder.form.hide();
$.slideshareEventManager.trackEvent('bigfoot_leadsform','sent');var
mech="mechanism=Sidebar&";$.ajax({url:placeholder.form[0].action,data:(mech)
+placeholder.form.serialize(),type:"POST",cache:false,success:function(resp)
{progress_done.show();progress.hide();$('.lead-overlay').fadeOut(3000,"linear");
$.slideshareEventManager.trigger('leadcreated');placeholder.html('<div
class="progress_done">'+progress_done.html()+'</div>');},error:function(resp)
{progress.hide();progress_error.show();$('.lead-
overlay').fadeOut(2000,"linear");setTimeout(function()
{progress_error.hide();placeholder.form.show();},2000);}});}}catch(e)
{}});if(this.config.show_skip_button){var that=this;$('.j-lead-
cancel').live('click',function(e)
{e.preventDefault();e.stopPropagation();that.hide();});}else{$('.j-lead-
cancel').remove();}};SSLeadForm.prototype._unbindEvents=function(){$('.j-lead-
cancel').die();$('form','.lead-
overlay').die();};SSLeadForm.prototype.deactivate=function()
{this._unbindEvents();$('.lead-
overlay').remove();};SSLeadForm.prototype.activate=function()
{this._unbindEvents();this._bindEvents();};SSLeadForm.prototype.hide=function()
{$('.lead-overlay').hide();};SSLeadForm.prototype.show=function(){$('.lead-
overlay').show();};SSLeadForm.prototype.isVisible=function(){return $('.lead-
overlay').is(':visible');};SSLeadForm.prototype.destroy=function(){$('.lead-
overlay').remove();};SSLeadForm.prototype.setDimensions=function(dimensions){$
('.lead-overlay').css({height:dimensions.height});$('.j-leadsform-
placeholder').css({height:66/100*(dimensions.height)});};function
SSReplayScreen(config)
{this.config=config;this.html=config.settings.html;this._init();}
SSReplayScreen.prototype._init=function()
{};SSReplayScreen.prototype.show=function(dimensions){if(this.overlay!
==undefined){return;}
this.overlay=$('<div/>').css({width:'100%',height:'100%','background-
color':'black',opacity:0.75,position:'absolute',top:0,left:0}).appendTo(this.con
fig.renderTo);this.lastScreen=$
('<div/>').css({position:'absolute'}).html(this.html).appendTo(this.config.rende
rTo);this.setDimensions(dimensions);this.bindEvents();};SSReplayScreen.prototype
.destroy=function(){if(this.overlay)
{this.overlay.remove();delete(this.overlay);}
if(this.lastScreen)
{this.lastScreen.remove();delete(this.lastScreen);}};SSReplayScreen.prototype.bi
ndEvents=function(){var
that=this;this.lastScreen.find('.replayScreenReplay').bind('click',function(e)
{e.preventDefault();that.destroy();
$.slideshareEventManager.trigger('gotofirstslide');
$.slideshareEventManager.trackEvent('lastscreen_replay');});};SSReplayScreen.pro
totype.setDimensions=function(dimensions){if(this.lastScreen===undefined)
{return;}
var layerWidth=93;var layerHeight=25;var top,left;top=(dimensions.height-
layerHeight)/2;left=(dimensions.width-layerWidth)/2;if(top<0)
{top=0;}else{top=parseInt(top,10);}
if(left<0){left=0;}else{left=parseInt(left,10);}
this.lastScreen.css({top:top,left:left});};function SSResource(config){if(typeof
config==='undefined'){return;}
this.TIMEOUT_LIMIT=100000;this.config=config;this.resourceKey=config.resourceKey
;this._init();}
SSResource.prototype._init=function()
{this._initResourceConfig();this.status='initialized';};SSResource.prototype.res
et=function(){this.status='initialized';this.retries=0;if(this.suffixes){var
suffixKey,suffix;for(suffixKey in this.suffixes)
{suffix=this.suffixes[suffixKey];suffix.status='initialized';delete(suffix.start
Time);suffix.retries=2;}}};SSResource.prototype.load=function()
{this.status='loading';if(this.loadBlocked){return;}
this.startTime=(new
Date()).getTime();this._tryLoad();};SSResource.prototype.update=function(values)
{var key,value;for(key in values)
{value=values[key];if(this.resourceKey==='image'&&key==='sizes')
{this.delayedInitialize&&this.delayedInitialize(value);}else
if(this.resourceKey==='image'&&key==='linkData')
{this.addLinks(value);}else{this[key]=value;}}};SSResource.prototype.resourceErr
orInternalHandler=function(){var that=this;return function(data){var
startTime=that.startTime;var elapsedTime=(new Date()).getTime()-startTime;var
retries=that.retries;if(retries>0&&elapsedTime<that.TIMEOUT_LIMIT)
{retries=retries-1;that.update({retries:retries});setTimeout(function()
{that._tryLoad();},3000);}else{$.slideshareEventManager.trigger('resourceloadfai
led',{index:that.config.slideIndex,resourceKey:that.resourceKey});}};};function
SSShareScreen(config)
{this.config=config;this.html=config.settings.html;this._init();}
SSShareScreen.prototype._init=function()
{};SSShareScreen.prototype.show=function(dimensions){if(this.overlay!
==undefined){return;}
this.overlay=$('<div/>').css({width:'100%',height:'100%','background-
color':'black',opacity:0.75,position:'absolute',top:0,left:0}).appendTo(this.con
fig.renderTo);this.shareScreen=$
('<div/>').css({position:'absolute'}).html(this.html).appendTo(this.config.rende
rTo);this.setDimensions(dimensions);this.populateTemplate();this.bindEvents();};
SSShareScreen.prototype.populateTemplate=function()
{this.shareScreen.find('.shareScreenEmbedCode').val(this.config.embed_code);this
.shareScreen.find('.shareScreenSSUrl').val(this.config.settings.url);this.shareS
creen.find('.shareScreenFromName').val(this.config.settings.user_name);};SSShare
Screen.prototype.destroy=function()
{this.overlay.remove();delete(this.overlay);this.shareScreen.remove();delete(thi
s.shareScreen);};SSShareScreen.prototype.bindEvents=function(){var
that=this;this.shareScreen.find('.close').bind('click',function(e)
{e.preventDefault();that.destroy();});this.shareScreen.find('input[type=text]').
bind('click',function(){this.select();});var
emailSubmit=this.shareScreen.find('input[type=submit]');this.shareScreen.find('f
orm').bind('submit',function(e)
{e.preventDefault();});emailSubmit.bind('click',function(e)
{e.preventDefault();var
from=that.shareScreen.find('.shareScreenFromName').val();var
to=that.shareScreen.find('.shareScreenMailID').val();var
message=that.shareScreen.find('.shareDefaultMessage').val();if(from.length===0||
to.length===0){return;}
if(typeof that.emailProgress!=='undefined'){that.emailProgress.remove();}
that.emailProgress=$
('<span/>').text('sending...');emailSubmit.parent().prepend(that.emailProgress);
$.ajax({url:'/share/contacts/'+that.config.settings.slideshow_id,type:'POST',dat
a:
{'message[body]':message,'message[from]':from,'message[to]':to},dataType:'json',
success:function(data){if(data.success===true)
{that.emailProgress.text('Sent');}else{that.emailProgress.text('Sending
failed');}},error:function(){that.emailProgress.text('Sending failed');}});});
$.each({'.thirdPartyShare
a.Twitter':this.config.settings.twitter_share,'.thirdPartyShare
a.Linkedin':this.config.settings.linkedin_share},function(selector,url)
{that.shareScreen.find(selector).bind('click',function(e)
{e.preventDefault();window.open(url,'ss_share','width=660,height=490,toolbar=no,
resizable=fixed,status=no,scrollbars=no,'+'menubar=no,screenX=0,screenY=0').focu
s();});});};SSShareScreen.prototype.setDimensions=function(dimensions)
{if(this.shareScreen===undefined){return;}
this.config.shareScreenClass&&this.shareScreen.find('.shareScreen').addClass(thi
s.config.shareScreenClass);var layerWidth=$(this.shareScreen).width();var
layerHeight=$(this.shareScreen).height();var top,left;top=(dimensions.height-
layerHeight)/2;left=(dimensions.width-layerWidth)/2;if(top<0)
{top=0;}else{top=parseInt(top,10);}
if(left<0){left=0;}else{left=parseInt(left,10);}
this.shareScreen.css({top:top,left:left});};function SSSlide(config){if(typeof
config==="undefined"){return;}
this.index=config.index;this.realIndex=config.realIndex;this.setContentDimension
s(config.contentWidth,config.contentHeight);delete(config.contentWidth);delete(c
onfig.contentHeight);this.config=config;this._init();}
SSSlide.prototype.setContentDimensions=function(width,height)
{this.contentWidth=width;this.contentHeight=height;};SSSlide.prototype._init=fun
ction()
{this.status='initialized';this.viewModes={};this.resources={};this._createResou
rces();this._bindEvents();};SSSlide.prototype.stop=function()
{};SSSlide.prototype._createResources=function(){if(typeof
this.config.timestamp==='undefined'){this.config.timestamp=(new
Date()).getTime();}
switch(this.config.slideMode){case'image':var
signature_hash={};this.resources.image=new
SSFallbackImageResource({baseUrl:this.config.bucketLocation,timestamp:this.confi
g.timestamp,resourceKey:'image',indexGenerator:this.config.indexGenerator,player
Width:this.config.playerWidth,slideIndex:this.index,realIndex:this.realIndex,is_
private:this.config.is_private,signatures:signature_hash,availableSizes:this.con
fig.availableSizes,contentWidth:this.contentWidth,privateImageSignatures:this.co
nfig.privateImageSignatures,conversionVersion:this.config.conversionVersion});br
eak;case'html':this.resources.image=new
SSBgImageResource({baseUrl:this.config.bucketLocation,availableSizes:this.config
.availableSizes,timestamp:this.config.timestamp,resourceKey:'image',indexGenerat
or:this.config.indexGenerator,playerWidth:this.config.playerWidth,slideIndex:thi
s.index,realIndex:this.realIndex,is_private:this.config.is_private,contentWidth:
this.contentWidth,conversionVersion:this.config.conversionVersion,privateImageSi
gnatures:this.config.privateImageSignatures});this.resources.html=new
SSHtmlResource({baseUrl:this.config.bucketLocation,timestamp:this.config.timesta
mp,resourceKey:'html',indexGenerator:this.config.indexGenerator,slideIndex:this.
index,realIndex:this.realIndex,is_private:this.config.is_private,conversionVersi
on:this.config.conversionVersion,signature:this.config.htmlResourceSignature});b
reak;}
delete(this.config.availableSizes);};SSSlide.prototype.reset=function()
{this.status='initialized';var reskey;for(reskey in this.resources)
{resource=this.resources[reskey].reset();}};SSSlide.prototype.load=function()
{if(this.status==='cached')
{this._getNewResourceVersions(this.currentViewMode.wrapperWidth);
$.slideshareEventManager.trigger('slideloaded',{index:this.index});return;}
if(this.status==='loading'){$.slideshareEventManager.trigger('slideloading',
{index:this.index});return;}
if(this.status==='failed'){$.slideshareEventManager.trigger('slideloadfailed',
{index:this.index});return;}
this.status='loading';$.slideshareEventManager.trigger('slideloading',
{index:this.index});var that=this;var reskey;for(reskey in this.resources)
{resource=this.resources[reskey];resource.status='loading';resource.load();}};SS
Slide.prototype.updateResource=function(reskey,values){if(typeof
this.resources[reskey]==='undefined'){return;}
this.resources[reskey].update(values);};SSSlide.prototype.displayError=function(
jQueryDomObject,noRetry)
{this.empty();jQueryDomObject.appendTo(this.currentViewMode.wrapper);var
that=this;var button=jQueryDomObject.find('input');if(noRetry)
{button.hide();}else{button.bind('click',function(e)
{e.preventDefault();e.stopPropagation();that.reset();that.load();});}};SSSlide.p
rototype.paint=function(){if(typeof
this.currentViewMode.imageElement==='undefined'){this.render();}
this.currentViewMode.imageElement.css({width:this.currentViewMode.width,height:t
his.currentViewMode.height});if(this.config.slideMode==='html'){var
zoomStyles;if(Modernizr.csstransforms){zoomStyles={'-moz-
transform':'scale('+this.currentViewMode.contentScale+')','-webkit-
transform':'scale('+this.currentViewMode.contentScale+')','-o-
transform':'scale('+this.currentViewMode.contentScale+')','msTransform':'scale('
+this.currentViewMode.contentScale+')','-moz-transform-origin':'0 0','-webkit-
transform-origin':'0 0','-o-transform-origin':'0 0','msTransformOrigin':'0
0'};}else{zoomStyles={'zoom':this.currentViewMode.contentScale};}
this.currentViewMode.contentElement.css({width:this.currentViewMode.width,height
:this.currentViewMode.height});this.currentViewMode.contentElement.children('.ss
ml_div').css(zoomStyles);}else if(this.config.slideMode==='image')
{this._updateLinks();}};SSSlide.prototype.render=function()
{this.empty();this.currentViewMode.imageElement=$
('<img/>').css({position:'absolute',top:this.PADDING,left:0,margin:0,padding:0})
.attr({src:this.resources.image.getContent()}).appendTo(this.currentViewMode.wra
pper);if(this.config.slideMode==='html'){var
styleData='<style>'+this.resources.html.getContent().style+'</style>';$
(styleData).appendTo(this.currentViewMode.wrapper);this.currentViewMode.contentE
lement=$
('<div/>').css({position:'absolute',overflow:'hidden'}).html(this.resources.html
.getContent().html);this.currentViewMode.contentElement.appendTo(this.currentVie
wMode.wrapper);}};SSSlide.prototype._updateLinks=function()
{if(this.currentViewMode.imageMapId!==undefined){$
('#'+this.currentViewMode.imageMapId).remove();}
this._renderLinks();};SSSlide.prototype._renderLinks=function(){var
links=this.resources.image.links;if(links===undefined){return;}
var width=this.currentViewMode.width;var height=this.currentViewMode.height;var
linkCount=links.length,i,j,linkObj,coords;var
mapId='image_map_'+this.currentMode+'_'+this.index+parseInt(Math.random()*2500,1
0);var mapContent='<map id="'+mapId+'" name="'+mapId+'">';for(i=0;i<linkCount;i+
+){linkObj=links[i];coords=[parseInt((linkObj.box[0]||
0)*width/100,10),parseInt((linkObj.box[3]||
0)*height/100,10),parseInt((linkObj.box[2]||
0)*width/100,10),parseInt((linkObj.box[1]||
0)*height/100,10)];coords=coords.join(',');mapContent=mapContent+'<area
shape="rect" coords="'+coords+'" href="'+linkObj.url+'" rel="nofollow" />';}
mapContent=mapContent+'</map>';$
(mapContent).appendTo(this.currentViewMode.wrapper);this.currentViewMode.imageEl
ement.attr('usemap','#'+mapId);this.currentViewMode.imageMapId=mapId;};SSSlide.p
rototype._getNewResourceVersions=function()
{this.resources.image._tryLoad(this.currentViewMode.wrapperWidth);};SSSlide.prot
otype.updateRenderedResourceVersion=function(resourceKey){if(!
this.currentViewMode.rendered){return;}
if(resourceKey==='image'&&this.currentViewMode.imageElement!==undefined)
{this.currentViewMode.imageElement.attr({src:this.resources.image.getContent()})
;}};SSSlide.prototype._bindEvents=function(){};function SSSlideDisplayer(config)
{if(typeof config==="undefined"){return;}
this.config=config;this.slideOffsets=[];this.playerBgColor=config.playerBgColor|
|"#ccc";this.state='initialized';this.zoomIndex=0;this._init();}
SSSlideDisplayer.prototype._init=function(){var that=this;this.container=$
('<div/>').attr({'class':'slideDisplayer'}).css({position:'relative',overflow:'h
idden',height:'100%',width:'100%','text-align':'left','background-
color':this.playerBgColor}).appendTo(this.config.renderTo);this.showInitializer(
);};SSSlideDisplayer.prototype.hideInitializer=function()
{this.container.empty();};SSSlideDisplayer.prototype.error=function(jQueryDomObj
ect)
{this.hideInitializer();jQueryDomObject.appendTo(this.container);};SSSlideDispla
yer.prototype.zoomin=function(){var
newZoomIndex=this.zoomIndex+1;if(newZoomIndex===this.zoomLevels.length){return;}
this.zoomIndex=newZoomIndex;this.setZoom(newZoomIndex);$
(this).trigger('zoomchanged');};SSSlideDisplayer.prototype.zoomout=function()
{if(this.zoomIndex===0){return;}
this.zoomIndex-=1;this.setZoom(this.zoomIndex);$
(this).trigger('zoomchanged');};SSSlideDisplayer.prototype.activate=function()
{};SSSlideDisplayer.prototype.deactivate=function()
{};SSSlideDisplayer.prototype.destroy=function()
{this.container.remove();};function SSTouchInteraction(config)
{this.config=config;this._init();}
SSTouchInteraction.prototype._init=function()
{this.touch={active:false};this._bindEvents();};SSTouchInteraction.prototype.act
ivate=function(){var that=this;$(this).bind('touchprevious',function()
{$.slideshareEventManager.trigger('previous');
$.slideshareEventManager.trackEvent('swipe_prev');});$
(this).bind('touchnext',function(){$.slideshareEventManager.trigger('next');
$.slideshareEventManager.trackEvent('swipe_next');});};SSTouchInteraction.protot
ype.deactivate=function(){$(this).unbind('touchprevious');$
(this).unbind('touchnext');};SSTouchInteraction.prototype.destroy=function()
{};SSTouchInteraction.prototype._bindEvents=function(){var
that=this;if(this.config.playerType==='document'){this.touchMove=function(e){var
evt=e.originalEvent;$.slideshareEventManager.trigger('document_touch_scroll',
{delta:that.touch.start.coords[1]-
evt.touches[0].pageY});that.touch.start={coords:
[evt.touches[0].pageX,evt.touches[0].pageY]};e.preventDefault();};this.config.co
ntainer.bind('touchstart',function(e){var
evt=e.originalEvent;that.touch.start={coords:
[evt.touches[0].pageX,evt.touches[0].pageY]};$
(that.config.container).bind('touchmove',that.touchMove);});}else{this.touchMove
=function(e){var evt=e.originalEvent;if(evt.touches.length>1)
{that.touch.active=false;}
that.touch.stop={coords:
[evt.touches[0].pageX,evt.touches[0].pageY]};if(Math.abs(that.touch.start.coords
[0]-that.touch.stop.coords[0])>10)
{e.preventDefault();}};this.config.container.bind('touchstart',function(e){var
evt=e.originalEvent;if(evt.touches.length===1)
{that.touch.active=true;that.touch.start={coords:
[evt.touches[0].pageX,evt.touches[0].pageY]};$
(that.config.container).bind('touchmove',that.touchMove);}});this.config.contain
er.bind('touchend',function(e){var evt=e.originalEvent;$
(document).unbind('touchmove');if(!that.touch.active){return;}
var delta=that.touch.stop.coords[0]-
that.touch.start.coords[0];if(Math.abs(delta)<50){return;}
if(delta<0){$(that).trigger('touchnext');}else{$
(that).trigger('touchprevious');}});}};function SSFontResource(config)
{this.resourceTemplate={prefix:config.baseUrl,cacheable:true,retries:2,isCritica
l:false};SSResource.call(this,config);}
SSFontResource.prototype=new
SSResource();SSFontResource.prototype._initResourceConfig=function(){var
resourceTemplate=this.resourceTemplate;this.url=resourceTemplate.prefix+'meta-'+
this.config.indexString+
this.config.suffix+'?'+this.config.timestamp;this.cacheable=resourceTemplate.cac
heable;this.retries=resourceTemplate.retries||
0;this.isCritical=resourceTemplate.isCritical;};SSFontResource.prototype._tryLoa
d=function()
{$.jsonp({url:this.url,callback:'slideshare_jsonp_font_hook_trigger',success:thi
s.resourceLoadedInternalHandler(),error:this.resourceErrorInternalHandler(),cach
e:true,timeout:10000});};SSFontResource.prototype.resourceLoadedInternalHandler=
function(){var that=this;return function foo(data){that.status='cached';
$.slideshareEventManager.trigger('fontresourceloaded',
{style:data.style});};};SSFontResource.prototype.resourceErrorInternalHandler=fu
nction(){var that=this;return function(data){var startTime=that.startTime;var
elapsedTime=(new Date()).getTime()-startTime;var
retries=that.retries;if(retries>0&&elapsedTime<that.TIMEOUT_LIMIT)
{retries=retries-1;that.update({retries:retries});setTimeout(function()
{that._tryLoad();},1000);}else{$.slideshareEventManager.trigger('fontloadfailed'
,{});}};};function SSHtmlResource(config)
{this.resourceTemplate={prefix:config.baseUrl,key:'page_',suffix:'.js?'+config.t
imestamp,digitLength:4,cacheable:true,retries:2,isCritical:true};if(config.is_pr
ivate&&config.signature===undefined){this.loadBlocked=true;}
SSResource.call(this,config);}
SSHtmlResource.prototype=new
SSResource();SSHtmlResource.prototype.ready=function()
{this._initResourceConfig();this.loadBlocked=false;if(this.status==='loading')
{this.load();}};SSHtmlResource.prototype._initResourceConfig=function()
{if(this.config.is_private&&this.config.signature===undefined){return;}
var resourceTemplate=this.resourceTemplate;var
indexString=this.config.indexGenerator(this.config.realIndex,resourceTemplate.di
gitLength);if(this.config.is_private){this.url=resourceTemplate.prefix+
resourceTemplate.key+indexString+'.js'+this.config.signature;}
else{this.url=resourceTemplate.prefix+resourceTemplate.key+indexString+resourceT
emplate.suffix;}
this.cacheable=resourceTemplate.cacheable;this.retries=resourceTemplate.retries|
|
0;this.isCritical=resourceTemplate.isCritical;};SSHtmlResource.prototype.updateS
ignature=function(signature)
{this.config.signature=signature;};SSHtmlResource.prototype._tryLoad=function()
{$.jsonp({url:this.url,callback:'slideshare_jsonp_hook_trigger',success:this.res
ourceLoadedInternalHandler(),error:this.resourceErrorInternalHandler(),cache:tru
e,timeout:10000});};SSHtmlResource.prototype.resourceLoadedInternalHandler=funct
ion(){var that=this;return function(data){var
replacedStyle=data.style.replace(/a.ssml_a {.*?}/,'').replace(/.ssml_div
span {.*?}/,'').replace(/.ps([sS]*?){[sS]*?}/g,'').replace(/@font-
face[sS]*?{[sS]*?}/g,'');that.html=data.html;that.style=replacedStyle;
$.slideshareEventManager.trigger('resourceloaded',
{index:that.config.slideIndex,resourceKey:that.resourceKey});};};SSHtmlResource.
prototype.getContent=function()
{return{html:this.html,style:this.style};};function SSImageResource(config)
{if(typeof config==='undefined'){return;}
if(config.availableSizes)
{this.imageVersions=this._mapSizesToVersions(config.availableSizes);delete(confi
g.availableSizes);this._setUrlGenerator(config.conversionVersion,config.is_priva
te);}else{this.loadBlocked=true;}
this.contentWidth=config.contentWidth;delete(config.contentWidth);SSResource.cal
l(this,config);delete(this.imageVersions);}
SSImageResource.prototype=new
SSResource();SSImageResource.prototype._initResourceConfig=function()
{if(this.imageVersions===undefined){return;}
var
resourceTemplate=this.resourceTemplate;this.indexString=this.config.indexGenerat
or(this.config.realIndex,resourceTemplate.digitLength);this.suffixes=this._getSu
ffixes();this.cacheable=resourceTemplate.cacheable;this.retries=resourceTemplate
.retries||
0;this.isCritical=resourceTemplate.isCritical;this.privateUrls={};};SSImageResou
rce.prototype._getUrl=function(versions){return versions[versions.length-
1].url;};SSImageResource.prototype._mapSizesToVersions=function(sizes){var
imageVersions=[];for(var width in sizes){if(!sizes.hasOwnProperty(width))
{continue;}
imageVersions[parseInt(width,10)]=sizes[width];}
return
imageVersions;};SSImageResource.prototype._setUrlGenerator=function(version,is_p
rivate){switch(version){case 2:if(is_private)
{this.useTimeStamp=false;this._generateUrl=this._generatePrivateUrlV2;}else{this
._generateUrl=this._generateUrlV2;}
break;case 1:if(is_private){this.useTimeStamp=false;}
this._generateUrl=this._generateUrlV1;}};SSImageResource.prototype.delayedInitia
lize=function(config)
{this.imageVersions=this._mapSizesToVersions(config.availableSizes);this.content
Width=config.contentWidth;this._setUrlGenerator(config.conversionVersion,config.
is_private);if(!config.is_private)
{this.ready();}};SSImageResource.prototype.ready=function()
{this._initResourceConfig();delete(this.imageVersions);this.loadBlocked=false;if
(this.status==='loading')
{this.load();}};SSImageResource.prototype._tryLoad=function(containerWidth)
{containerWidth=containerWidth||this.config.playerWidth;var
width=this._getAppropriateWidth(containerWidth);var
suffix=this.suffixes[width];var
url;url=this._getUrl(suffix);if(width===this.currentWidth&&suffix.status!
=='initialized'){return;}
if(suffix.status==='failed'){(this.versionErrorInternalHandler(width,url))
();return;}
this.currentWidth=width;if(suffix.status==='loading'){return;}
if(suffix.status==='loaded'){(this.versionLoadedInternalHandler(width,url))
();return;}
suffix.status='loading';if(suffix.startTime===undefined){suffix.startTime=(new
Date()).getTime();}
var img=new Image();$
(img).bind('load',this.versionLoadedInternalHandler(width,url)).bind('error',thi
s.versionErrorInternalHandler(width));img.src=url;};SSImageResource.prototype.ve
rsionLoadedInternalHandler=function(width,url){var that=this;return
function(data){that.suffixes[width].status='loaded';if(that.status==='loading')
{that.url=url;(that.resourceLoadedInternalHandler())();}else
if(that.status==='cached'&&width===that.currentWidth){that.url=url;
$.slideshareEventManager.trigger('currentversionloaded',
{index:that.config.slideIndex,resourceKey:that.resourceKey});}};};SSImageResourc
e.prototype.versionErrorInternalHandler=function(width){var that=this;return
function(data){var suffix=that.suffixes[width];var
startTime=suffix.startTime;var elapsedTime=(new Date()).getTime()-startTime;var
retries=suffix.retries;if(retries>0&&elapsedTime<that.TIMEOUT_LIMIT)
{retries=retries-
1;suffix.retries=retries;suffix.status='initialized';setTimeout(function()
{that._tryLoad();},1000);}else{suffix.status='failed';if(that.status==='loading'
&&width===that.currentWidth){var alternateResourceAvailable=false;var
resWidth;for(resWidth in that.suffixes){var
alternateSuffix=that.suffixes[width];if(alternateSuffix.status==='loading'||
alternateSuffix.status=='loaded'){alternateResourceAvailable=true;}}
if(!alternateResourceAvailable){(that.resourceErrorInternalHandler())
();}}}};};SSImageResource.prototype.resourceLoadedInternalHandler=function(){var
that=this;return function(data)
{$.slideshareEventManager.trigger('resourceloaded',
{index:that.config.slideIndex,resourceKey:that.resourceKey});};};SSImageResource
.prototype.getContent=function(){var
suffix=this.suffixes[this.currentWidth];if(suffix.status==='loaded'){return
this.url;}
var width;for(width in this.suffixes)
{suffix=this.suffixes[width];if(suffix.status==='loaded')
{url=this._getUrl(suffix);return url;}}
return
this.url;};SSImageResource.prototype._getAppropriateWidth=function(playerWidth)
{var i,width,prevWidth;var suffixes=this.suffixes;var sortedWidths=[];for(width
in suffixes){width=parseInt(width,10);if(!suffixes.hasOwnProperty(width))
{continue;}
sortedWidths.push(width);}
sortedWidths.sort(function(a,b){return a-b;});for(i=0;i<sortedWidths.length;i++)
{width=sortedWidths[i];prevWidth=width;if(playerWidth<=width){return width;}}
return prevWidth;};function SSMetaResource(config)
{this.resourceTemplate={url:config.url,cacheable:true,retries:2,isCritical:true}
;SSResource.call(this,config);}
SSMetaResource.prototype=new
SSResource();SSMetaResource.prototype._initResourceConfig=function(){var
resourceTemplate=this.resourceTemplate;this.url=resourceTemplate.url+'?'+this.co
nfig.timestamp;this.cacheable=resourceTemplate.cacheable;this.retries=resourceTe
mplate.retries||
0;this.isCritical=resourceTemplate.isCritical;};SSMetaResource.prototype._tryLoa
d=function()
{$.jsonp({url:this.url,callback:'slideshare_jsonp_meta_hook_trigger',success:thi
s.resourceLoadedInternalHandler(),error:this.resourceErrorInternalHandler(),cach
e:true,timeout:10000});};SSMetaResource.prototype.resourceLoadedInternalHandler=
function(){var that=this;return function(data){that.status='loaded';
$.slideshareEventManager.trigger('metadataloaded',
{type:that.config.type,json:data});};};SSMetaResource.prototype.resourceErrorInt
ernalHandler=function(){var that=this;return function(data){var
startTime=that.startTime;var elapsedTime=(new Date()).getTime()-startTime;var
retries=that.retries;if(retries>0&&elapsedTime<that.TIMEOUT_LIMIT)
{retries=retries-1;that.update({retries:retries});setTimeout(function()
{that._tryLoad();},1000);}else{$.slideshareEventManager.trigger('metadataloadfai
led',{type:that.config.type});}};};function SSBgImageResource(config)
{this.resourceTemplate={prefix:config.baseUrl,digitLength:3,cacheable:true,retri
es:0,isCritical:true};this.useTimeStamp=true;var
imageVersions=config.availableSizes;this.imageVersions=[];for(var width in
imageVersions){this.imageVersions[parseInt(width,10)]=imageVersions[width];}
switch(config.conversionVersion){case 2:if(config.is_private)
{this.useTimeStamp=false;this._generateUrl=this._generatePrivateUrlV2;}else{this
._generateUrl=this._generateUrlV2;}
break;case 1:this._generateUrl=this._generateUrlV1;if(config.is_private)
{this.useTimeStamp=false;}}
SSImageResource.call(this,config);}
SSBgImageResource.prototype=new
SSImageResource();SSBgImageResource.prototype._generateUrlV2=function(index,size
,quality){return
this.config.baseUrl+'images/'+parseInt(quality,10)+'/slide-'+index+'-'+size+'.jp
g?'+this.config.timestamp;};SSBgImageResource.prototype._generateUrlV1=function(
index,size,extension){if(this.useTimeStamp){return
this.config.baseUrl+'output'+index+
(size===this.contentWidth?'':('-'+size))
+'.'+extension+'?'+this.config.timestamp;}else{return
this.config.baseUrl+'output'+index+
(size===this.contentWidth?'':('-'+size))+'.'+
extension+this.config.privateImageSignatures[size]
[75].url;}};SSBgImageResource.prototype._generatePrivateUrlV2=function(index,siz
e,quality){return this.config.baseUrl+'images
%2F'+parseInt(quality,10)+'%2Fslide-'+index+'-'+size+'.jpg'+this.config.privateI
mageSignatures[size]
[quality].url;};SSBgImageResource.prototype._getSuffixes=function(){var
suffixes={};var imageVersions=this.imageVersions;var
urlSuffix=this.config.timestamp;var
i,width,qualities_or_extensions,versionLen,quality,suffix;for(width in
imageVersions){if(!imageVersions.hasOwnProperty(width)){continue;}
width=parseInt(width,10);qualities_or_extensions=imageVersions[width];suffixes[w
idth]=[];versionLen=qualities_or_extensions.length;for(i=0;i<versionLen;i++)
{quality=parseInt(qualities_or_extensions[i],10);suffix={url:this._generateUrl(t
his.indexString,width,qualities_or_extensions[i]),status:'initialized',retries:2
};suffixes[width][(isNaN(quality)?75:quality)]=suffix;}}
return suffixes;};function SSFallbackImageResource(config)
{this.resourceTemplate={prefix:config.baseUrl,digitLength:1,cacheable:true,retri
es:0,isCritical:true};this.useTimeStamp=true;SSImageResource.call(this,config);}
SSFallbackImageResource.prototype=new
SSImageResource();SSFallbackImageResource.prototype._generateUrlV2=function(inde
x,size,quality){return
this.config.baseUrl+'/'+quality+'/slide-'+index+'-'+size+'.jpg?'+this.config.tim
estamp;};SSFallbackImageResource.prototype._generateUrlV1=function(index,size,qu
ality){if(this.useTimeStamp){return this.config.baseUrl+'-slide-'+index+
(size===this.contentWidth?'':('-'+size))
+'.jpg?'+this.config.timestamp;}else{return this.config.baseUrl+'-slide-'+index+
(size===this.contentWidth?'':('-'+size))+'.jpg'+
this.config.privateImageSignatures[size]
[75].url;}};SSFallbackImageResource.prototype._generatePrivateUrlV2=function(ind
ex,size,quality){return
this.config.baseUrl+'%2F'+quality+'%2Fslide-'+index+'-'+size+'.jpg'+this.config.
privateImageSignatures[size]
[quality].url;};SSFallbackImageResource.prototype._getSuffixes=function(){var
suffixes=[];var imageVersions=this.imageVersions;var
i,width,suffix,qualities,quality,qualityLen;for(width in imageVersions){if(!
imageVersions.hasOwnProperty(width)){continue;}
width=parseInt(width,10);qualities=imageVersions[width];suffixes[width]=[];quali
tyLen=qualities.length;for(i=0;i<qualityLen;i++)
{quality=parseInt(qualities[i],10);suffix={url:this._generateUrl(this.indexStrin
g,width,quality),status:'initialized',retries:2};suffixes[width]
[quality]=suffix;}}
return suffixes;};SSFallbackImageResource.prototype.addLinks=function(values)
{this.links=values.links||
[];};SSFallbackImageResource.prototype.addSignature=function(signatures)
{this.config.privateImageSignatures=signatures;};function
SSDocumentDisplayer(config)
{SSSlideDisplayer.call(this,config);this.zoomLevels=[1,1.2,1.5,1.75,2,2.5,3,4];t
his.prerenderedSlides=[];}
SSDocumentDisplayer.prototype=new
SSSlideDisplayer();SSDocumentDisplayer.prototype._bindEvents=function(){var
that=this;var i,slide;var container=this.container;var
linksDisabled=this.config.linksDisabled;container.unbind('scroll');container.bin
d('scroll',function(e){var currentSlide=that.detectCurrentSlide();
$.slideshareEventManager.trigger('slidechanged',
{index:currentSlide});});container.unbind('click');container.bind('click',functi
on(e){var target=e.target;var targetTagName=target.tagName.toUpperCase();var
targetNode;if(linksDisabled){targetNode=false;}else
if(targetTagName==='SPAN'&&target.parentNode.tagName.toUpperCase()==='A')
{targetNode=target.parentNode;}else if(targetTagName==='A'||
targetTagName==='AREA'){targetNode=target;}
if(targetNode){var
hrefValue=parseInt(targetNode.attributes.href.value,10);if(isNaN(hrefValue))
{window.open(targetNode.href);}}});$(container).bind('click',function(e)
{e.preventDefault();});};SSDocumentDisplayer.prototype._scrollTo=function(index)
{if(this.slides){var
topOffset=this.slides[index].currentViewMode.container.position().top;this.conta
iner.scrollTop(topOffset);}};SSDocumentDisplayer.prototype.start=function(config
){var i,slide;var slideContainers=[];if(this.slides===undefined)
{this.slides=config.slides;this.state='playing';this.hideInitializer();this.slid
esContainer=$
('<div/>').attr({'class':'slidesContainer'}).css({position:'relative','backgroun
d-
color':this.playerBgColor}).appendTo(this.container);for(i=1;i<=this.config.slid
eCount;i++){slideContainers[i]=$('<div/>').appendTo(this.slidesContainer);}}
for(i=1;i<=this.config.slideCount;i++)
{slide=this.slides[i];slide.setContainer({mode:config.mode,bgColor:this.playerBg
Color,container:slideContainers[i]});}
this.setZoom(0);};SSDocumentDisplayer.prototype.showInitializer=function(){$
('<div/>').css({width:this.container.width()-10,height:this.container.height()-
20,padding:5,margin:0,top:0,left:0,'background-
color':'#fff'}).html('Loading...').appendTo(this.container);};SSDocumentDisplaye
r.prototype.detectCurrentSlide=function(){var that=this;var
viewHeight=this.height;var viewEdge1=this.container.scrollTop();var
currentSlide=(function(){var i;for(i=1;i<that.config.slideCount;i++){var
slideEdge1=that.slideOffsets[i];var
slideEdge2=that.slideOffsets[i+1];if(viewEdge1>=slideEdge1&&viewEdge1<slideEdge2
){return i;}}
return that.config.slideCount;})();return
currentSlide;};SSDocumentDisplayer.prototype.setZoom=function(index)
{this.zoomIndex=index;var
currentZoom=this.zoomLevels[this.zoomIndex];if(currentZoom===1)
{this.container.css({'overflow-y':'scroll','overflow-
x':'hidden'});this.slidesContainer.width('100%');this.width=this.slidesContainer
.width();}else{this.container.css({'overflow-y':'scroll','overflow-
x':'scroll'});var
zoomWidth=this.config.width*currentZoom;this.slidesContainer.width(zoomWidth);th
is.width=zoomWidth;}};SSDocumentDisplayer.prototype.getZoomDimensions=function()
{var
currentZoom=this.zoomLevels[this.zoomIndex];return{width:this.config.width*curre
ntZoom,height:this.config.height*currentZoom,displayerWidth:this.width};};SSDocu
mentDisplayer.prototype.setDimensions=function(dimensions){var
that=this;if(typeof dimensions==='object')
{this.config.width=dimensions.width;this.config.height=dimensions.height;}
var partialUpdate=dimensions&&dimensions.partial;if(!
partialUpdate&&this.state==='playing'){this.setZoom(this.zoomIndex);}
var zoomDimensions=this.getZoomDimensions();var
zoomWidth=zoomDimensions.width;var zoomHeight=zoomDimensions.height;var
slidesContainerWidth=zoomDimensions.displayerWidth;this.container.css({height:th
is.config.height,width:this.config.width});if(!
partialUpdate&&this.state==='playing'){this.panelHeight=0;var
i,slide,offset;offset=0;for(i=1;i<=this.config.slideCount;i++)
{slide=this.slides[i];slide.setDimensions({parentWidth:slidesContainerWidth,pare
ntHeight:zoomHeight});this.slideOffsets[i]=offset;offset+=slide.wrapperOffset();
}
this.height=offset;}};SSDocumentDisplayer.prototype.setPrerenderedSlides=functio
n(config){var i;for(i=config.start;i<=config.end;i++)
{if($.inArray(i,this.prerenderedSlides)===-1)
{this.prerenderedSlides.push(i);}}};SSDocumentDisplayer.prototype.manualScroll=f
unction(delta)
{this.container&&this.container.scrollTop(this.container.scrollTop()
+delta);};function SSDocumentSlide(config)
{SSSlide.call(this,config);this.PADDING=5;}
SSDocumentSlide.prototype=new
SSSlide();SSDocumentSlide.prototype.wrapperOffset=function(){return
this.currentViewMode.wrapperHeight;};SSDocumentSlide.prototype.empty=function()
{this.currentViewMode.wrapper.empty();};SSDocumentSlide.prototype.displayLoading
=function(){this.empty();$
('<div/>').css({width:this.currentViewMode.width,height:this.currentViewMode.hei
ght-10,padding:5,top:0,left:0,'background-
color':'#fff'}).html('Loading...').appendTo(this.currentViewMode.wrapper);};SSDo
cumentSlide.prototype.setDimensions=function(dimensions){var
viewWidth=dimensions.parentWidth;var viewHeight=dimensions.parentHeight-
(this.PADDING*2);var viewAspect=viewWidth/viewHeight;var
origwidth,origheight,contentAspect;if(this.contentWidth===undefined||
this.contentHeight===undefined)
{origwidth=viewWidth;origheight=viewWidth*1.33;contentAspect=origwidth/origheigh
t;}else{origwidth=this.contentWidth;origheight=this.contentHeight;contentAspect=
origwidth/origheight;}
var scale,contentScale,fontscale,width,height;var
top,left;contentScale=viewWidth/origwidth;fontscale=contentScale*16;width=viewWi
dth;scale=viewAspect/contentAspect;top=this.PADDING;height=scale*viewHeight;widt
h=parseInt(width,10);height=parseInt(height,10);this.currentViewMode.container.c
ss({width:width+(this.PADDING*2),height:height+
(this.PADDING*2)});this.currentViewMode.wrapper.css({width:width,height:height,p
osition:'absolute','background-
color':this.currentViewMode.bgColor,padding:this.PADDING+'px
0'});this.currentViewMode.wrapperWidth=width;this.currentViewMode.wrapperHeight=
height;this.currentViewMode.top=top;this.currentViewMode.left=0;this.currentView
Mode.contentScale=contentScale;this.currentViewMode.fontscale=fontscale;this.cur
rentViewMode.width=width;this.currentViewMode.height=height;};SSDocumentSlide.pr
ototype.hide=function(){if(!this.currentViewMode.rendered){return;}
this.empty();delete(this.currentViewMode.contentElement);delete(this.currentView
Mode.imageElement);this.currentViewMode.rendered=false;};SSDocumentSlide.prototy
pe.show=function(force){if(this.currentViewMode.rendered&&!force){return;}
this.currentViewMode.rendered=true;this.load();};SSDocumentSlide.prototype.play=
function(){$.slideshareEventManager.trigger('slidechanged',
{index:this.index});this.show();};SSDocumentSlide.prototype.setContainer=functio
n(config){var mode=config.mode;if(this.viewModes[mode]===undefined)
{this.viewModes[mode]={'rendered':false,'bgColor':config.bgColor||'#ccc','contai
ner':config.container,'wrapper':$
('<div/>').appendTo(config.container)};this.viewModes[mode].container.css({posit
ion:'relative'});}
this.currentViewMode=this.viewModes[mode];this.currentMode=config.mode;};functio
n SSToolbar(config)
{this.config=config;this.GA_EVENTS={'previous':'toolbar_prev','next':'toolbar_ne
xt','viewonss':'toolbar_viewonss','zoomin':'toolbar_zoomin','zoomout':'toolbar_z
oomout','viewfullscreen':'toolbar_fullscreen','leavefullscreen':'toolbar_leavefu
llscreen'};this._init();this._ELEMENTS=this.getElements();this._ELEMENT_PRIORITI
ES={1:['nav'],5:['viewOnSS'],2:['fullScreen','leaveFullScreen'],3:['share'],4:
['goToSlide'],6:['zoomButtons']};this._ELEMENT_VISIBILITY={'share':!
this.config.disableShare,'fullScreen':!
this.config.isFullScreen,'leaveFullScreen':this.config.isFullScreen,'viewOnSS':t
his.config.enableViewSS,'zoomButtons':
(this.config.playerType=='document'),'nav':true,'goToSlide':true};this._ELEMENT_
SECTION={'nav':'one','share':'two','fullScreen':'two','leaveFullScreen':'two','g
oToSlide':'two','viewOnSS':'one','zoomButtons':'two'};var
viewOnSSbuttonWidth={'small':29,'normal':88};if(this.config.playerType=='documen
t')
{this._ELEMENT_WIDTHS={'nav':30,'share':72,'fullScreen':24,'leaveFullScreen':24,
'goToSlide':57,'viewOnSS':viewOnSSbuttonWidth[this.config.toolbarClass],'zoomBut
tons':56};this._ELEMENT_SECTION.share='one';}else{this._ELEMENT_WIDTHS={'nav':57
,'share':35,'fullScreen':24,'leaveFullScreen':24,'goToSlide':57,'viewOnSS':viewO
nSSbuttonWidth[this.config.toolbarClass]};}
this.config.toolbarPadding=6;}
SSToolbar.prototype._init=function(){var container=this.container=$
('<div/>').attr({'class':'toolbar'}).css({height:this.config.height}).html(this.
config.html).appendTo(this.config.renderTo);this.config.toolbarClass=this._getTo
olbarClass();this.container.addClass(this.config.toolbarClass);if(this.config.di
sableShare){container.find('.btnShare').hide();}
if(this.config.enableViewSS){container.find('.btnViewOnSS').show();}
if(this.config.isFullScreen)
{container.find('.btnFullScreen').hide();container.find('.btnLeaveFullScreen').s
how();}
if(this.config.hasAudio){this.volumeControl=new
SSVolumeControl({container:container.find('.jspl_volume_control'),renderTo:conta
iner,trigger:container.find('.btnVolume')});this.audioActive=true;}
var
that=this;container.find('.goToSlideLabel>span').html('/'+this.config.totalSlide
Count);this.deactivate();};SSToolbar.prototype._getToolbarClass=function(){var
toolbarClass="";if(this.config.width<400){toolbarClass="small";}
else{toolbarClass="normal";}
return toolbarClass;};SSToolbar.prototype.getElements=function(){var
container=this.container;var
elementCodes={'nav':'.nav','share':'.btnShare','fullScreen':'.btnFullScreen','le
aveFullScreen':'.btnLeaveFullScreen','viewOnSS':'.btnViewOnSS','goToSlide':'.goT
oSlideLabel','zoomButtons':'.docActions'};var elements={};
$.each(elementCodes,function(code,selector)
{elements[code]=container.find(selector);});return
elements;};SSToolbar.prototype.deactivate=function(){var buttons='.btnFirst,
.btnPrevious, .btnNext, .btnLast, .btnSS, .btnViewOnSS, .btnFullScreen,
'+'.btnZoomOut, .btnZoomIn, .btnFind,
.btnShare';this.container.find(buttons).unbind('click');this._unbindButtonHandle
r(buttons);this.container.find('.goToSlideLabel>input[type=text]').attr('disable
d',true);this.active=false;this.config.hasAudio&&this.updateAudioInteraction();}
;SSToolbar.prototype.activate=function(){var that=this;var
container=this.container;var buttons='.btnFirst, .btnPrevious, .btnNext,
.btnLast, .btnSS, .btnViewOnSS, .btnFullScreen, '+'.btnZoomOut, .btnZoomIn,
.btnFind, .btnShare';this._bindButtonHandler(buttons,
{'.btnViewOnSS':'viewonss','.btnFirst':'gotofirstslide','.btnSS':'viewonss','.bt
nPrevious':'previous','.btnNext':'next','.btnLast':'gotolastslide','.btnFullScre
en':'viewfullscreen','.btnLeaveFullScreen':'leavefullscreen','.btnZoomOut':'zoom
out','.btnZoomIn':'zoomin','.btnFind':'playersearch','.btnShare':'playershare'})
;var
gotoslideInput=this.container.find('.goToSlideLabel>input[type=text]');gotoslide
Input.attr('disabled',false);gotoslideInput.bind('keyup',function(e)
{e.stopPropagation();if(e.keyCode===13){var input=$(e.target);var
val=input.val();if(isNaN(val)){return;}else{var slidenumber=parseInt(val,10);
$.slideshareEventManager.trigger('gotoslide',
{index:slidenumber});}}});gotoslideInput.bind('focus',function(e){$
(e.target).select();});this.active=true;this.config.hasAudio&&this.updateAudioIn
teraction();};SSToolbar.prototype.updateAudioInteraction=function(values){var
key;for(key in values){this[key]=values[key];}
if(this.active&&this.audioReady&&this.audioMetaReady){!
this.audioActive&&this._activateAudio();this._updateAudioDisplay();}else{this.au
dioActive&&this._deactivateAudio();}};SSToolbar.prototype._activateAudio=functio
n()
{this.container.find('.btnAudio,.btnVolume').removeClass('disabled');this._bindB
uttonHandler('.btnAudio,.btnVolume',
{'.btnAudio':'toggleaudio','.btnVolume':'showvolumecontrol'});this.audioActive=t
rue;};SSToolbar.prototype._deactivateAudio=function()
{this.container.find('.btnAudio,.btnVolume').addClass('disabled');this._unbindBu
ttonHandler('.btnAudio,.btnVolume');this.audioActive=false;};SSToolbar.prototype
._updateAudioDisplay=function(playing){if(this.audioPlaying)
{this.container.find('.btnAudio').removeClass('btnAudioPlay').addClass('btnAudio
Pause').attr('title','Pause');}else{this.container.find('.btnAudio').removeClass
('btnAudioPause').addClass('btnAudioPlay').attr('title','Play');}};SSToolbar.pro
totype._bindButtonHandler=function(resetButtons,config){var
container=this.container;var
that=this;this.container.find(resetButtons).unbind();
$.each(config,function(selector,eventname)
{container.find(selector).bind('click',function(e)
{$.slideshareEventManager.trigger(eventname,e);e.preventDefault();e.stopPropagat
ion();var gaEvent=that.GA_EVENTS[eventname];if(gaEvent)
{$.slideshareEventManager.trackEvent(gaEvent);}});});};SSToolbar.prototype._unbi
ndButtonHandler=function(buttons)
{this.container.find(buttons).unbind();this.container.find(buttons).bind('click'
,function(e)
{e.preventDefault();e.stopPropagation();});};SSToolbar.prototype.setDimensions=f
unction(dimensions){var that=this;var
firstElementWidth=that._ELEMENT_WIDTHS[that._ELEMENT_PRIORITIES[1][0]];var
sectionWidth=(dimensions.width/2)-that.config.toolbarPadding-
firstElementWidth;var availableWidth={'one':sectionWidth,'two':sectionWidth};var
priorityLength=this._ELEMENT_PRIORITIES.length;var
priorityElement,priorityElementLength;var
elementCode,elementWidth,elementVisibility,elementShowable;
$.each(this._ELEMENT_PRIORITIES,function(priority,priorityElement)
{priorityElementLength=priorityElement.length;for(var
j=0;j<priorityElementLength;j++){elementCode=priorityElement[j];var
section=that._ELEMENT_SECTION[elementCode];elementWidth=that._ELEMENT_WIDTHS[ele
mentCode];elementShowable=(that._ELEMENT_VISIBILITY[elementCode]&&availableWidth
[section]>elementWidth);if(priority==1||elementShowable)
{that._ELEMENTS[elementCode].show();if(priority!=1){availableWidth[section]-
=elementWidth;}}else{that._ELEMENTS[elementCode].hide();}}});};SSToolbar.prototy
pe.updateCurrentPosition=function(position)
{this.container.find('.goToSlideLabel>input[type=text]').val(position);};SSToolb
ar.prototype.destroy=function(){this.container.remove();};function
SSPlayerController(config)
{this.config=config;this.realSlideCount=this.config.slide_count;this.slideCount=
this.realSlideCount;if(this.config.has_video)
{this.slideCount+=this.config.video_slides_count;}
delete(this.config.slide_count);this.mode=this.config.mode;delete(this.config.mo
de);this.currentPosition=0;this.loadingSlides=[];this.loadedSlides=[];this.slide
Modes={};this.availableBgSizes={};this.availableFallbackSizes={};if(this.config.
has_lead)
{this.has_lead=true;this.leadCreated=false;if(this.config.form_after_slide_no===
this.slideCount){this.config.form_after_slide_no=this.slideCount-1;}}
this.PRELOAD_PRE_LIMIT=2;this.PRELOAD_POST_LIMIT=5;this.FONT_BATCH_COUNT=10;this
.DEFAULT_ERROR_SCORE=0;this.AUTOVERIFICATION_ERROR_THRESHOLD=0.001;this.AUTOVERI
FICATION_THRESHOLDS={'bad v1.0':0.001,'bad v1.1':0.0001,'bad
v2.0':0.0001};this.MAX_PERCENTAGE_FAILING={'bad v1.0':100,'bad v1.1':20,'bad
v2.0':20};this.TOOLBAR_HEIGHT=30;this.TOOLBAR_PADDING=8;this.AUDIOBAR_HEIGHT=16;
this.initialized=false;this.PRERENDER_COUNT=1;this._init();this.startSlide=parse
Int(this.config.page||1,10);this.play(this.startSlide);}
SSPlayerController.prototype._init=function(){var that=this;
$.slideshareEventManager.registerController(this);
$.slideshareEventManager.registerEnvironment(this.config.hosted_in);this.cachedD
omElements={};this.componentSets={};this._createComponentSet('normal');this._bin
dEvents();this.exitFullScreenHandler=this.exitFullScreenHandlerFactory();if(this
.mode!=='video')
{this._initMetadata();this._loadMetadata();this.config.has_audio&&!
this.config.touch&&this._loadAudioMetadata();}else{this._loadVideoMeta();}
$.slideshareEventManager.trackEvent('player_initialized');
$.slideshareEventManager.trackEvent(this.mode+'_mode');};SSPlayerController.prot
otype._loadVideoMeta=function(){if(this.config.is_private)
{this._getHtmlSignatures();}
this.initialized=true;};SSPlayerController.prototype._initMetadata=function()
{if(this.mode==='html'){if(this.config.is_private){this._getHtmlSignatures();}
this._initFontResources();this._initHtmlMetadata();this.config.image_ready&&this
._initImageMetadata(true);}else if(this.mode==='image')
{this._initImageMetadata();}else{if(window._gaq)
{_gaq.push(['_trackEvent','jsplayer','invalidplayermode',this.config.id]);}
throw"Unknown player
mode";}};SSPlayerController.prototype._loadMetadata=function()
{if(this.mode==='html')
{this.metaResource.load();this.config.image_ready&&this.imageMetaResource.load()
;}else if(this.mode==='image'){this.imageMetaResource.load();}
else{throw"Unknown player
mode";}};SSPlayerController.prototype._initHtmlMetadata=function(signature)
{this.metaResource=new
SSMetaResource({url:this.config.bucket_location+'meta.js',timestamp:this.config.
timestamp,type:'html',is_private:this.config.is_private,signature:signature});};
SSPlayerController.prototype._initImageMetadata=function(isFallback,signature)
{this.imageMetaResource=new
SSMetaResource({url:this.config.image_bucket_location+'.js',timestamp:this.confi
g.timestamp,type:isFallback?'imagefallback':'imageprimary'});};SSPlayerControlle
r.prototype._initFontResources=function(signatures,fontBatchCount)
{if(fontBatchCount)
{fontBatchNum=Math.ceil(this.slideCount/fontBatchCount);}else{fontBatchNum=Math.
ceil(this.slideCount/this.FONT_BATCH_COUNT);}
var urlSuffix;if($.browser.msie)
{urlSuffix=this.config.html_eotfont_url_suffix;}else{urlSuffix=this.config.html_
ttffont_url_suffix;}
var i;this.fontResources=[];for(i=1;i<=fontBatchNum;i++)
{this.fontResources[i]=new
SSFontResource({baseUrl:this.config.bucket_location,indexString:this._getIndexSt
ring(i,0),timestamp:this.config.timestamp,suffix:urlSuffix});}};SSPlayerControll
er.prototype._loadAudioMetadata=function(){this.audioResource=new
SSAudioResource({url:this.config.audio_bucket_location+'.js',timestamp:this.conf
ig.audio_timestamp,slideCount:this.slideCount,audioDuration:this.config.audio_du
ration,audioUrl:this.config.audio_url,flashRoot:this.config.sound_manager_flash_
component_root,assetId:this.config.sound_manager_asset_id});this.audioResource.l
oad();};SSPlayerController.prototype.getImagePrivateSignatures=function(imageSiz
es,mode){var that=this;(function(mode)
{$.ajax({url:that.config.images_signature_request_route,data:
{id:that.config.id,key:that.config.secret_key,mode:mode,images_sizes:imageSizes,
version:that.conversionVersion,password_hash:that.config.password_hash,slidetrac
king_hash:that.config.slidetracking_hash},dataType:'json',cache:false,type:'POST
',success:function(data){if(mode==='html')
{that.privateImageSignatures=data;}else if(mode==='image')
{that.privateFallBackImageSignatures=data;}
if(mode==='html'||mode==='image')
{that.postInitialize();}else{if(that.slidesCreated){var
imageCount=that.slideModes.image.length;var
slide,slideIndex;for(i=0;i<imageCount;i++)
{slideIndex=that.slideModes.image[i];slide=that.slides[that.realIndexToIndex[sli
deIndex]];slide.resources.image.addSignature(data[slideIndex]);slide.resources.i
mage.ready();}}else{that.privateFallBackImageSignatures=data;}}}});})
(mode);};SSPlayerController.prototype._getHtmlSignatures=function(){var
policyUrl=this.config.signature_request_route;var that=this;
$.ajax({url:policyUrl,data:
{id:this.config.id,key:this.config.secret_key},dataType:'json',cache:false,type:
'POST',success:function(data){var dataLength=data.length;var
dataObj;if(dataLength!==0){for(var i=0;i<dataLength;i++)
{dataObj=data[i];that.htmlResourceSignatures=data[i].info;}
for(i=0;i<that.slideCount;i++){if(that.slides&&that.slides[i])
{slide=that.slides[i];slide.resources.html.updateSignature(that.htmlResourceSign
atures[i].url);slide.resources.html.ready();}}}},failure:function()
{$.slideshareEventManager.trigger('metadataloadfailed',
{type:that.config.type});}});};SSPlayerController.prototype._metaDataHandlers=fu
nction(){var criticalFailureHandler=function(){var height,width;var
slidedisplayer=this.currentComponentSet.slidedisplayer;height=slidedisplayer.con
tainer.height();width=slidedisplayer.container.width();slidedisplayer.error(this
.generateErrorDom('meta_error_template',
{width:width,height:height}));};return{html:{success:function(data)
{this.conversionVersion=parseInt(data.version||
1,10);this.slideSizes=data.sizes||{};var
availableSizes={};switch(this.conversionVersion){case
2:availableSizes=data.available_sizes||{};break;case 1:var
imageFormats=data.image_formats;var i,slideFormats,slideSizes,width,fullSize;var
slideCount=this.realSlideCount;for(i=1;i<=slideCount;i++)
{slideFormats=imageFormats[i]||{};slideSizes={};for(width in slideFormats)
{slideSizes[width]=[slideFormats[width]];}
slideSizes[400]=['jpg'];try{fullSize=this.slideSizes[i].width;}catch(ex)
{fullSize=slideSizes.length-1+100;}
slideSizes[fullSize]=['png'];availableSizes[i]=slideSizes;}}
this.availableBgSizes=availableSizes;var errorScores=data.error_scores||
{};this.algo=errorScores.algo||'bad v1.0';this.errorScores=errorScores.webkit||
{};var commonStyle="n.ssml_div span {line-height:normal;} "+"n.ssml_div div
{line-height:normal;}n.ssml_div{font-size:16px;}";if(this.config.disable_links)
{commonStyle=commonStyle+"n.ssml_div a{cursor:default;}";}
var defaultPresentationStyle="a.ssml_a {text-
decoration:none;color:inherit;vertical-align:top;} "+"n.ssml_div span
{position:absolute; white-space:pre; vertical-align:top;} "+"n.ssml_div div
{position:absolute;}";var finalResetStyleTag='<style>'+(data.global_styles_css||
defaultPresentationStyle)+commonStyle+'</style>';$
(finalResetStyleTag).appendTo(this.currentComponentSet.container);if(data.pages_
per_fontfile)
{this.FONT_BATCH_COUNT=data.pages_per_fontfile;this._initFontResources();}
if(this.config.is_private)
{this.getImagePrivateSignatures(this.availableBgSizes,"html");}else{this.postIni
tialize();}},failure:criticalFailureHandler},imagefallback:
{success:function(data){if(this.config.disable_links){data.links={};}
if(this.slidesCreated)
{this.fallbackMetaHandler(data);}else{this.fallbackMetaData=data;}},failure:func
tion(){var imageCount=this.slideModes.image.length;var
i,width,height,slideIndex,slide;for(i=0;i<imageCount;i++)
{slideIndex=this.slideModes.image[i];slide=this.slides[slideIndex];width=slide.c
urrentViewMode.width;height=slide.currentViewMode.height;slide.displayError(this
.generateErrorDom('slide_error_template',
{width:width,height:height}),true);}}},imageprimary:{success:function(data)
{this.conversionVersion=parseInt(data.version||
1,10);this.slideSizes=data.sizes||{};if(this.config.disable_links)
{data.links={};}
this.slideLinks=data.links||{};var slideCount=this.realSlideCount;var
i,slideAvailableSizes,dimensions;switch(this.conversionVersion){case
2:this.availableFallbackSizes=data.available_sizes;break;case
1:this.availableFallbackSizes={};for(i=1;i<=slideCount;i++)
{slideAvailableSizes={320:[75],768:[75]};dimensions=this.slideSizes[i]||
{};if(dimensions.width){slideAvailableSizes[dimensions.width]=[75];}
this.availableFallbackSizes[i]=slideAvailableSizes;}}
if(this.config.is_private)
{this.getImagePrivateSignatures(this.availableFallbackSizes,"image");}
else{this.postInitialize();}},failure:criticalFailureHandler}};};SSPlayerControl
ler.prototype.fallbackMetaHandler=function(data){var
conversionVersion=parseInt(data.version||1,10);var imageSizes=data.sizes||{};var
availableSizes=data.available_sizes||{};var imageLinks=data.links||{};var
imageCount=this.slideModes.image.length;var
slideAvailableSizes,dimensions,slide;for(i=0;i<imageCount;i++)
{slideIndex=this.slideModes.image[i];dimensions=imageSizes[slideIndex]||
{};slideAvailableSizes=availableSizes[slideIndex];if(slideAvailableSizes===undef
ined){slideAvailableSizes={320:[75],768:
[75]};slideAvailableSizes[dimensions.width]=[75];}
slide=this.slides[this.realIndexToIndex[slideIndex]];slide.setContentDimensions(
dimensions.width||0,dimensions.height||0);slide.updateResource('image',{sizes:
{contentWidth:dimensions.width||
0,availableSizes:slideAvailableSizes,conversionVersion:conversionVersion,is_priv
ate:this.config.is_private},linkData:imageLinks[slideIndex]||[]});}
if(this.config.is_private)
{this.getImagePrivateSignatures(availableSizes,'imagefb');}};SSPlayerController.
prototype.postInitialize=function()
{this._initSlides();this._activateComponentSet('normal');this._setModeForSlides(
'normal');this.setDimensions();$
(this).trigger('playerinitialized');};SSPlayerController.prototype._bindEvents=f
unction(){var that=this;$(this).bind('playerinitialized',function()
{this.initialized=true;that.play();});if(!(this.config.touch||
this.config.player_type==='document'||this.config.player_type==='video')){$
(document).bind('keyup',function(e){if(e.target.nodeName!
=='INPUT'&&e.target.nodeName!=='TEXTAREA'){var
leadForm=that.currentComponentSet.leadForm;if(e.keyCode===37&&!
(leadForm&&leadForm.isVisible())){if(that.currentComponentSet.lastScreen)
{that.currentComponentSet.lastScreen.destroy();}
$.slideshareEventManager.trigger('previous');}
if(e.keyCode===39&&!(leadForm&&leadForm.isVisible()))
{$.slideshareEventManager.trigger('next');}}});}};SSPlayerController.prototype._
bindComponentSetEvents=function(){var that=this;var
componentSet=this.currentComponentSet;$
(componentSet.slidedisplayer).bind('zoomchanged',function(e)
{that.repaint();});};SSPlayerController.prototype._createComponentSet=function(m
ode){var
that=this;this.componentSets[mode]={};this.currentComponentSet=this.componentSet
s[mode];this.currentViewMode=mode;var
componentSet=this.currentComponentSet;if(mode==='normal')
{componentSet.container=$
('#'+this.config.container);if(componentSet.container.length!==1){throw'Unable
to find container for player';}
componentSet.container.css({'overflow':'hidden'});}else if(mode==='fullscreen')
{this.normalModeScrollPosition=$(window).scrollTop();componentSet.container=$
('<div/>').css({'height':'100%','left':0,'position':'absolute','top':0,'width':'
100%','overflow':'hidden','z-index':10050}).appendTo($('body'));$('body,
html').css({'overflow':'hidden'});}
var isFullScreen=(mode==='fullscreen')||this.config.is_fullscreen;var
componentBackgroundColor='#ccc';if(isFullScreen)
{componentBackgroundColor=this.config.fullscreen_bgcolor;}else{componentBackgrou
ndColor=this.config.player_bgcolor;}
componentSet.navigators=[];var
displayerConfig={renderTo:componentSet.container,spinnerUrl:this.config.spinner_
url,errorImageUrl:this.config.error_image_url,mode:this.mode,slideCount:this.sli
deCount,playerType:this.config.player_type,playerBgColor:componentBackgroundColo
r};if(mode==='fullscreen')
{displayerConfig.spinnerUrl=this.config.spinner_url_fullscreen;}
if(this.config.player_type==='document'){componentSet.slidedisplayer=new
SSDocumentDisplayer(displayerConfig);}else if(this.config.player_type==='video')
{displayerConfig.videoBucket=this.config.video_bucket;displayerConfig.fileExtens
ion=this.config.file_extension;displayerConfig.pptLocation=this.config.ppt_locat
ion;componentSet.slidedisplayer=new
SSVideoDisplayer(displayerConfig);}else{componentSet.slidedisplayer=new
SSPresentationDisplayer(displayerConfig);}
componentSet.navigators.push(componentSet.slidedisplayer);this.hasToolbar=!
this.config.touch&&this.mode!
=='video';this.setDimensions();if(this.config.hosted_in!
=="mobile_slideview"&&this.currentComponentSet.width<510&&this.currentComponentS
et.height<426){this.config.disable_lastscreen=true;}
if(this.config.hosted_in=="embed")
{this.config.shareScreenClass=this._getShareScreenClass(this.currentComponentSet
.width,this.currentComponentSet.height);if(!this.config.shareScreenClass)
{this.config.disable_share=true;}}else{this.config.shareScreenClass="";}
if(this.config.touch){componentSet.touchInteraction=new
SSTouchInteraction({container:componentSet.slidedisplayer.container,playerType:t
his.config.player_type});componentSet.navigators.push(componentSet.touchInteract
ion);}else if(this.config.player_type!=='document'&&this.config.player_type!
=='video'){componentSet.bandInteraction=new
SSBandInteraction({container:componentSet.slidedisplayer.container,width:compone
ntSet.width,linksDisabled:this.config.disable_links});componentSet.navigators.pu
sh(componentSet.bandInteraction);}
if(this.config.has_lead&&!this.leadCreated){if(this.config.show_lead_cta)
{componentSet.leadcta=new
SSLeadCTA({renderTo:componentSet.container,html:this.config.lead_form_cta_html,h
as_audio:this.config.has_audio});componentSet.navigators.push(componentSet.leadc
ta);}
componentSet.leadForm=new
SSLeadForm({leadFormHtml:this.config.leadFormHtml||'',renderTo:componentSet.slid
edisplayer.container,lead_form_url:this.config.lead_form_url,show_skip_button:th
is.config.show_skip_button,width:this.currentComponentSet.width,height:this.curr
entComponentSet.height});componentSet.navigators.push(componentSet.leadForm);}
if(this.hasToolbar){componentSet.toolbar=new
SSToolbar({width:componentSet.width,height:this.TOOLBAR_HEIGHT,html:this.config.
toolbar_html,renderTo:componentSet.container,totalSlideCount:this.slideCount,pri
maryResourceType:this.config.primaryResourceType,disableShare:this.config.disabl
e_share,enableViewSS:this.config.enable_viewSS,isFullScreen:isFullScreen,playerT
ype:this.config.player_type,hasAudio:this.config.has_audio});componentSet.naviga
tors.push(componentSet.toolbar);}
if(this.config.has_audio&&!this.config.touch){componentSet.audiobar=new
SSAudioBar({renderTo:componentSet.container,slideCount:this.slideCount,height:th
is.AUDIOBAR_HEIGHT,html:this.config.audiobar_html,resource:this.audioResource,cs
s2ConfettiUrl:this.config.css2_confetti_url});componentSet.navigators.push(compo
nentSet.audiobar);}
if(this.config.has_video){componentSet.videoConfetti=$
('<img/>').attr({'src':this.config.confetti_url}).css({'position':'absolute','to
p':'-1px','left':'-1px'}).appendTo(componentSet.container);}
if(this.mode!=='video')
{this._bindComponentSetEvents();}};SSPlayerController.prototype._getShareScreenC
lass=function(componentSetWidth,componentSetHeight){var
shareScreenClass=null;if(componentSetWidth>360&&componentSetHeight>260)
{shareScreenClass="normal";}
else if(componentSetWidth>320&&componentSetHeight>250)
{shareScreenClass="small";}
else if(componentSetWidth>290&&componentSetHeight>280){shareScreenClass="tiny";}
return
shareScreenClass;};SSPlayerController.prototype._destroyComponentSet=function(mo
de){var componentSet=this.componentSets[mode];
$.each(componentSet.navigators,function(i,navigatorItem)
{navigatorItem.destroy();});delete(this.componentSets[mode].navigators);delete(t
his.componentSets[mode].slidedisplayer);if(mode==='fullscreen')
{componentSet.container.remove();$('body, html').css({'overflow':'auto'});}
var slide;for(var i=1;i<=this.slideCount;i++)
{slide=this.slides[i];slide.viewModes[mode].container.remove();delete(slide.view
Modes[mode]);}
delete(this.componentSets[mode].container);delete(this.componentSets[mode]);};SS
PlayerController.prototype._mapIndexes=function(){var
videoSlidesHash=this.config.video_hash;var realSlidePosition=1;var
totalSlides=this.slideCount;var
slideToRealIndexMap={},realIndexToIndexMap={};for(var i=1;i<=totalSlides;i++)
{if(videoSlidesHash&&videoSlidesHash[i])
{slideToRealIndexMap[i]=null;}else{slideToRealIndexMap[i]=realSlidePosition;real
IndexToIndexMap[realSlidePosition]=i;realSlidePosition++;}}
if(this.config.has_video){var tag=document.createElement('script');var
protocol=(this.config.use_ssl?'https://':'http://');tag.src=protocol+"www.youtub
e.com/player_api";var firstScriptTag=document.getElementsByTagName('script')
[0];firstScriptTag.parentNode.insertBefore(tag,firstScriptTag);}
this.indexToRealIndex=slideToRealIndexMap;this.realIndexToIndex=realIndexToIndex
Map;};SSPlayerController.prototype._percentageFailing=function(errorThreshold)
{var slidesFailing=0;for(var i in this.errorScores)
{if(this.errorScores[i]>errorThreshold){slidesFailing++;}}
if(this.slideCount===0){return 0;}
return
parseInt(100*(slidesFailing/this.slideCount),10);};SSPlayerController.prototype.
_initSlides=function()
{this.slides=[];this.slideModes.image=[];this.slideModes.html=[];var count=0;var
i,slide,size,slideConfig,errorScore,slideMode;var imageMetaRequired=false;var
realIndex,videoCount=0;var
videoSlidesHash=this.config.video_hash;this._mapIndexes();var
indexMap=this.indexToRealIndex;var
errorThreshold=this.AUTOVERIFICATION_ERROR_THRESHOLD;var percentageFailing=0;var
maxPercentageFailing=100;if(this.conversionVersion===2&&typeof
this.AUTOVERIFICATION_THRESHOLDS[this.algo]!=='undefined')
{errorThreshold=this.AUTOVERIFICATION_THRESHOLDS[this.algo];percentageFailing=th
is._percentageFailing(errorThreshold);}
if(this.conversionVersion===2&&typeof this.MAX_PERCENTAGE_FAILING[this.algo]!
=='undefined')
{maxPercentageFailing=this.MAX_PERCENTAGE_FAILING[this.algo];}
for(i in indexMap){if(indexMap.hasOwnProperty(i))
{i=parseInt(i,10);realIndex=indexMap[i];if(indexMap[i]===null)
{slideMode='ytube_video';}else if(this.mode==='html'&&!this.config.image_ready)
{slideMode='html';}else if(this.mode==='image')
{slideMode='image';}else{if(this.conversionVersion===2&&percentageFailing>maxPer
centageFailing)
{slideMode='image';imageMetaRequired=true;}else{errorScore=parseFloat(this.error
Scores[i]);if(isNaN(errorScore)){errorScore=this.DEFAULT_ERROR_SCORE;}
if(errorScore>errorThreshold)
{slideMode='image';imageMetaRequired=true;}else{slideMode='html';}}}
if(realIndex===null){realIndex=videoSlidesHash[i].parent;}
size=this.slideSizes[realIndex]||{};if(slideMode==='html')
{this.slideModes.html.push(realIndex);}else if(slideMode==='image')
{this.slideModes.image.push(realIndex);}
slideConfig={realIndex:realIndex,index:i,type:this.mode,slideMode:slideMode,inde
xGenerator:this._getIndexString,contentWidth:parseInt(size.width,10),contentHeig
ht:parseInt(size.height,10),playerWidth:this.currentComponentSet.width,errorImag
eUrl:this.config.error_image_url,spinnerUrl:this.config.spinner_url,spinnerUrlFu
llscreen:this.config.spinner_url_fullscreen,playerType:this.config.player_type,s
tripped_title:this.config.stripped_title,timestamp:this.config.timestamp,ppt_loc
ation:this.config.ppt_location,is_private:this.config.is_private,conversionVersi
on:this.conversionVersion||1};if(slideMode==='html')
{slideConfig.bucketLocation=this.config.bucket_location;slideConfig.availableSiz
es=this.availableBgSizes[realIndex];}else if(slideMode==='image')
{slideConfig.bucketLocation=this.config.image_bucket_location;slideConfig.availa
bleSizes=this.availableFallbackSizes[realIndex];}
if(this.config.is_private){if(slideMode=='html')
{if(this.htmlResourceSignatures&&this.htmlResourceSignatures[realIndex])
{slideConfig.htmlResourceSignature=this.htmlResourceSignatures[realIndex].url;}
slideConfig.privateImageSignatures=this.privateImageSignatures[realIndex];}else
if(slideMode=='image'){if(this.privateFallBackImageSignatures)
{slideConfig.privateImageSignatures=this.privateFallBackImageSignatures[realInde
x];}}}
if(this.config.player_type==='document'){slide=new
SSDocumentSlide(slideConfig);}else{if(slideMode!=='ytube_video'){slide=new
SSPresentationSlide(slideConfig);}else{videoCount+
+;slideConfig.video_id=videoSlidesHash[i].video_id;slideConfig.current_video_cou
nt=videoCount;slideConfig.loading_message_partial=this.config.loading_message_pa
rtial;if(i===1){slideConfig.contentWidth=728;slideConfig.contentHeight=542;}
slide=new SSVideoEmbedSlide(slideConfig);}}
if(this.mode==='image'&&this.slideLinks[realIndex]!==undefined)
{slide.updateResource('image',{linkData:this.slideLinks[realIndex]||{}});}
this.slides[i]=slide;delete(this.availableFallbackSizes[realIndex]);}}
if(imageMetaRequired===true)
{this.slidesCreated=true;this.fallbackMetaData&&this.fallbackMetaHandler(this.fa
llbackMetaData);}};SSPlayerController.prototype._getIndexString=function(number,
length){var s=''+number;var numberlen=s.length;var i;for(i=0;i<(length-
numberlen);i++){s='0'+s;}
return s;};SSPlayerController.prototype._getContainerSize=function()
{this.currentComponentSet.width=this.currentComponentSet.container.width();this.
currentComponentSet.height=this.currentComponentSet.container.height();};SSPlaye
rController.prototype.setDimensions=function(partial){var
componentSet=this.currentComponentSet;this._getContainerSize();partial=partial||
false;componentSet.viewHeight=componentSet.height;if(this.hasToolbar)
{componentSet.viewHeight=componentSet.viewHeight-this.TOOLBAR_HEIGHT-
this.TOOLBAR_PADDING;}
if(this.config.has_audio){componentSet.viewHeight=componentSet.viewHeight-
this.AUDIOBAR_HEIGHT;}
componentSet.slidedisplayer.setDimensions({width:componentSet.width,height:compo
nentSet.viewHeight,partial:partial});if(!partial){var
dimensions={height:componentSet.height,width:componentSet.width};this.currentCom
ponentSet.toolbar&&this.currentComponentSet.toolbar.setDimensions(dimensions);th
is.currentComponentSet.audiobar&&this.currentComponentSet.audiobar.setDimensions
(dimensions);this.currentComponentSet.shareScreen&&this.currentComponentSet.shar
eScreen.setDimensions(dimensions);this.currentComponentSet.lastScreen&&this.curr
entComponentSet.lastScreen.setDimensions(dimensions);}};SSPlayerController.proto
type.repaint=function(){if(this.currentComponentSet.slidedisplayer===undefined)
{return;}
this.setDimensions(true);this.setDimensions();this._repaintPrerenderedSlides();t
his.currentComponentSet.slidedisplayer._scrollTo(this.currentPosition);};SSPlaye
rController.prototype._repaintPrerenderedSlides=function(){var
prerenderedSlides=this.currentComponentSet.slidedisplayer.prerenderedSlides;var
slideIndex;if(prerenderedSlides.length>0){var
i;for(i=0;i<prerenderedSlides.length;i++)
{slideIndex=prerenderedSlides[i];this.slides[slideIndex].show(true);}}};SSPlayer
Controller.prototype.updateCurrentPosition=function(position){var
toolbar=this.currentComponentSet.toolbar;var
audiobar=this.currentComponentSet.audiobar;toolbar&&toolbar.updateCurrentPositio
n(position);audiobar&&audiobar.updateCurrentPosition(position);var
audioResource=this.audioResource;if(toolbar&&this.config.has_audio&&audioResourc
e)
{toolbar.updateAudioInteraction({audioReady:audioResource.audioReady,audioMetaRe
ady:audioResource.metaDataReady,audioPlaying:audioResource.playing});toolbar.vol
umeControl.setVolume(this.audioResource.volume);}
this.currentPosition=position;this.slides[position].painted=true;};SSPlayerContr
oller.prototype.displayLastScreen=function(){var that=this;if(typeof
this.currentComponentSet.lastScreen==='undefined')
{if(this.config.disable_lastscreen){this.currentComponentSet.lastScreen=new
SSReplayScreen({renderTo:this.currentComponentSet.container,settings:this.config
.replayscreen});}else{this.currentComponentSet.lastScreen=new
SSLastScreen({renderTo:this.currentComponentSet.container,settings:this.config.l
astscreen,embed_code:this.config.embed_code});}
$(this.currentComponentSet.lastScreen).bind('gotofirstslide',function(){$
(that).trigger('gotofirstslide');});$
(this.currentComponentSet.lastScreen).bind('showshareoptions',function()
{that.displayShareScreen();});}
this.currentComponentSet.lastScreen.show({width:this.currentComponentSet.width,h
eight:this.currentComponentSet.height});
$.slideshareEventManager.trackEvent('lastscreen_shown');};SSPlayerController.pro
totype.displayShareScreen=function(){var that=this;if(typeof
this.currentComponentSet.shareScreen==='undefined')
{this.currentComponentSet.shareScreen=new
SSShareScreen({renderTo:this.currentComponentSet.container,settings:this.config.
sharescreen,embed_code:this.config.embed_code,shareScreenClass:this.config.share
ScreenClass});}
this.currentComponentSet.shareScreen.show({width:this.currentComponentSet.width,
height:this.currentComponentSet.height});};SSPlayerController.prototype.loadFont
s=function(batchIndex){if(this.mode!=='html'){return;}
var i=batchIndex;if(this.fontResources[batchIndex].status==='initialized')
{this.fontResources[batchIndex].load();}};SSPlayerController.prototype._load=fun
ction(anchorIndex,isPreload){anchorIndex=anchorIndex||1;var i,slide;var
that=this;this.loadFonts(Math.ceil(anchorIndex/this.FONT_BATCH_COUNT));if(!
isPreload){var startPrerender=anchorIndex-
this.PRERENDER_COUNT;if(startPrerender<1){startPrerender=1;}
var
endPrerender=anchorIndex+this.PRERENDER_COUNT;if(endPrerender>this.slideCount)
{endPrerender=this.slideCount;}
for(i=startPrerender;i<=endPrerender;i++)
{this.slides[i].show();this.loadedSlides[i]=true;}
if($.browser.msie){var
prerenderedSlides=this.currentComponentSet.slidedisplayer.prerenderedSlides;var
slideIndex;for(i=0;i<prerenderedSlides.length;i++)
{slideIndex=prerenderedSlides[i];if(slideIndex<startPrerender||
slideIndex>endPrerender){slide=this.slides[slideIndex];slide.hide();}}}
this.currentComponentSet.slidedisplayer.setPrerenderedSlides({start:startPrerend
er,end:endPrerender});}
clearTimeout(this.preloadTimeoutId);this.preloadTimeoutId=setTimeout(function()
{var slideCount=that.PRELOAD_PRE_LIMIT+that.PRELOAD_POST_LIMIT+1;var
startSlideIndex=anchorIndex-that.PRELOAD_PRE_LIMIT;if(startSlideIndex<1)
{startSlideIndex=1;}
var endSlideIndex=startSlideIndex+slideCount-1;if(endSlideIndex>that.slideCount)
{endSlideIndex=that.slideCount;}
var startFontBatch=Math.ceil(startSlideIndex/that.FONT_BATCH_COUNT);var
endFontBatch=Math.ceil(endSlideIndex/that.FONT_BATCH_COUNT);for(i=startFontBatch
;i<=endFontBatch;i++){that.loadFonts(i);}
for(i=startSlideIndex;i<=endSlideIndex;i++){if(!that.loadedSlides[i])
{slide=that.slides[i];slide.load();that.loadedSlides[i]=true;}}
delete(that.preloadTimeoutId);},2000);};SSPlayerController.prototype.preloadMore
IfIdle=function(index){var loadingSlides=this.loadingSlides;var
pos=loadingSlides.indexOf(index);if(pos>-1){loadingSlides.splice(pos,1);}
if(!this.preloadTimeoutId&&loadingSlides.length<2){var
lastIndex=this.loadedSlides.length+1;if(lastIndex>this.realSlideCount){return;}
var that=this;setTimeout(function()
{that._load(lastIndex,true);},0);}};SSPlayerController.prototype.play=function(i
ndex,force){if(!this.initialized){this.playQueue=index||1;return;}
if(index===undefined){if(typeof this.playQueue!=='undefined')
{index=this.playQueue;delete(this.playQueue);}else{index=1;}}
if(index<1){index=1;}
if(index>this.slideCount){index=this.slideCount;}
if(this.currentPosition===index&&!force){return;}
if(this.mode==='video'){this.currentComponentSet.slidedisplayer.start();return;}
$.slideshareEventManager.trigger('slidechanged',
{index:index,force:force});};SSPlayerController.prototype._enableVideoReloading=
function(){var slideindexes=this.slides;for(var i in slideindexes)
{if(slideindexes.hasOwnProperty(i))
{if(slideindexes[i]&&slideindexes[i].config.slideMode==='ytube_video')
{slideindexes[i].emptySlide();}}}};SSPlayerController.prototype.switchView=funct
ion(mode){if(mode===this.currentViewMode){return;}
if(this.config.has_video){this._enableVideoReloading();$
('[id*=ytube_player]').remove();}
this._deactivateComponentSet(this.currentViewMode);if(this.componentSets[mode]==
=undefined){this._createComponentSet(mode);}
this._activateComponentSet(mode);this._setModeForSlides(mode);this.setDimensions
();this.play(this.currentPosition,true);this._load(this.currentPosition);this.up
dateCurrentPosition(this.currentPosition);};SSPlayerController.prototype._activa
teComponentSet=function(mode){var componentSet=this.componentSets[mode];var
navigators=componentSet.navigators;this.currentComponentSet=componentSet;this.cu
teste
teste

Contenu connexe

Tendances

Nodejs do teste de unidade ao de integração
Nodejs  do teste de unidade ao de integraçãoNodejs  do teste de unidade ao de integração
Nodejs do teste de unidade ao de integraçãoVinícius Pretto da Silva
 
The Ring programming language version 1.8 book - Part 65 of 202
The Ring programming language version 1.8 book - Part 65 of 202The Ring programming language version 1.8 book - Part 65 of 202
The Ring programming language version 1.8 book - Part 65 of 202Mahmoud Samir Fayed
 
The History of PHPersistence
The History of PHPersistenceThe History of PHPersistence
The History of PHPersistenceHugo Hamon
 
Simulator customizing & testing for Xcode 9
Simulator customizing & testing for Xcode 9Simulator customizing & testing for Xcode 9
Simulator customizing & testing for Xcode 9Bongwon Lee
 
Javasccript MV* frameworks
Javasccript MV* frameworksJavasccript MV* frameworks
Javasccript MV* frameworksKerry Buckley
 
Database Design Patterns
Database Design PatternsDatabase Design Patterns
Database Design PatternsHugo Hamon
 
Gta v savegame
Gta v savegameGta v savegame
Gta v savegamehozayfa999
 
Intro programacion funcional
Intro programacion funcionalIntro programacion funcional
Intro programacion funcionalNSCoder Mexico
 
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤Takahiro Inoue
 
The Ring programming language version 1.10 book - Part 54 of 212
The Ring programming language version 1.10 book - Part 54 of 212The Ring programming language version 1.10 book - Part 54 of 212
The Ring programming language version 1.10 book - Part 54 of 212Mahmoud Samir Fayed
 
스위프트를 여행하는 히치하이커를 위한 스타일 안내
스위프트를 여행하는 히치하이커를 위한 스타일 안내스위프트를 여행하는 히치하이커를 위한 스타일 안내
스위프트를 여행하는 히치하이커를 위한 스타일 안내Jung Kim
 
AngularJS Services
AngularJS ServicesAngularJS Services
AngularJS ServicesEyal Vardi
 
Silex meets SOAP & REST
Silex meets SOAP & RESTSilex meets SOAP & REST
Silex meets SOAP & RESTHugo Hamon
 
Design Patterns avec PHP 5.3, Symfony et Pimple
Design Patterns avec PHP 5.3, Symfony et PimpleDesign Patterns avec PHP 5.3, Symfony et Pimple
Design Patterns avec PHP 5.3, Symfony et PimpleHugo Hamon
 
PHPUnit でよりよくテストを書くために
PHPUnit でよりよくテストを書くためにPHPUnit でよりよくテストを書くために
PHPUnit でよりよくテストを書くためにYuya Takeyama
 
20 modules i haven't yet talked about
20 modules i haven't yet talked about20 modules i haven't yet talked about
20 modules i haven't yet talked aboutTatsuhiko Miyagawa
 
The Ring programming language version 1.6 book - Part 70 of 189
The Ring programming language version 1.6 book - Part 70 of 189The Ring programming language version 1.6 book - Part 70 of 189
The Ring programming language version 1.6 book - Part 70 of 189Mahmoud Samir Fayed
 
Map/reduce, geospatial indexing, and other cool features (Kristina Chodorow)
Map/reduce, geospatial indexing, and other cool features (Kristina Chodorow)Map/reduce, geospatial indexing, and other cool features (Kristina Chodorow)
Map/reduce, geospatial indexing, and other cool features (Kristina Chodorow)MongoSF
 
PHPUnit elevato alla Symfony2
PHPUnit elevato alla Symfony2PHPUnit elevato alla Symfony2
PHPUnit elevato alla Symfony2eugenio pombi
 

Tendances (20)

Nodejs do teste de unidade ao de integração
Nodejs  do teste de unidade ao de integraçãoNodejs  do teste de unidade ao de integração
Nodejs do teste de unidade ao de integração
 
The Ring programming language version 1.8 book - Part 65 of 202
The Ring programming language version 1.8 book - Part 65 of 202The Ring programming language version 1.8 book - Part 65 of 202
The Ring programming language version 1.8 book - Part 65 of 202
 
The History of PHPersistence
The History of PHPersistenceThe History of PHPersistence
The History of PHPersistence
 
Simulator customizing & testing for Xcode 9
Simulator customizing & testing for Xcode 9Simulator customizing & testing for Xcode 9
Simulator customizing & testing for Xcode 9
 
Javasccript MV* frameworks
Javasccript MV* frameworksJavasccript MV* frameworks
Javasccript MV* frameworks
 
Database Design Patterns
Database Design PatternsDatabase Design Patterns
Database Design Patterns
 
Gta v savegame
Gta v savegameGta v savegame
Gta v savegame
 
Intro programacion funcional
Intro programacion funcionalIntro programacion funcional
Intro programacion funcional
 
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
 
Coding website
Coding websiteCoding website
Coding website
 
The Ring programming language version 1.10 book - Part 54 of 212
The Ring programming language version 1.10 book - Part 54 of 212The Ring programming language version 1.10 book - Part 54 of 212
The Ring programming language version 1.10 book - Part 54 of 212
 
스위프트를 여행하는 히치하이커를 위한 스타일 안내
스위프트를 여행하는 히치하이커를 위한 스타일 안내스위프트를 여행하는 히치하이커를 위한 스타일 안내
스위프트를 여행하는 히치하이커를 위한 스타일 안내
 
AngularJS Services
AngularJS ServicesAngularJS Services
AngularJS Services
 
Silex meets SOAP & REST
Silex meets SOAP & RESTSilex meets SOAP & REST
Silex meets SOAP & REST
 
Design Patterns avec PHP 5.3, Symfony et Pimple
Design Patterns avec PHP 5.3, Symfony et PimpleDesign Patterns avec PHP 5.3, Symfony et Pimple
Design Patterns avec PHP 5.3, Symfony et Pimple
 
PHPUnit でよりよくテストを書くために
PHPUnit でよりよくテストを書くためにPHPUnit でよりよくテストを書くために
PHPUnit でよりよくテストを書くために
 
20 modules i haven't yet talked about
20 modules i haven't yet talked about20 modules i haven't yet talked about
20 modules i haven't yet talked about
 
The Ring programming language version 1.6 book - Part 70 of 189
The Ring programming language version 1.6 book - Part 70 of 189The Ring programming language version 1.6 book - Part 70 of 189
The Ring programming language version 1.6 book - Part 70 of 189
 
Map/reduce, geospatial indexing, and other cool features (Kristina Chodorow)
Map/reduce, geospatial indexing, and other cool features (Kristina Chodorow)Map/reduce, geospatial indexing, and other cool features (Kristina Chodorow)
Map/reduce, geospatial indexing, and other cool features (Kristina Chodorow)
 
PHPUnit elevato alla Symfony2
PHPUnit elevato alla Symfony2PHPUnit elevato alla Symfony2
PHPUnit elevato alla Symfony2
 

En vedette

Enhance Web Performance
Enhance Web PerformanceEnhance Web Performance
Enhance Web PerformanceAdam Lu
 
Javascript the Language of the Web
Javascript the Language of the WebJavascript the Language of the Web
Javascript the Language of the Webandersjanmyr
 
jQuery with javascript training by Technnovation Labs
jQuery with javascript training by Technnovation LabsjQuery with javascript training by Technnovation Labs
jQuery with javascript training by Technnovation LabsPrasad Shende
 
Javascript the Interlingua of the Web
Javascript the Interlingua of the WebJavascript the Interlingua of the Web
Javascript the Interlingua of the Webandersjanmyr
 
High Performance JavaScript (Amazon DevCon 2011)
High Performance JavaScript (Amazon DevCon 2011)High Performance JavaScript (Amazon DevCon 2011)
High Performance JavaScript (Amazon DevCon 2011)Nicholas Zakas
 
High Performance JavaScript - WebDirections USA 2010
High Performance JavaScript - WebDirections USA 2010High Performance JavaScript - WebDirections USA 2010
High Performance JavaScript - WebDirections USA 2010Nicholas Zakas
 
JavaScript Timers, Power Consumption, and Performance
JavaScript Timers, Power Consumption, and PerformanceJavaScript Timers, Power Consumption, and Performance
JavaScript Timers, Power Consumption, and PerformanceNicholas Zakas
 
JsDay - It's not you, It's me (or how to avoid being coupled with a Javascrip...
JsDay - It's not you, It's me (or how to avoid being coupled with a Javascrip...JsDay - It's not you, It's me (or how to avoid being coupled with a Javascrip...
JsDay - It's not you, It's me (or how to avoid being coupled with a Javascrip...Marco Cedaro
 
Essential java script design patterns
Essential java script design patternsEssential java script design patterns
Essential java script design patternsgaiashare
 
Matthew Eernisse, NodeJs, .toster {webdev}
Matthew Eernisse, NodeJs, .toster {webdev}Matthew Eernisse, NodeJs, .toster {webdev}
Matthew Eernisse, NodeJs, .toster {webdev}.toster
 

En vedette (13)

Enhance Web Performance
Enhance Web PerformanceEnhance Web Performance
Enhance Web Performance
 
Javascript the Language of the Web
Javascript the Language of the WebJavascript the Language of the Web
Javascript the Language of the Web
 
jQuery with javascript training by Technnovation Labs
jQuery with javascript training by Technnovation LabsjQuery with javascript training by Technnovation Labs
jQuery with javascript training by Technnovation Labs
 
Javascript the Interlingua of the Web
Javascript the Interlingua of the WebJavascript the Interlingua of the Web
Javascript the Interlingua of the Web
 
Eclipse SCADA
Eclipse SCADAEclipse SCADA
Eclipse SCADA
 
High Performance JavaScript (Amazon DevCon 2011)
High Performance JavaScript (Amazon DevCon 2011)High Performance JavaScript (Amazon DevCon 2011)
High Performance JavaScript (Amazon DevCon 2011)
 
High Performance JavaScript - WebDirections USA 2010
High Performance JavaScript - WebDirections USA 2010High Performance JavaScript - WebDirections USA 2010
High Performance JavaScript - WebDirections USA 2010
 
Responsible JavaScript
Responsible JavaScriptResponsible JavaScript
Responsible JavaScript
 
JavaScript Timers, Power Consumption, and Performance
JavaScript Timers, Power Consumption, and PerformanceJavaScript Timers, Power Consumption, and Performance
JavaScript Timers, Power Consumption, and Performance
 
JsDay - It's not you, It's me (or how to avoid being coupled with a Javascrip...
JsDay - It's not you, It's me (or how to avoid being coupled with a Javascrip...JsDay - It's not you, It's me (or how to avoid being coupled with a Javascrip...
JsDay - It's not you, It's me (or how to avoid being coupled with a Javascrip...
 
Essential java script design patterns
Essential java script design patternsEssential java script design patterns
Essential java script design patterns
 
NodeJS
NodeJSNodeJS
NodeJS
 
Matthew Eernisse, NodeJs, .toster {webdev}
Matthew Eernisse, NodeJs, .toster {webdev}Matthew Eernisse, NodeJs, .toster {webdev}
Matthew Eernisse, NodeJs, .toster {webdev}
 

Similaire à teste

srcArtifact.javasrcArtifact.javaclassArtifactextendsCave{pub.docx
srcArtifact.javasrcArtifact.javaclassArtifactextendsCave{pub.docxsrcArtifact.javasrcArtifact.javaclassArtifactextendsCave{pub.docx
srcArtifact.javasrcArtifact.javaclassArtifactextendsCave{pub.docxwhitneyleman54422
 
WordPressでIoTをはじめよう
WordPressでIoTをはじめようWordPressでIoTをはじめよう
WordPressでIoTをはじめようYuriko IKEDA
 
Building evented single page applications
Building evented single page applicationsBuilding evented single page applications
Building evented single page applicationsSteve Smith
 
Building Evented Single Page Applications
Building Evented Single Page ApplicationsBuilding Evented Single Page Applications
Building Evented Single Page ApplicationsSteve Smith
 
Logic Equations Resolver J Script
Logic Equations Resolver   J ScriptLogic Equations Resolver   J Script
Logic Equations Resolver J ScriptRoman Agaev
 
Javascript 基础
Javascript 基础Javascript 基础
Javascript 基础Alipay
 
TypeScript Introduction
TypeScript IntroductionTypeScript Introduction
TypeScript IntroductionDmitry Sheiko
 
Stop Making Excuses and Start Testing Your JavaScript
Stop Making Excuses and Start Testing Your JavaScriptStop Making Excuses and Start Testing Your JavaScript
Stop Making Excuses and Start Testing Your JavaScriptRyan Anklam
 
Beyond the DOM: Sane Structure for JS Apps
Beyond the DOM: Sane Structure for JS AppsBeyond the DOM: Sane Structure for JS Apps
Beyond the DOM: Sane Structure for JS AppsRebecca Murphey
 
04 Advanced Javascript
04 Advanced Javascript04 Advanced Javascript
04 Advanced Javascriptcrgwbr
 
Workshop 5: JavaScript testing
Workshop 5: JavaScript testingWorkshop 5: JavaScript testing
Workshop 5: JavaScript testingVisual Engineering
 
Taming that client side mess with Backbone.js
Taming that client side mess with Backbone.jsTaming that client side mess with Backbone.js
Taming that client side mess with Backbone.jsJarod Ferguson
 
Security Challenges in Node.js
Security Challenges in Node.jsSecurity Challenges in Node.js
Security Challenges in Node.jsWebsecurify
 
Opa presentation at GamesJs
Opa presentation at GamesJsOpa presentation at GamesJs
Opa presentation at GamesJsHenri Binsztok
 
JavaScript Testing for Rubyists
JavaScript Testing for RubyistsJavaScript Testing for Rubyists
JavaScript Testing for RubyistsJamie Dyer
 

Similaire à teste (20)

Introduccion a Jasmin
Introduccion a JasminIntroduccion a Jasmin
Introduccion a Jasmin
 
srcArtifact.javasrcArtifact.javaclassArtifactextendsCave{pub.docx
srcArtifact.javasrcArtifact.javaclassArtifactextendsCave{pub.docxsrcArtifact.javasrcArtifact.javaclassArtifactextendsCave{pub.docx
srcArtifact.javasrcArtifact.javaclassArtifactextendsCave{pub.docx
 
WordPressでIoTをはじめよう
WordPressでIoTをはじめようWordPressでIoTをはじめよう
WordPressでIoTをはじめよう
 
Jquery ajax & form
Jquery ajax & formJquery ajax & form
Jquery ajax & form
 
Building evented single page applications
Building evented single page applicationsBuilding evented single page applications
Building evented single page applications
 
Building Evented Single Page Applications
Building Evented Single Page ApplicationsBuilding Evented Single Page Applications
Building Evented Single Page Applications
 
Splitapp coding
Splitapp codingSplitapp coding
Splitapp coding
 
Logic Equations Resolver J Script
Logic Equations Resolver   J ScriptLogic Equations Resolver   J Script
Logic Equations Resolver J Script
 
Javascript 基础
Javascript 基础Javascript 基础
Javascript 基础
 
TypeScript Introduction
TypeScript IntroductionTypeScript Introduction
TypeScript Introduction
 
Ajax - a quick introduction
Ajax - a quick introductionAjax - a quick introduction
Ajax - a quick introduction
 
Mug17 gurgaon
Mug17 gurgaonMug17 gurgaon
Mug17 gurgaon
 
Stop Making Excuses and Start Testing Your JavaScript
Stop Making Excuses and Start Testing Your JavaScriptStop Making Excuses and Start Testing Your JavaScript
Stop Making Excuses and Start Testing Your JavaScript
 
Beyond the DOM: Sane Structure for JS Apps
Beyond the DOM: Sane Structure for JS AppsBeyond the DOM: Sane Structure for JS Apps
Beyond the DOM: Sane Structure for JS Apps
 
04 Advanced Javascript
04 Advanced Javascript04 Advanced Javascript
04 Advanced Javascript
 
Workshop 5: JavaScript testing
Workshop 5: JavaScript testingWorkshop 5: JavaScript testing
Workshop 5: JavaScript testing
 
Taming that client side mess with Backbone.js
Taming that client side mess with Backbone.jsTaming that client side mess with Backbone.js
Taming that client side mess with Backbone.js
 
Security Challenges in Node.js
Security Challenges in Node.jsSecurity Challenges in Node.js
Security Challenges in Node.js
 
Opa presentation at GamesJs
Opa presentation at GamesJsOpa presentation at GamesJs
Opa presentation at GamesJs
 
JavaScript Testing for Rubyists
JavaScript Testing for RubyistsJavaScript Testing for Rubyists
JavaScript Testing for Rubyists
 

Dernier

Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfPrecisely
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 

Dernier (20)

Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 

teste