📄 gogoprod.js
字号:
{_jB=CONST_LINK_SCRIPT;_jB=_jB.replace(new RegExp("%1!s!","i"),pArguments[0]);_jB=_jB.replace(new RegExp("%2!s!","i"),pArguments[1]);nType=CONST_ENP_TAGSCRIPT;}else if(_jB=="IMAGE"&&pArguments.length==3)
{_jB=CONST_IMAGE_SCRIPT;_jB=_jB.replace(new RegExp("%1!s!","i"),pArguments[0]);_jB=_jB.replace(new RegExp("%2!s!","i"),pArguments[1]);_jB=_jB.replace(new RegExp("%3!s!","i"),pArguments[2]);nType=CONST_ENP_TAGSCRIPT;}else
{_jB=MakeAbsolutePath(_jB);}}else
szTagOrCommand=szParam;if(szTagOrCommand=="MediaPlayer")
{nType=CONST_ENP_MEDIA_FILE;}this.ParameterList[i-2]=new _M(nType,szTagOrCommand,_jB,nItemNodeIndex,pArguments);}}function _X(_EB)
{if(_EB>=this.ParameterList.length)
return;return this.ParameterList[_EB].szTagOrCommand;}function _Y(_EB)
{if(_EB>=this.ParameterList.length)
return;return this.ParameterList[_EB]._jB;}function EventNode_GetParamType(_EB)
{if(_EB>=this.ParameterList.length)
return;return this.ParameterList[_EB].nType;}function EventNode_GetParamArgument(_EB,nWhichArg)
{if(_EB>=this.ParameterList.length)
return;if(nWhichArg>=this.ParameterList[_EB].ArgumentList.length)
return;return this.ParameterList[_EB].ArgumentList[nWhichArg];}function _W(_kB)
{var i,re,_fA=this.ParameterList.length;re=new RegExp(_kB,"i");for(i=0;i<_fA;i++)
{var _AB;_AB=this.ParameterList[i].szTagOrCommand.search(re);if(_AB!=-1)
{return this.ParameterList[i];}}return null;}function EventNode_GetParamItemNodeIndex(_EB)
{if(_EB>=this.ParameterList.length)
return;return this.ParameterList[_EB].nItemNodeIndex;}function _Q()
{if(g_bMediaFileCued)
return;var szParam;szParam=this.GetMediaFilename();if(szParam)
{MediaPlayer_SetFilename(unescape(szParam));}g_bMediaFileCued=1;return 0;}function _U()
{var _PB=this.GetParamByName("MediaPlayer");if(_PB)
return _PB._jB;else
return null;}function EventNode_GetMediaFileEntry()
{var _PB=this.GetParamByName("MediaPlayer");if(_PB)
{return parseInt(_PB.ArgumentList[CONST_ENPA_INDEX_MEDIA_ENTRY]);}return null;}function _b()
{var _SB=this.GetParamByName("#TOCTitle"),i;if(_SB==null)
return 0;var _iB=_SB._jB;if(_iB)
{_iB=unescape(_iB);var replaced="";for(i=0;i<_iB.length;i++)
{if(_iB.charAt(i)== '<')
replaced+="<";else
replaced+=_iB.charAt(i);}_iB=replaced;}return _iB;}function _a()
{var _LB=this.GetParamByName("#TOCIndent");if(_LB)
return _LB._jB;else
return 0
}function _c()
{return this.fTime;}function _O()
{if(g_bPreviewMode)
return 1;var i,_fA=this.ParameterList.length;for(i=0;i<_fA;i++)
{var _AB;_AB=this.ParameterList[i].nItemNodeIndex;if(_AB!=-1)
{if(_aA[_AB].nDownloadStatus==_B)
return 0;}}return 1;}function _Z()
{var _LB=this.GetParamByName("SlidesFrame");if(_LB)
return _LB._jB;else
return null;}function _S()
{var _LB=this.GetParamByName("HTML1");if(_LB)
return _LB._jB;else
return null;}function _T()
{var _LB=this.GetParamByName("Layout");if(_LB)
return _LB._jB;else
return null;}function _P()
{var i,_fA=this.ParameterList.length;this.nRelativeSize=0;for(i=0;i<_fA;i++)
{var _PB=this.ParameterList[i]
if(_PB.nItemNodeIndex!=-1)
{this.nRelativeSize+=_aA[_PB.nItemNodeIndex].CalcTotalSizeAtTime(this.fTime);_aA[_PB.nItemNodeIndex].nEventItemList[_aA[_PB.nItemNodeIndex].nEventItemList.length]=this.nID;}}}function _R(_FA)
{setTimeout("_DA()",1);MediaPlayer_UpdatePlayerClock(-1);for(i=0;i<this.ParameterList.length;i++)
{var _hB,_jB,nType;nType=this.GetParamType(i);_hB=this.GetParamTagname(i);_jB=this.GetParamValue(i);if(nType==CONST_ENP_MEDIA_FILE)
{if(!_FA&&!g_bHandlingMarkerHitEvent)
{MediaPlayer_SetCurrentLocation(this.GetMediaFileEntry(),this.fTime);}}else if(nType==_D)
{if(_hB=="#EVAL")
{try
{eval(_jB);}catch(e)
{}}else if(_hB=="#SLIDECLICK")
{var _AB=_jB.indexOf(",");if(_AB!=-1)
{var szArgument=_jB.substr(_AB+1);_jB=_jB.substr(0,_AB);this.ClickSlide(parseInt(_jB),parseInt(szArgument));}}}else
{var j,pTag=null;for(j=0;j<g_rgEventTags.length;j++)
{if(g_rgEventTags[j].id==_hB)
{pTag=g_rgEventTags[j];break;}}if(!pTag)
{pTag=document.all.item(_hB);if(!pTag)
return;g_rgEventTags[g_rgEventTags.length]=pTag;}var nNodeIndex=this.GetParamItemNodeIndex(i);if(nNodeIndex==-1||pTag.IndexNodeIndex!=nNodeIndex||g_bForceReload)
{this.ApplyEventParam(pTag,_jB,nType);pTag.IndexNodeIndex=nNodeIndex;}}}}function NavigateIFRAME(szFrameID)
{var pFrame=document.all.item(szFrameID);if(pFrame)
{try
{if(pFrame.WMNextSrc.indexOf("javascript:")== 0 &&
pFrame.WMNextSrc.indexOf("PreLoad()")==-1)
{if(_I())
pFrame.contentWindow.navigate(unescape(pFrame.WMNextSrc));else
pFrame.navigate(unescape(pFrame.WMNextSrc));}else
pFrame.src=unescape(pFrame.WMNextSrc);}catch(e)
{window.setTimeout("NavigateIFRAME(\""+pFrame.id+"\");",100);}pFrame.parentElement.runtimeStyle.removeAttribute("visibility",0);}}function _N(pTag,_jB,nType)
{if(pTag!=null)
{if(pTag.nodeName=="IFRAME")
{if(_jB=="")
{pTag.parentElement.runtimeStyle.visibility="hidden";}else
{if(g_bForceReload||pTag.WMNextSrc!=_jB||g_bStatic!=g_bLastSlideStatic)
{g_bForceReload=0;if(pTag.id!="SlidesFrame"||!_I())
{pTag.parentElement.runtimeStyle.visibility="hidden";}if(nType==CONST_ENP_TAGSCRIPT)
pTag.src="";pTag.WMNextSrc=_jB;if(_jB.indexOf("PreLoad()")!=-1)
{pTag.src="";g_bStatic=0;g_iCurrentOnClickEvent=0;g_iCurrentSlide=-1;}else if(g_bStatic&&pTag.id=="SlidesFrame"&&nType!=CONST_ENP_TAGSCRIPT)
{pTag.WMNextSrc=pTag.WMNextSrc+"#0";}window.setTimeout("NavigateIFRAME(\""+pTag.id+"\");",50);g_bLastSlideStatic=g_bStatic;}}}else if(pTag.nodeName=="LINK")
{g_bRecalcPlayerClockPosition=1;var i,pTags=document.all.tags("DIV");for(i=0;i<pTags.length;i++)
{var pDIV=pTags(i);pDIV.style.removeExpression("width");pDIV.style.removeExpression("height");}setTimeout("UpdateCSSFile(\""+unescape(_jB)+"\");",1);}else
{return 0;}return 1;}return 0;}function UpdateCSSFile(szVal)
{document.all.LINKLAYOUT.href=szVal;RemoveCustomDIVAttributes();g_bRecalcPlayerClockPosition=1;}function Slide_DelayClick(delayedAttempts)
{if(delayedAttempts>10)
return;var i=0;try
{if(SlidesFrame)
SlidesFrame.document.body.pptNext();}catch(e)
{setTimeout("Slide_DelayClick("+(delayedAttempts+1)+")",50);}}function EventNode_ClickSlide(iIndex,iSlide)
{if(g_iCurrentSlide==iSlide)
{if(iIndex==0&&g_iCurrentOnClickEvent!=0)
{g_bStatic=0;g_bForceReload=1;g_iCurrentOnClickEvent=0;}else if(!g_bStatic&&g_iCurrentOnClickEvent<iIndex)
{for(i=0;i<iIndex-g_iCurrentOnClickEvent;i++)
Slide_DelayClick(1);g_iCurrentOnClickEvent=iIndex;}}else if(iIndex==0)
{g_iCurrentOnClickEvent=0;g_iCurrentSlide=iSlide;g_bStatic=0;}else
{g_iCurrentOnClickEvent=-1;g_iCurrentSlide=iSlide;g_bStatic=1;}}function AddEvent(_MB)
{_ZA[_ZA.length]=_MB;}function SetPresentationTime(_JA,_FA)
{var _LB=null,i,_oA=_ZA.length;_LB=_ZA[0];for(i=1;i<_oA;i++)
{if(_ZA[i].fTime>_JA)
{break;}_LB=_ZA[i];}if(!g_bPreviewMode&&_JA!=0.0)
{if(g_bUseMP7||_JA!=0.0)
g_fIgnoreMessages=1;if(!g_bUseMP7)
g_bPlayWhenOpen=1;}g_nSeekEntryWhenOpen=_LB.GetMediaFileEntry();g_fSeekTimeWhenOpen=_JA;_t(_LB,_FA);}function GetPresentationTime()
{var fCurrentPosition=MediaPlayer_GetCurrentPosition();var nCurrentEntry=MediaPlayer_GetCurrentEntry();if(fCurrentPosition<=0.0||isNaN(fCurrentPosition))
fCurrentPosition=0.0;var i,nWMVCount=g_rgfWMVStartTimes.length;if(nCurrentEntry<0||nCurrentEntry>=nWMVCount)
fRetVal=fCurrentPosition;else
fRetVal=g_rgfWMVStartTimes[nCurrentEntry]+fCurrentPosition;if(fRetVal>g_nDuration)
fRetVal=g_nDuration;return fRetVal;}function _u(nID,_FA)
{var _fA=_ZA.length;if(nID>=0&&nID<_fA)
{return _t(_ZA[nID],_FA);}}function _t(_LB,_FA)
{if(_LB==null)
{return 0;}if(_XA&&!_FA)
{if(_LB.GetMediaFileEntry()== _XA.GetMediaFileEntry())
{var bCannotSeek=!MediaPlayer_CanSeek();if(g_bCannotSeekYet!=bCannotSeek)
setTimeout("MediaPlayer_UpdateNextPrevButtons();",1);if(bCannotSeek)
{return 0;}}}if(g_bUseBandwidthManagement&&_XA)
{if(_LB.nID!=_XA.nID+1)
{g_nSeekToEvent=_LB.nID;m_bNeedRebuildItemArray=1;}}_XA=_LB;_LB.ExecuteEvent(_FA);if(g_bUseBandwidthManagement&&!_LB.AreAllItemsDownloaded())
{g_bPausedForDownload=1;try
{setTimeout("MediaPlayer_Pause();",1);}catch(e)
{ }_q();_BA();window.setTimeout("_p("+_FA+")",400,"JavaScript");}}function _p(_FA)
{if(!_XA.AreAllItemsDownloaded())
{window.setTimeout("_p("+_FA+")",400,"JavaScript");}else
{g_bPausedForDownload=0;MediaPlayer_Play();_XA.ExecuteEvent(_FA);}}function _f(_HB,_iA)
{var i,_fA=_ZA.length;for(i=_HB.nID+_iA;i>=0&&i<_fA;i+=_iA)
{if(_ZA[i].GetTOCTitle()!= 0)
{return _ZA[i];}}if(_iA<0)
return _ZA[0];else
return _ZA[_fA-1];}function _r(elem)
{if(elem.offsetParent!=null)
return elem.offsetLeft+_r(elem.offsetParent);return elem.offsetLeft;}function _s(elem)
{if(elem.offsetParent!=null)
return elem.offsetTop+_s(elem.offsetParent);return elem.offsetTop;}function EllipsifyTOC(pSingleDiv)
{if(CheckBrowserIE60())
return;var _lB=TOCContentDiv;var _pA=_r(TOCContentDiv);var _qA=_pA+TOCContentDiv.clientWidth;if(_qA==0)
return;if(!pSingleDiv)
{var divs=TOCContentDiv.all.tags("div"),i
for(i=0;i<divs.length;i++)
{var pDiv=divs[i];EllipsifyDiv(pDiv,_qA);}}else
{EllipsifyDiv(pSingleDiv,_qA);}}function EllipsifyDiv(pDiv,nParentLimitX)
{pDiv.innerHTML=_ZA[parseInt(pDiv.WMEventID)].GetTOCTitle();var _JB=document.body.createTextRange();_JB.moveToElementText(pDiv);var _kA,_lA,bDoIt=0;_kA=_JB.boundingLeft;_lA=_kA+_JB.boundingWidth;if(_JB.boundingWidth==0)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -