Software: Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.12 with Suhosin-Patch mod_ssl/2.2.8 OpenSSL/0.9.8g. PHP/5.2.4-2ubuntu5.12 uname -a: Linux forum.circlefusion.com 2.6.24-19-server #1 SMP Wed Jun 18 15:18:00 UTC 2008 i686 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /usr/lib/vmware-tools/hlp/wwhelp/wwhimpl/js/scripts/ drwxr-xr-x |
Viewing file: javascpt.js (5.32 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) | // Copyright (c) 2000-2003 Quadralay Corporation. All rights reserved. // function WWHJavaScript_Object() { this.mSettings = new WWHJavaScriptSettings_Object(); this.mMessages = new WWHJavaScriptMessages_Object(); this.mInitialTab = -1; this.mbClickedChangeTab = false; this.mbChangingTabs = false; this.mCurrentTab = -1; this.mPanels = null; this.mTabs = null; this.mMaxHTMLSegmentSize = 8192; // Best tested value is 8192 this.fInit = WWHJavaScript_Init; this.fClickedChangeTab = WWHJavaScript_ClickedChangeTab; this.fClickedChangeTabWithDelay = WWHJavaScript_ClickedChangeTabWithDelay; this.fStartChangeTab = WWHJavaScript_StartChangeTab; this.fEndChangeTab = WWHJavaScript_EndChangeTab; this.fSyncTOC = WWHJavaScript_SyncTOC; this.fFavoritesCurrent = WWHJavaScript_FavoritesCurrent; // Load up messages // this.mMessages.fSetByLocale(WWHFrame.WWHBrowser.mLocale); // Disable hover text for accessibility or if popups are not supported // if (( ! WWHFrame.WWHBrowser.mbSupportsPopups) || (WWHFrame.WWHHelp.mbAccessible)) { this.mSettings.mHoverText.mbEnabled = false; } } function WWHJavaScript_Init() { // Create panels and tabs objects // this.mPanels = new WWHPanels_Object(); this.mTabs = new WWHTabs_Object(this.mPanels.mPanelEntries.length); // Determine initial tab setting // switch (WWHFrame.WWHHelp.mInitialTabName) { case "contents": this.mInitialTab = WWHFrame.WWHOutline.mPanelTabIndex; break; case "index": this.mInitialTab = WWHFrame.WWHIndex.mPanelTabIndex; break; case "search": this.mInitialTab = WWHFrame.WWHSearch.mPanelTabIndex; break; case "favorites": this.mInitialTab = WWHFrame.WWHFavorites.mPanelTabIndex; break; } if (this.mInitialTab < 0) { this.mInitialTab = 0; } // Complete initialization process // if ( ! WWHFrame.WWHHandler.mbInitialized) { WWHFrame.WWHHandler.mbInitialized = true; WWHFrame.WWHHelp.fHandlerInitialized(); } } function WWHJavaScript_ClickedChangeTab(ParamIndex) { if ( ! this.mbClickedChangeTab) { // Change tabs // this.mbClickedChangeTab = true; this.fStartChangeTab(ParamIndex); } } function WWHJavaScript_ClickedChangeTabWithDelay(ParamIndex) { setTimeout("WWHFrame.WWHJavaScript.fClickedChangeTab(" + ParamIndex + ");", 1); } function WWHJavaScript_StartChangeTab(ParamIndex) { if (( ! this.mbChangingTabs) && (this.mCurrentTab != ParamIndex)) { // Signal that we are changing tabs // this.mbChangingTabs = true; // Update tab index // this.mCurrentTab = ParamIndex; // Update tab frame // this.mTabs.fReload(); } } function WWHJavaScript_EndChangeTab() { if (this.mbClickedChangeTab) { this.mbClickedChangeTab = false; } // Signal that the change tab process is complete // this.mbChangingTabs = false; // Perform additional processing if initial tab specified // if (WWHFrame.WWHHelp.mInitialTabName == "contents") { WWHFrame.WWHHelp.mInitialTabName = null; WWHFrame.WWHHelp.mbAutoSyncTOC = true; } setTimeout("WWHFrame.WWHHelp.fAutoSyncTOC();", 1); } function WWHJavaScript_SyncTOC(ParamBookIndex, ParamFileIndex, ParamAnchor, bParamReportError) { var TabIndex; var Index; // Confirm TOC is available as a tab // if (this.mSettings.mTOC.mbShow) { // Confirm file is part of a known book // if ((ParamBookIndex >= 0) && (ParamFileIndex >= 0)) { // Determine visibility // if (this.mPanels.fGetCurrentPanelObject().mPanelTabTitle == this.mMessages.mTabsTOCLabel) { // Sync TOC // WWHFrame.WWHOutline.fSync(ParamBookIndex, ParamFileIndex, ParamAnchor, true, bParamReportError); } else { // Determine tab to display for TOC // TabIndex = -1; Index = 0; while ((TabIndex == -1) && (Index < WWHFrame.WWHJavaScript.mPanels.mPanelEntries.length)) { if (WWHFrame.WWHJavaScript.mPanels.mPanelEntries[Index].mPanelObject.mPanelTabTitle == WWHFrame.WWHJavaScript.mMessages.mTabsTOCLabel) { TabIndex = Index; } Index++; } // Display contents tab and sync // if (TabIndex != -1) { // Force auto sync on tab display // WWHFrame.WWHHelp.mInitialTabName = "contents"; WWHFrame.WWHJavaScript.fStartChangeTab(TabIndex); } } } } } function WWHJavaScript_FavoritesCurrent(ParamBookIndex, ParamFileIndex) { WWHFrame.WWHFavorites.fSetCurrent(ParamBookIndex, ParamFileIndex); // Update navigation // if (this.mPanels.fGetCurrentPanelObject().mPanelTabTitle == this.mMessages.mTabsFavoritesLabel) { // Refresh // WWHFrame.WWHJavaScript.mPanels.fReloadNavigation(); } } |
:: Command execute :: | |
--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0066 ]-- |