JAVASCRIPT   23

config.js

Guest on 5th June 2021 05:32:11 PM

  1.       var aliasConfig = {
  2. appName : ["", "", ""],
  3. totalPageCount : [],
  4. largePageWidth : [],
  5. largePageHeight : [],
  6. normalPath : [],
  7. largePath : [],
  8. thumbPath : [],
  9.  
  10. ToolBarsSettings:[],
  11. TitleBar:[],
  12. appLogoIcon:["appLogoIcon"],
  13. appLogoLinkURL:["appLogoLinkURL"],
  14. bookTitle : [],
  15. bookDescription : [],
  16. ButtonsBar : [],
  17. ShareButton : [],
  18. ShareButtonVisible : ["socialShareButtonVisible"],
  19. ThumbnailsButton : [],
  20. ThumbnailsButtonVisible : ["enableThumbnail"],
  21. ZoomButton : [],
  22. ZoomButtonVisible : ["enableZoomIn"],
  23. FlashDisplaySettings : [],
  24. MainBgConfig : [],
  25. bgBeginColor : ["bgBeginColor"],
  26. bgEndColor : ["bgEndColor"],
  27. bgMRotation : ["bgMRotation"],
  28. backGroundImgURL : ["mainbgImgUrl","innerMainbgImgUrl"],
  29. pageBackgroundColor : ["pageBackgroundColor"],
  30. flipshortcutbutton : [],
  31. BookMargins : [],
  32. topMargin : [],
  33. bottomMargin : [],
  34. leftMargin : [],
  35. rightMargin : [],
  36. HTMLControlSettings : [],
  37. linkconfig : [],
  38. LinkDownColor : ["linkOverColor"],
  39. LinkAlpha : ["linkOverColorAlpha"],
  40. OpenWindow : ["linkOpenedWindow"],
  41. searchColor : [],
  42. searchAlpha : [],
  43. SearchButtonVisible : ["searchButtonVisible"],
  44.  
  45. productName : [],
  46. homePage : [],
  47. enableAutoPlay : ["autoPlayAutoStart"],
  48. autoPlayDuration : ["autoPlayDuration"],
  49. autoPlayLoopCount : ["autoPlayLoopCount"],
  50. BookMarkButtonVisible : [],
  51. googleAnalyticsID : ["googleAnalyticsID"],
  52. OriginPageIndex : [],  
  53. HardPageEnable : ["isHardCover"],  
  54. UIBaseURL : [],  
  55. RightToLeft: ["isRightToLeft"],    
  56.  
  57. LeftShadowWidth : ["leftPageShadowWidth"],     
  58. LeftShadowAlpha : ["pageShadowAlpha"],
  59. RightShadowWidth : ["rightPageShadowWidth"],
  60. RightShadowAlpha : ["pageShadowAlpha"],
  61. ShortcutButtonHeight : [],   
  62. ShortcutButtonWidth : [],
  63. AutoPlayButtonVisible : ["enableAutoPlay"],    
  64. DownloadButtonVisible : ["enableDownload"],    
  65. DownloadURL : ["downloadURL"],
  66. HomeButtonVisible :["homeButtonVisible"],
  67. HomeURL:['btnHomeURL'],
  68. BackgroundSoundURL:['bacgroundSoundURL'],
  69. //TableOfContentButtonVisible:["BookMarkButtonVisible"],
  70. PrintButtonVisible:["enablePrint"],
  71. toolbarColor:["mainColor","barColor"],
  72. loadingBackground:["mainColor","barColor"],
  73. BackgroundSoundButtonVisible:["enableFlipSound"],
  74. FlipSound:["enableFlipSound"],
  75. MiniStyle:["userSmallMode"],
  76. retainBookCenter:["moveFlipBookToCenter"],
  77. totalPagesCaption:["totalPageNumberCaptionStr"],
  78. pageNumberCaption:["pageIndexCaptionStrs"]
  79. };
  80. var aliasLanguage={
  81. frmPrintbtn:["frmPrintCaption"],
  82. frmPrintall : ["frmPrintPrintAll"],
  83. frmPrintcurrent : ["frmPrintPrintCurrentPage"],
  84. frmPrintRange : ["frmPrintPrintRange"],
  85. frmPrintexample : ["frmPrintExampleCaption"],
  86. btnLanguage:["btnSwicthLanguage"],
  87. btnTableOfContent:["btnBookMark"]
  88. }
  89. ;
  90.       var bookConfig = {
  91.       appName:'flippdf',
  92.       totalPageCount : 0,
  93.       largePageWidth : 1080,
  94.       largePageHeight : 1440,
  95.       normalPath : "files/page/",
  96.       largePath : "files/large/",
  97.       thumbPath : "files/thumb/",
  98.      
  99.       ToolBarsSettings:"",
  100.       TitleBar:"",
  101.       appLogoLinkURL:"waverunners.yamaha-owners-manuals.com",
  102.       bookTitle:"FLIPBUILDER",
  103.       bookDescription:"",
  104.       ButtonsBar:"",
  105.       ShareButton:"",
  106.      
  107.       ThumbnailsButton:"",
  108.       ThumbnailsButtonVisible:"Show",
  109.       ZoomButton:"",
  110.       ZoomButtonVisible:"Yes",
  111.       FlashDisplaySettings:"",
  112.       MainBgConfig:"",
  113.       bgBeginColor:"#cccccc",
  114.       bgEndColor:"#eeeeee",
  115.       bgMRotation:45,
  116.       pageBackgroundColor:"#FFFFFF",
  117.       flipshortcutbutton:"Show",
  118.       BookMargins:"",
  119.       topMargin:10,
  120.       bottomMargin:10,
  121.       leftMargin:10,
  122.       rightMargin:10,
  123.       HTMLControlSettings:"",
  124.       linkconfig:"",
  125.       LinkDownColor:"#808080",
  126.       LinkAlpha:0.5,
  127.       OpenWindow:"_Blank",
  128.  
  129.       BookMarkButtonVisible:'true',
  130.       productName : 'Demo created by Flip PDF',
  131.       homePage : 'http://www.flipbuilder.com/',
  132.       isFlipPdf : "true",
  133.       TableOfContentButtonVisible:"true",
  134.       searchTextJS:'javascript/search_config.js',
  135.       searchPositionJS:undefined
  136. };
  137.      
  138.      
  139.      
  140. bookConfig.loadingCaption="Loading";
  141. bookConfig.loadingCaptionColor="#DDDDDD";
  142. bookConfig.loadingBackground="#000000";
  143. bookConfig.appLogoIcon="./files/mobile-ext/appLogoIcon.png";
  144. bookConfig.logoHeight="40";
  145. bookConfig.logoPadding="0";
  146. bookConfig.logoTop="0";
  147. bookConfig.appLogoOpenWindow="Blank";
  148. bookConfig.toolbarColor="#000000";
  149. bookConfig.iconColor="#ECF5FB";
  150. bookConfig.pageNumColor="#333333";
  151. bookConfig.FlipSound="Enable";
  152. bookConfig.QRCode="Hide";
  153. bookConfig.HomeButtonVisible="NO";
  154. bookConfig.ShareButtonVisible="NO";
  155. bookConfig.ThumbnailsButtonVisible="Show";
  156. bookConfig.thumbnailColor="#333333";
  157. bookConfig.thumbnailAlpha="70";
  158. bookConfig.ZoomButtonVisible="Yes";
  159. bookConfig.BookMarkButtonVisible="Hide";
  160. bookConfig.TableOfContentButtonVisible="Show";
  161. bookConfig.bookmarkBackground="#000000";
  162. bookConfig.bookmarkFontColor="#CCCCCC";
  163. bookConfig.SearchButtonVisible="Show";
  164. bookConfig.leastSearchChar="3";
  165. bookConfig.searchFontColor="#FFFFFF";
  166. bookConfig.PrintButtonVisible="NO";
  167. bookConfig.BackgroundSoundButtonVisible="Enable";
  168. bookConfig.BackgroundSoundLoop="-1";
  169. bookConfig.AutoPlayButtonVisible="Yes";
  170. bookConfig.autoPlayAutoStart="No";
  171. bookConfig.autoPlayDuration="9";
  172. bookConfig.autoPlayLoopCount="1";
  173. bookConfig.minZoomWidth="700";
  174. bookConfig.minZoomHeight="518";
  175. bookConfig.mouseWheelFlip="yes";
  176. bookConfig.DownloadButtonVisible="Hide";
  177. bookConfig.bgBeginColor="#E2E2E2";
  178. bookConfig.bgEndColor="#E2E2E2";
  179. bookConfig.bgMRotation="90";
  180. bookConfig.LeftShadowWidth="90";
  181. bookConfig.LeftShadowAlpha="0.6";
  182. bookConfig.RightShadowWidth="55";
  183. bookConfig.RightShadowAlpha="0.6";
  184. bookConfig.HardPageEnable="No";
  185. bookConfig.hardCoverBorderWidth="8";
  186. bookConfig.borderColor="#572F0D";
  187. bookConfig.outerCoverBorder="Yes";
  188. bookConfig.cornerRound="8";
  189. bookConfig.pageBackgroundColor="#E8E8E8";
  190. bookConfig.flipshortcutbutton="Show";
  191. bookConfig.BindingType="side";
  192. bookConfig.RightToLeft="No";
  193. bookConfig.flippingTime="0.3";
  194. bookConfig.retainBookCenter="Yes";
  195. bookConfig.FlipStyle="Flip";
  196. bookConfig.showDoublePage="Yes";
  197. bookConfig.topMargin="10";
  198. bookConfig.bottomMargin="10";
  199. bookConfig.leftMargin="10";
  200. bookConfig.rightMargin="10";
  201. bookConfig.leftMarginOnMobile="0";
  202. bookConfig.topMarginOnMobile="0";
  203. bookConfig.rightMarginOnMobile="0";
  204. bookConfig.bottomMarginOnMobile="0";
  205. bookConfig.maxWidthToSmallMode="400";
  206. bookConfig.maxHeightToSmallMode="300";
  207. bookConfig.LinkDownColor="#800080";
  208. bookConfig.LinkAlpha="0.2";
  209. bookConfig.OpenWindow="Blank";
  210. bookConfig.showLinkHint="No";
  211. bookConfig.googleAnalyticsID="UA-106300693-1";
  212.  
  213. bookConfig.macBookVersion = "HFWcqvHCaQkvCDabuqLKeaqjCAUVliCJTVqhHEWaknODRatuDHaXhoEMeavqMJVQisLOadvuIMcamoGLebpvMOTR4b04c116_";
  214. bookConfig.UIBaseURL="mobile/";
  215. bookConfig.isFlipPdf=false;
  216. bookConfig.searchTextJS="mobile/javascript/search_config.js";
  217. bookConfig.totalPageCount=84;
  218. bookConfig.largePageWidth=416;
  219. bookConfig.largePageHeight=590;
  220. bookConfig.bookTitle="LIT-11626-28-36";
  221. bookConfig.normalPath="./files/mobile/";
  222. bookConfig.largePath="./files/mobile/";
  223. bookConfig.productName="Flip PDF Professional";
  224. ;function orgt(s){ return binl2hex(core_hx(str2binl(s), s.length * chrsz));};
  225. bookConfig.thumbPath="./files/thumb/";
  226. var language=[{"language" : "English","btnFirstPage" : "First","btnNextPage" : "Next Page","btnLastPage" : "Last","btnPrePage" : "Previous Page","btnDownload" : "Download","btnPrint" : "Print","btnSearch" : "Search","btnClearSearch" : "Clear","btnBookMark" : "Table of content","btnHelp" : "Help","btnFullScreen" : "Enable FullScreen","btnDisableFullScreen" : "Disable FullScreen","btnSoundOn" : "Sound On","btnSoundOff" : "Sound Off","btnShareEmail" : "Share","btnSocialShare" : "Social Share","btnZoomIn" : "Zoom In","btnZoomOut" : "Zoom Out","btnDragToMove" : "Move by mouse drag","btnAutoFlip" : "Auto Flip","btnStopAutoFlip" : "Stop Auto Flip","btnGoToHome" : "Return Home","frmHelpCaption" : "Help","frmHelpTip1" : "Double click to zoom in or out","frmHelpTip2" : "Drag the page corner to view","frmPrintCaption" : "Print","frmPrintBtnCaption" : "Print","frmPrintPrintAll" : "Print All Pages","frmPrintPrintCurrentPage" : "Print Current Page","frmPrintPrintRange" : "Print Range","frmPrintExampleCaption" : "Example: 2,5,8-26","frmPrintPreparePage" : "Preparing Page:","frmPrintPrintFailed" : "Print Failed:","pnlSearchInputInvalid" : "The search text is too short.","loginCaption" : "Login","loginInvalidPassword" : "Not a valid password!","loginPasswordLabel" : "Password:","loginBtnLogin" : "Login","loginBtnCancel" : "Cancel","btnThumb" : "Thumbnails","lblPages" : "Pages:","lblPagesFound" : "Pages:","lblPageIndex" : "Page","btnAbout" : "About","frnAboutCaption" : "About & Contact","btnSinglePage" : "Single Page","btnDoublePage" : "Double Page","btnSwicthLanguage" : "Switch Language","tipChangeLanguage" : "Please select a language below...","btnMoreOptionsLeft" : "More Options","btnMoreOptionsRight" : "More Options","btnFit" : "Fit Window","smallModeCaption" : "Click to view in fullscreen","btnAddAnnotation" : "Add Annotations","btnAnnotation" : "Annotations","FlipPageEditor_SaveAndExit" : "Save and Exit","FlipPageEditor_Exit" : "Exit","DrawToolWindow_Redo" : "Redo","DrawToolWindow_Undo" : "Undo","DrawToolWindow_Clear" : "Clear","DrawToolWindow_Brush" : "Brush","DrawToolWindow_Width" : "Width","DrawToolWindow_Alpha" : "Alpha","DrawToolWindow_Color" : "Color","DrawToolWindow_Eraser" : "Eraser","DrawToolWindow_Rectangular" : "Rectangular","DrawToolWindow_Ellipse" : "Ellipse","TStuff_BorderWidth" : "Border Width","TStuff_BorderAlph" : "Border Alpha","TStuff_BorderColor" : "Border Color","DrawToolWindow_TextNote" : "Text Note","AnnotMark" : "Book Mark","lastpagebtnHelp" : "Last page","firstpagebtnHelp" : "First page","homebtnHelp" : "Return to home page","aboubtnHelp" : "About","screenbtnHelp" : "Open this application in full-screen mode","helpbtnHelp" : "Show help","searchbtnHelp" : "Search from pages","pagesbtnHelp" : "Take a look at the thumbnail of this brochure","bookmarkbtnHelp" : "Open Bookmark","AnnotmarkbtnHelp" : "Open Table of content","printbtnHelp" : "Print the brochure","soundbtnHelp" : "Turn on or off the sound","sharebtnHelp" : "Send Email to","socialSharebtnHelp" : "Social Share","zoominbtnHelp" : "Zoom in","downloadbtnHelp" : "Downdlaod this brochure","pagemodlebtnHelp" : "Switch Single and double page mode","languagebtnHelp" : "Switch Lauguage","annotationbtnHelp" : "Add Annotation","addbookmarkbtnHelp" : "Add Bookmark","removebookmarkbtnHelp" : "Remove BookMark","updatebookmarkbtnHelp" : "Update Bookmark","btnShoppingCart" : "Shopping Cart","Help_ShoppingCartbtn" : "Shopping Cart","Help_btnNextPage" : "Next page","Help_btnPrePage" : "Previous page","Help_btnAutoFlip" : "Auto filp","Help_StopAutoFlip" : "Stop atuo filp","btnaddbookmark" : "Add","btndeletebookmark" : "Delete","btnupdatebookmark" : "Update","frmyourbookmarks" : "Your bookmarks","frmitems" : "items","DownloadFullPublication" : "Full Publication","DownloadCurrentPage" : "Current Page","DownloadAttachedFiles" : "Attached Files","lblLink" : "Link","btnCopy" : "Copy Button","restorePage" : "Would you like to restore previous session","tmpl_Backgoundsoundon" : "Background Sound On","tmpl_Backgoundsoundoff" : "Background Sound Off","tmpl_Flipsoundon" : "Flip Sound On","tmpl_Flipsoundoff" : "Flip Sound Off","Help_PageIndex" : "The current page number","tmpl_PrintPageRanges" : "PAGE RANGES","tmpl_PrintPreview" : "PREVIEW","btnSelection" : "Select Text","loginNameLabel" : "Name:","btnGotoPage" : "Go","btnSettings" : "Setting","soundSettingTitle" : "Sound Setting","closeFlipSound" : "Close Flip Sound","closeBackgroundSound" : "Close Backgorund Sound","frmShareCaption" : "Share","frmShareLinkLabel" : "Link:","frmShareBtnCopy" : "Copy","frmShareItemsGroupCaption" : "Social Share","TAnnoActionPropertyStuff_GotoPage" : "Go to page","btnPageBack" : "Back","btnPageForward" : "Forward","SelectTextCopy" : "Copy Text","selectCopyButton" : "Copy","TStuffCart_TypeCart" : "Shopping Cart","TStuffCart_DetailedQuantity" : "Quantity","TStuffCart_DetailedPrice" : "Price","ShappingCart_Close" : "Close","ShappingCart_CheckOut" : "Checkout","ShappingCart_Item" : "Item","ShappingCart_Total" : "Total","ShappingCart_AddCart" : "Add to cart","ShappingCart_InStock" : "In Stock","TStuffCart_DetailedCost" : "Shipping cost","TStuffCart_DetailedTime" : "Delivery time","TStuffCart_DetailedDay" : "day(s)","ShappingCart_NotStock" : "Not enough in stock","btnCrop" : "Crop","btnDragButton" : "Drag","btnFlipBook" : "Flip Book","btnSlideMode" : "Slide Mode","btnSinglePageMode" : "Single Page Mode","btnVertical" : "Vertical Mode","btnHotizontal" : "Horizontal Mode","btnClose" : "Close","btnDoublePage" : "Double Page","btnBookStatus" : "Book View","checkBoxInsert" : "Insert Current Page","lblLast" : "This is the last page.","lblFirst" : "This is the first page.","lblFullscreen" : "Click to view in fullscreen","lblName" : "Name","lblPassword" : "Password","lblLogin" : "Login","lblCancel" : "Cancel","lblNoName" : "User name can not be empty.","lblNoPassword" : "Password can not be empty.","lblNoCorrectLogin" : "Please enter the correct user name and password.","btnVideo" : "Video Gallery","btnSlideShow" : "Slide Show","pnlSearchInputInvalid" : "The search text is too short.","btnDragToMove" : "Move by mouse drag","btnPositionToMove" : "Move by mouse position","lblHelp1" : "Drag the page corner to view","lblHelp2" : "Double click to zoom in, out","lblCopy" : "Copy","lblAddToPage" : "add to page","lblPage" : "Page","lblTitle" : "Title","lblEdit" : "Edit","lblDelete" : "Delete","lblRemoveAll" : "Remove All","tltCursor" : "cursor","tltAddHighlight" : "add highlight","tltAddTexts" : "add texts","tltAddShapes" : "add shapes","tltAddNotes" : "add notes","tltAddImageFile" : "add image file","tltAddSignature" : "add signature","tltAddLine" : "add line","tltAddArrow" : "add arrow","tltAddRect" : "add rect","tltAddEllipse" : "add ellipse","lblDoubleClickToZoomIn" : "Double click to zoom in.","frmShareCaption" : "Share","frmShareLabel" : "Share","frmShareInfo" : "You can easily share this publication to social networks.Just cilck the appropriate button below.","frminsertLabel" : "Insert to Site","frminsertInfo" : "Use the code below to embed this publication to your website."}];var pageEditor =[]
  227. ;
  228.       bookConfig.hideMiniFullscreen=true;
  229.       if(language&&language.length>0&&language[0]&&language[0].language){
  230.             bookConfig.language=language[0].language;
  231.       }
  232.      
  233. try{
  234.       for(var i=0;pageEditor!=undefined&&i<pageEditor.length;i++){
  235.             if(pageEditor[i].length==0){
  236.                   continue;
  237.             }
  238.             for(var j=0;j<pageEditor[i].length;j++){
  239.                   var anno=pageEditor[i][j];
  240.                   if(anno==undefined)continue;
  241.                   if(anno.overAlpha==undefined){
  242.                         anno.overAlpha=bookConfig.LinkAlpha;
  243.                   }
  244.                   if(anno.outAlpha==undefined){
  245.                         anno.outAlpha=0;
  246.                   }
  247.                   if(anno.downAlpha==undefined){
  248.                         anno.downAlpha=bookConfig.LinkAlpha;
  249.                   }
  250.                   if(anno.overColor==undefined){
  251.                         anno.overColor=bookConfig.LinkDownColor;
  252.                   }
  253.                   if(anno.downColor==undefined){
  254.                         anno.downColor=bookConfig.LinkDownColor;
  255.                   }
  256.                   if(anno.outColor==undefined){
  257.                         anno.outColor=bookConfig.LinkDownColor;
  258.                   }
  259.                   if(anno.annotype=='com.mobiano.flipbook.pageeditor.TAnnoLink'){
  260.                         anno.alpha=bookConfig.LinkAlpha;
  261.                   }
  262.             }
  263.       }
  264. }catch(e){
  265. }
  266. try{
  267.       $.browser.device = 2;
  268. }catch(ee){
  269. }

Raw Paste


Login or Register to edit or fork this paste. It's free.