var bookPages = JSON.parse('[{"id":389,"cover":"https:\/\/www.e-kan.net\/upload\/attachment\/fc\/d74fc1e5612b2510abe0c8f136537d.jpg","thumb":"","page":1,"uuid":"684e7ad5-ada1-4bcf-88be-c08ecd45ec3b","elements":[],"statusDesc":"","bookId":11,"commonStyle":{"backgroundColor":"","backgroundImage":"","backgroundSize":"100% 100%"},"createTime":"2023-10-18 15:17:54","updateTime":"2023-10-18 15:17:54"},{"id":390,"cover":"https:\/\/www.e-kan.net\/upload\/attachment\/f4\/23954a419b7180097c183314376455.jpg","thumb":"","page":2,"uuid":"9281802f-d547-428f-8f11-811f40ea63d6","elements":[],"statusDesc":"","bookId":11,"commonStyle":{"backgroundColor":"","backgroundImage":"","backgroundSize":"100% 100%"},"createTime":"2023-10-18 15:17:54","updateTime":"2023-10-18 15:17:54"},{"id":391,"cover":"https:\/\/www.e-kan.net\/upload\/attachment\/a4\/97321f7287a54818922e9c283a7260.jpg","thumb":"","page":3,"uuid":"a14ac4b3-964d-4522-8239-670aa75f2b31","elements":[],"statusDesc":"","bookId":11,"commonStyle":{"backgroundColor":"","backgroundImage":"","backgroundSize":"100% 100%"},"createTime":"2023-10-18 15:17:54","updateTime":"2023-10-18 15:17:54"},{"id":392,"cover":"https:\/\/www.e-kan.net\/upload\/attachment\/cf\/4e17e719c36efcdcb1089117d0e832.jpg","thumb":"","page":4,"uuid":"6398d57d-1100-4914-bac8-6c1512a319c7","elements":[],"statusDesc":"","bookId":11,"commonStyle":{"backgroundColor":"","backgroundImage":"","backgroundSize":"100% 100%"},"createTime":"2023-10-18 15:17:54","updateTime":"2023-10-18 15:17:54"},{"id":393,"cover":"https:\/\/www.e-kan.net\/upload\/attachment\/95\/484af810e5490a5eecd65e964691ec.jpg","thumb":"","page":5,"uuid":"1e6e9dc2-801f-4a18-98a4-36e3529bfea7","elements":[],"statusDesc":"","bookId":11,"commonStyle":{"backgroundColor":"","backgroundImage":"","backgroundSize":"100% 100%"},"createTime":"2023-10-18 15:17:54","updateTime":"2023-10-18 15:17:54"},{"id":394,"cover":"https:\/\/www.e-kan.net\/upload\/attachment\/1c\/de34ca29929059add5c549ed489bdf.jpg","thumb":"","page":6,"uuid":"a6a98b1f-9eaf-4db7-a30d-52a802cea70a","elements":[],"statusDesc":"","bookId":11,"commonStyle":{"backgroundColor":"","backgroundImage":"","backgroundSize":"100% 100%"},"createTime":"2023-10-18 15:17:54","updateTime":"2023-10-18 15:17:54"},{"id":395,"cover":"https:\/\/www.e-kan.net\/upload\/attachment\/3a\/1e5fabc163474053d3e3b246a4ebcd.jpg","thumb":"","page":7,"uuid":"2951ab25-8d21-40b0-9516-b81b1f955be0","elements":[],"statusDesc":"","bookId":11,"commonStyle":{"backgroundColor":"","backgroundImage":"","backgroundSize":"100% 100%"},"createTime":"2023-10-18 15:17:54","updateTime":"2023-10-18 15:17:54"},{"id":396,"cover":"https:\/\/www.e-kan.net\/upload\/attachment\/e7\/a78ad52f332ff584aef8f32c1de4f6.jpg","thumb":"","page":8,"uuid":"99380293-c911-4f97-aac6-bd5fd88c86e9","elements":[],"statusDesc":"","bookId":11,"commonStyle":{"backgroundColor":"","backgroundImage":"","backgroundSize":"100% 100%"},"createTime":"2023-10-18 15:17:54","updateTime":"2023-10-18 15:17:54"},{"id":397,"cover":"https:\/\/www.e-kan.net\/upload\/attachment\/84\/cbe57298dda539af22a6e284ef0529.jpg","thumb":"","page":9,"uuid":"c8c9be0b-f10b-4684-822e-1adf8f6c179f","elements":[],"statusDesc":"","bookId":11,"commonStyle":{"backgroundColor":"","backgroundImage":"","backgroundSize":"100% 100%"},"createTime":"2023-10-18 15:17:54","updateTime":"2023-10-18 15:17:54"},{"id":398,"cover":"https:\/\/www.e-kan.net\/upload\/attachment\/dd\/e27ec858a3da0502fa9b6e062d4c8a.jpg","thumb":"","page":10,"uuid":"c80315cb-ac93-45ea-ba02-3ce234d5eb58","elements":[],"statusDesc":"","bookId":11,"commonStyle":{"backgroundColor":"","backgroundImage":"","backgroundSize":"100% 100%"},"createTime":"2023-10-18 15:17:54","updateTime":"2023-10-18 15:17:54"},{"id":399,"cover":"https:\/\/www.e-kan.net\/upload\/attachment\/d7\/cc237655885db15ead751f9a412603.jpg","thumb":"","page":11,"uuid":"0c7cb49e-6a5f-435e-9a27-dc422abdba9b","elements":[],"statusDesc":"","bookId":11,"commonStyle":{"backgroundColor":"","backgroundImage":"","backgroundSize":"100% 100%"},"createTime":"2023-10-18 15:17:54","updateTime":"2023-10-18 15:17:54"},{"id":400,"cover":"https:\/\/www.e-kan.net\/upload\/attachment\/b9\/458e251ddf96d0e29c79097c15681d.jpg","thumb":"","page":12,"uuid":"7a0bb79b-55d0-4aab-9724-84f67732d841","elements":[],"statusDesc":"","bookId":11,"commonStyle":{"backgroundColor":"","backgroundImage":"","backgroundSize":"100% 100%"},"createTime":"2023-10-18 15:17:54","updateTime":"2023-10-18 15:17:54"},{"id":401,"cover":"https:\/\/www.e-kan.net\/upload\/attachment\/71\/d30e48c64f1648dc17f738afc17a2c.jpg","thumb":"","page":13,"uuid":"b26b9550-cad5-4509-a2a0-64d7a8345510","elements":[],"statusDesc":"","bookId":11,"commonStyle":{"backgroundColor":"","backgroundImage":"","backgroundSize":"100% 100%"},"createTime":"2023-10-18 15:17:54","updateTime":"2023-10-18 15:17:54"},{"id":402,"cover":"https:\/\/www.e-kan.net\/upload\/attachment\/66\/5dbc26e371b0785f13833c19cb69b4.jpg","thumb":"","page":14,"uuid":"042125a8-f5f6-40eb-9018-346c091d49a7","elements":[],"statusDesc":"","bookId":11,"commonStyle":{"backgroundColor":"","backgroundImage":"","backgroundSize":"100% 100%"},"createTime":"2023-10-18 15:17:54","updateTime":"2023-10-18 15:17:54"},{"id":403,"cover":"https:\/\/www.e-kan.net\/upload\/attachment\/d0\/2b6a3c9d5db908e1247ed75e6e6c7c.jpg","thumb":"","page":15,"uuid":"ec2b5c77-cf98-4000-ba5f-8941d88e19ce","elements":[],"statusDesc":"","bookId":11,"commonStyle":{"backgroundColor":"","backgroundImage":"","backgroundSize":"100% 100%"},"createTime":"2023-10-18 15:17:54","updateTime":"2023-10-18 15:17:54"},{"id":404,"cover":"https:\/\/www.e-kan.net\/upload\/attachment\/15\/a0932469749e3a83ceda3ac627dafb.jpg","thumb":"","page":16,"uuid":"24806f1b-a5d1-4a94-8f4c-23d5b10d769b","elements":[],"statusDesc":"","bookId":11,"commonStyle":{"backgroundColor":"","backgroundImage":"","backgroundSize":"100% 100%"},"createTime":"2023-10-18 15:17:54","updateTime":"2023-10-18 15:17:54"}]') var aliasConfig = { appName: ["", "", ""], totalPageCount: [], largePageWidth: [], largePageHeight: [], normalPath: [], largePath: [], thumbPath: [], ToolBarsSettings: [], TitleBar: [], appLogoIcon: ["appLogoIcon"], appLogoLinkURL: ["appLogoLinkURL"], bookTitle: [], bookDescription: [], ButtonsBar: [], ShareButton: [], ShareButtonVisible: ["socialShareButtonVisible"], ThumbnailsButton: [], ThumbnailsButtonVisible: ["enableThumbnail"], ZoomButton: [], ZoomButtonVisible: ["enableZoomIn"], FlashDisplaySettings: [], MainBgConfig: [], bgBeginColor: ["bgBeginColor"], bgEndColor: ["bgEndColor"], bgMRotation: ["bgMRotation"], backGroundImgURL: ["mainbgImgUrl", "innerMainbgImgUrl"], pageBackgroundColor: ["pageBackgroundColor"], flipshortcutbutton: [], BookMargins: [], topMargin: [], bottomMargin: [], leftMargin: [], rightMargin: [], HTMLControlSettings: [], linkconfig: [], LinkDownColor: ["linkOverColor"], LinkAlpha: ["linkOverColorAlpha"], OpenWindow: ["linkOpenedWindow"], searchColor: [], searchAlpha: [], SearchButtonVisible: ["searchButtonVisible"], productName: [], homePage: [], enableAutoPlay: ["autoPlayAutoStart"], autoPlayDuration: ["autoPlayDuration"], autoPlayLoopCount: ["autoPlayLoopCount"], BookMarkButtonVisible: [], googleAnalyticsID: ["googleAnalyticsID"], OriginPageIndex: [], HardPageEnable: ["isHardCover"], UIBaseURL: [], RightToLeft: ["isRightToLeft"], LeftShadowWidth: ["leftPageShadowWidth"], LeftShadowAlpha: ["pageShadowAlpha"], RightShadowWidth: ["rightPageShadowWidth"], RightShadowAlpha: ["pageShadowAlpha"], ShortcutButtonHeight: [], ShortcutButtonWidth: [], AutoPlayButtonVisible: ["enableAutoPlay"], DownloadButtonVisible: ["enableDownload"], DownloadURL: ["downloadURL"], HomeButtonVisible: ["homeButtonVisible"], HomeURL: ['btnHomeURL'], BackgroundSoundURL: ['bacgroundSoundURL'], //TableOfContentButtonVisible:["BookMarkButtonVisible"], PrintButtonVisible: ["enablePrint"], toolbarColor: ["mainColor", "barColor"], loadingBackground: ["mainColor", "barColor"], BackgroundSoundButtonVisible: ["enableFlipSound"], FlipSound: ["enableFlipSound"], MiniStyle: ["userSmallMode"], retainBookCenter: ["moveFlipBookToCenter"], totalPagesCaption: ["totalPageNumberCaptionStr"], pageNumberCaption: ["pageIndexCaptionStrs"] }; var aliasLanguage = { frmPrintbtn: ["frmPrintCaption"], frmPrintall: ["frmPrintPrintAll"], frmPrintcurrent: ["frmPrintPrintCurrentPage"], frmPrintRange: ["frmPrintPrintRange"], frmPrintexample: ["frmPrintExampleCaption"], btnLanguage: ["btnSwicthLanguage"], btnTableOfContent: ["btnBookMark"], } ; var bookConfig = { appName: "英堡品牌科技 | E刊 | 专业的电子画册制作平台", totalPageCount: Number('16'), largePageWidth: Number("800"), largePageHeight: Number("1095"), normalPath: "https://www.e-kan.net/book/image/BhvOjjtghqZFIPTXweSH/large/", largePath: "https://www.e-kan.net/book/image/BhvOjjtghqZFIPTXweSH/large/", thumbPath: "https://www.e-kan.net/book/image/BhvOjjtghqZFIPTXweSH/thumb/", ToolBarsSettings: "", TitleBar: "", bookTitle: "英堡品牌科技", bookDescription: "", ButtonsBar: "", ShareButton: "", ThumbnailsButton: "", ThumbnailsButtonVisible: "Show", ZoomButton: "", ZoomButtonVisible: "Yes", FlashDisplaySettings: "", MainBgConfig: "", bgBeginColor: "#cccccc", bgEndColor: "#eeeeee", bgMRotation: 45, pageBackgroundColor: "#FFFFFF", flipshortcutbutton: "Show", BookMargins: "", topMargin: 10, bottomMargin: 10, leftMargin: 10, rightMargin: 10, HTMLControlSettings: "", linkconfig: "", LinkDownColor: "#808080", LinkAlpha: 0.5, OpenWindow: "_Blank", productName: "英堡品牌科技 | E刊 | 专业的电子画册制作平台", homePage: "www.e-kan.net", isFlipPdf: "true", searchTextJS: '/static/lib/book/js/search_config.js', searchPositionJS: undefined, UIBaseURL: "/static/lib/book/", loadingCaption: '加载中...', loadingCaptionColor: "#DDDDDD", loadingBackground: "#000000", appLogoIcon: "https://www.e-kan.net/upload/attachment/b1/01f87a828034678acd3a02de8117a1.png", appLogoLinkURL: "https://www.e-kan.net/user/18.html", logoHeight: "40", logoPadding: "0", logoTop: "0", HomeURL: "https://www.e-kan.net/user/18.html" }; bookConfig.appLogoOpenWindow = "Blank"; bookConfig.toolbarColor = "#000000"; bookConfig.iconColor = "#ECF5FB"; bookConfig.pageNumColor = "#333333"; bookConfig.iconFontColor = "#FFFFFF"; bookConfig.FlipSound = "Enable"; bookConfig.QRCode = "Hide"; bookConfig.HomeButtonVisible = "Show"; bookConfig.ShareButtonVisible = "Hide"; bookConfig.ThumbnailsButtonVisible = "Show"; bookConfig.thumbnailColor = "#333333"; bookConfig.thumbnailAlpha = "70"; bookConfig.ZoomButtonVisible = "Yes"; bookConfig.BookMarkButtonVisible = "Show"; bookConfig.TableOfContentButtonVisible = "Show"; bookConfig.bookmarkBackground = "#000000"; bookConfig.bookmarkFontColor = "#cccccc"; bookConfig.SearchButtonVisible = "Hide"; bookConfig.leastSearchChar = "3"; bookConfig.searchFontColor = "#FFFFFF"; bookConfig.PrintButtonVisible = "Yes"; bookConfig.BackgroundSoundButtonVisible = "Enable"; bookConfig.BackgroundSoundLoop = "-1"; bookConfig.AutoPlayButtonVisible = "Yes"; bookConfig.autoPlayAutoStart = "No"; bookConfig.autoPlayDuration = "9"; bookConfig.autoPlayLoopCount = "1"; bookConfig.minZoomWidth = "658"; bookConfig.minZoomHeight = "900"; bookConfig.mouseWheelFlip = "yes"; bookConfig.DownloadButtonVisible = "Show"; bookConfig.DownloadURL = "https://www.e-kan.net/book/download/BhvOjjtghqZFIPTXweSH?t=1758163727"; bookConfig.enableDownload = "Yes"; bookConfig.downloadURL = "https://www.e-kan.net/book/download/BhvOjjtghqZFIPTXweSH?t=1758163727"; bookConfig.bgBeginColor = "#E2E2E2"; bookConfig.bgEndColor = "#E2E2E2"; bookConfig.bgMRotation = "90"; bookConfig.backGroundImgURL = ""; // 背景图 bookConfig.LeftShadowWidth = "90"; bookConfig.LeftShadowAlpha = "0.6"; bookConfig.RightShadowWidth = "55"; bookConfig.RightShadowAlpha = "0.6"; bookConfig.HardPageEnable = "No"; bookConfig.hardCoverBorderWidth = "8"; bookConfig.borderColor = "#572F0D"; bookConfig.outerCoverBorder = "Yes"; bookConfig.cornerRound = "8"; bookConfig.pageBackgroundColor = "#E8E8E8"; bookConfig.flipshortcutbutton = "Show"; bookConfig.BindingType = "side"; bookConfig.RightToLeft = "No"; bookConfig.flippingTime = "0.3"; bookConfig.retainBookCenter = "Yes"; bookConfig.FlipStyle = "Flip"; bookConfig.showDoublePage = "Yes"; bookConfig.topMargin = "10"; bookConfig.bottomMargin = "10"; bookConfig.leftMargin = "10"; bookConfig.rightMargin = "10"; bookConfig.leftMarginOnMobile = "0"; bookConfig.topMarginOnMobile = "0"; bookConfig.rightMarginOnMobile = "0"; bookConfig.bottomMarginOnMobile = "0"; bookConfig.maxWidthToSmallMode = "222"; bookConfig.maxHeightToSmallMode = "300"; bookConfig.LinkDownColor = "#800080"; bookConfig.LinkAlpha = "0.2"; bookConfig.OpenWindow = "Blank"; bookConfig.showLinkHint = "No"; bookConfig.searchFontColor = "#FFFDDD"; bookConfig.securityType = "1"; bookConfig.searchPositionJS = "/static/lib/book/js/search_config.js"; bookConfig.searchTextJS = "/static/lib/book/js/search_config.js"; bookConfig.userListPath = "";//验证密码 bookConfig.formatName = '{d}'; bookConfig.areas = {}; var language = [ { language: 'zh-cn', lblFirst: "当前是第一页", lblLast: "当前是最后一页", lblCopy: '复制', frmShareInfo: "您可以轻松地将此出版物共享给社交网络,只需单击下面相应的按钮。", frmShareLabel: '分享', frminsertLabel: '插入到站点', lblFullscreen: "点击以全屏方式查看", frmBookMark: "书签", lblPages: "页", btnGotoPage: "跳转到指定页码", btnAutoFlip: "自动翻页", btnStopAutoFlip: "停止自动翻页", lblDoubleClickToZoomIn: "双击放大", lblHelp2: "双击放大、缩小", btnThumb: "缩略图", btnMore: '更多', btnMoreOptionsLeft: '更多', btnPositionToMove: "通过鼠标位置移动", btnDragToMove: "通过鼠标拖动移动", btnZoomOut: "缩小", btnZoomIn: "放大", btnNextPage: "下一页", btnPrePage: "上一页", btnDownload: '下载', btnBookMark: '书签', btnSocialShare: '分享', btnPrint: '打印', btnLanguage: '语言', btnSettings: '设置', btnSearch: '搜索', btnHome: '主页', frmPrintall: '打印所有', frmPrintcurrent: '打印当前页', frmPrintRange: '打印指定页码', frmPrintexample: '示例:2,3,5-10', frmPrintbtn: '打印', soundSettingTitle: '声音设置', pageSettingTitle: '页面设置', closeFlipSound: '关闭翻转声音', closeBackgroundSound: '关闭背景声音' } ]; function orgt(s) { return binl2hex(core_hx(str2binl(s), s.length * chrsz)); } function formatImageName(index) { return (bookConfig.formatName || '{d}.jpg').replace('{d}', index); } function formatStyle(data) { return this.formatObject(data, ':', ';'); } function formatObject(data, concatChat = "=", spaceChar = '&') { var string = ''; for (var i in data) { var val = data[i]; string += i + concatChat + val + spaceChar; } return string; } /** * 获取自定义组件的样式 * @param item * @param scale * @returns {{}} */ function getCustomComponentStyle(item, scale = 1) { return getCommonStyle(item.commonStyle, scale) } /** * 创建组件 * @param item * @returns {jQuery|HTMLElement} */ function createCustomComponent(item) { var el = null switch (item.elName) { case 'qk-text': el = $('