var bookPages = JSON.parse('[{"id":293,"cover":"https:\/\/www.e-kan.net\/upload\/attachment\/a0\/3ead74e53a1534ea11a8fd9cf25033.jpg","thumb":"","page":1,"uuid":"b7ca9b67-f38f-4c92-88c5-1579728d08e3","elements":[],"statusDesc":"","bookId":2,"commonStyle":{"backgroundColor":"","backgroundImage":"","backgroundSize":"100% 100%"},"createTime":"2023-10-12 09:55:31","updateTime":"2023-10-12 09:55:31"},{"id":294,"cover":"https:\/\/www.e-kan.net\/upload\/attachment\/ca\/aa99efaea7aaf2224d30bf4248a33e.jpg","thumb":"","page":2,"uuid":"fffeaf5b-2f71-48b3-8c4c-2789da36a86c","elements":[],"statusDesc":"","bookId":2,"commonStyle":{"backgroundColor":"","backgroundImage":"","backgroundSize":"100% 100%"},"createTime":"2023-10-12 09:55:31","updateTime":"2023-10-12 09:55:31"},{"id":295,"cover":"https:\/\/www.e-kan.net\/upload\/attachment\/14\/ee001344fb2c21cc888595f0f2bbcd.jpg","thumb":"","page":3,"uuid":"0f4f8e89-2d82-4402-aac0-11e0ed4e229e","elements":[],"statusDesc":"","bookId":2,"commonStyle":{"backgroundColor":"","backgroundImage":"","backgroundSize":"100% 100%"},"createTime":"2023-10-12 09:55:31","updateTime":"2023-10-12 09:55:31"},{"id":296,"cover":"https:\/\/www.e-kan.net\/upload\/attachment\/7e\/bffd221aa6df09405d14f8d0d72d0f.jpg","thumb":"","page":4,"uuid":"67b62bda-c3ab-4f05-bb01-d3b149a83d96","elements":[],"statusDesc":"","bookId":2,"commonStyle":{"backgroundColor":"","backgroundImage":"","backgroundSize":"100% 100%"},"createTime":"2023-10-12 09:55:31","updateTime":"2023-10-12 09:55:31"},{"id":297,"cover":"https:\/\/www.e-kan.net\/upload\/attachment\/b8\/49020614d42836e0f0acb2a43e977e.jpg","thumb":"","page":5,"uuid":"05414641-479f-4e86-8955-dc8f16121b45","elements":[],"statusDesc":"","bookId":2,"commonStyle":{"backgroundColor":"","backgroundImage":"","backgroundSize":"100% 100%"},"createTime":"2023-10-12 09:55:31","updateTime":"2023-10-12 09:55:31"},{"id":298,"cover":"https:\/\/www.e-kan.net\/upload\/attachment\/51\/9bbdeb0475eb50fd5386253579f77e.jpg","thumb":"","page":6,"uuid":"0e540eb5-0c5d-4cab-b013-e19f3e6e89eb","elements":[],"statusDesc":"","bookId":2,"commonStyle":{"backgroundColor":"","backgroundImage":"","backgroundSize":"100% 100%"},"createTime":"2023-10-12 09:55:31","updateTime":"2023-10-12 09:55:31"},{"id":299,"cover":"https:\/\/www.e-kan.net\/upload\/attachment\/0b\/920316aca4b44ac9d7ceacc3ca5fd3.jpg","thumb":"","page":7,"uuid":"dfe59296-07d6-4f41-9efd-6ef77d34330f","elements":[],"statusDesc":"","bookId":2,"commonStyle":{"backgroundColor":"","backgroundImage":"","backgroundSize":"100% 100%"},"createTime":"2023-10-12 09:55:31","updateTime":"2023-10-12 09:55:31"},{"id":300,"cover":"https:\/\/www.e-kan.net\/upload\/attachment\/1d\/a675626dd2b31cf6cdfa11b27af163.jpg","thumb":"","page":8,"uuid":"2a22e807-5b92-4aa6-931a-9e87f82fb7b0","elements":[],"statusDesc":"","bookId":2,"commonStyle":{"backgroundColor":"","backgroundImage":"","backgroundSize":"100% 100%"},"createTime":"2023-10-12 09:55:31","updateTime":"2023-10-12 09:55:31"},{"id":301,"cover":"https:\/\/www.e-kan.net\/upload\/attachment\/7a\/7f2eda5a1ecae24472326993b26506.jpg","thumb":"","page":9,"uuid":"64a03ef5-1b1a-4b49-8b5d-835d533b6fb0","elements":[],"statusDesc":"","bookId":2,"commonStyle":{"backgroundColor":"","backgroundImage":"","backgroundSize":"100% 100%"},"createTime":"2023-10-12 09:55:31","updateTime":"2023-10-12 09:55:31"},{"id":302,"cover":"https:\/\/www.e-kan.net\/upload\/attachment\/a6\/2cc3d3b700e35de5459212ea283785.jpg","thumb":"","page":10,"uuid":"9bf06cd3-9359-4dc8-a5ab-96c87af0adca","elements":[],"statusDesc":"","bookId":2,"commonStyle":{"backgroundColor":"","backgroundImage":"","backgroundSize":"100% 100%"},"createTime":"2023-10-12 09:55:31","updateTime":"2023-10-12 09:55:31"},{"id":303,"cover":"https:\/\/www.e-kan.net\/upload\/attachment\/cc\/e899bd2d3b6890c7682cac169d1f8d.jpg","thumb":"","page":11,"uuid":"629caffd-dcae-42b7-83d4-90d0de2204f8","elements":[],"statusDesc":"","bookId":2,"commonStyle":{"backgroundColor":"","backgroundImage":"","backgroundSize":"100% 100%"},"createTime":"2023-10-12 09:55:31","updateTime":"2023-10-12 09:55:31"},{"id":304,"cover":"https:\/\/www.e-kan.net\/upload\/attachment\/d8\/69b2a34fe86a02dcb8ce781b660bca.jpg","thumb":"","page":12,"uuid":"604482b2-172b-491e-85a5-bec7908aba10","elements":[],"statusDesc":"","bookId":2,"commonStyle":{"backgroundColor":"","backgroundImage":"","backgroundSize":"100% 100%"},"createTime":"2023-10-12 09:55:31","updateTime":"2023-10-12 09:55:31"},{"id":305,"cover":"https:\/\/www.e-kan.net\/upload\/attachment\/d7\/fbeb2faa8871baf11bdba2d8faa4b7.jpg","thumb":"","page":13,"uuid":"887e431e-1ff3-48fb-a7f1-0fddf0c5359d","elements":[],"statusDesc":"","bookId":2,"commonStyle":{"backgroundColor":"","backgroundImage":"","backgroundSize":"100% 100%"},"createTime":"2023-10-12 09:55:31","updateTime":"2023-10-12 09:55:31"},{"id":306,"cover":"https:\/\/www.e-kan.net\/upload\/attachment\/b3\/d440b9b29685d8f9806a78c51fd1f3.jpg","thumb":"","page":14,"uuid":"a8a97ebe-5214-46a8-ae33-06380283ad27","elements":[],"statusDesc":"","bookId":2,"commonStyle":{"backgroundColor":"","backgroundImage":"","backgroundSize":"100% 100%"},"createTime":"2023-10-12 09:55:31","updateTime":"2023-10-12 09:55:31"},{"id":307,"cover":"https:\/\/www.e-kan.net\/upload\/attachment\/9a\/c914a3b73a1d2b827e0265a973a36a.jpg","thumb":"","page":15,"uuid":"f58c170a-01df-4563-ad72-92f3710a8f52","elements":[],"statusDesc":"","bookId":2,"commonStyle":{"backgroundColor":"","backgroundImage":"","backgroundSize":"100% 100%"},"createTime":"2023-10-12 09:55:31","updateTime":"2023-10-12 09:55:31"},{"id":308,"cover":"https:\/\/www.e-kan.net\/upload\/attachment\/1f\/255e302984e742a717f40d0d760a37.jpg","thumb":"","page":16,"uuid":"934fc3e4-e962-49ba-a245-eed34a554985","elements":[],"statusDesc":"","bookId":2,"commonStyle":{"backgroundColor":"","backgroundImage":"","backgroundSize":"100% 100%"},"createTime":"2023-10-12 09:55:31","updateTime":"2023-10-12 09:55:31"},{"id":309,"cover":"https:\/\/www.e-kan.net\/upload\/attachment\/39\/abac802b343365c81005d2314513d9.jpg","thumb":"","page":17,"uuid":"56542351-b72f-4de1-8f38-42b0e4d860af","elements":[],"statusDesc":"","bookId":2,"commonStyle":{"backgroundColor":"","backgroundImage":"","backgroundSize":"100% 100%"},"createTime":"2023-10-12 09:55:31","updateTime":"2023-10-12 09:55:31"},{"id":310,"cover":"https:\/\/www.e-kan.net\/upload\/attachment\/d5\/17b29cc24216c180de8de99955cf86.jpg","thumb":"","page":18,"uuid":"6d47b3c3-4f31-4138-8aad-3c75ddbeca54","elements":[],"statusDesc":"","bookId":2,"commonStyle":{"backgroundColor":"","backgroundImage":"","backgroundSize":"100% 100%"},"createTime":"2023-10-12 09:55:31","updateTime":"2023-10-12 09:55:31"},{"id":311,"cover":"https:\/\/www.e-kan.net\/upload\/attachment\/d7\/d6c0fd43f7a021bbac9e943d99625b.jpg","thumb":"","page":19,"uuid":"fc7479a7-5aa5-4133-a2c5-e1a8f9adb73c","elements":[],"statusDesc":"","bookId":2,"commonStyle":{"backgroundColor":"","backgroundImage":"","backgroundSize":"100% 100%"},"createTime":"2023-10-12 09:55:31","updateTime":"2023-10-12 09:55:31"},{"id":312,"cover":"https:\/\/www.e-kan.net\/upload\/attachment\/87\/a4f7eb549e23df3922b095c838830f.jpg","thumb":"","page":20,"uuid":"5f068cc1-f041-4539-ba33-e5d4bf3aa60a","elements":[],"statusDesc":"","bookId":2,"commonStyle":{"backgroundColor":"","backgroundImage":"","backgroundSize":"100% 100%"},"createTime":"2023-10-12 09:55:31","updateTime":"2023-10-12 09:55:31"}]') 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('20'), largePageWidth: Number("600"), largePageHeight: Number("814"), normalPath: "https://www.e-kan.net/book/image/TutfYwMOtNiwXXQgkVtF/large/", largePath: "https://www.e-kan.net/book/image/TutfYwMOtNiwXXQgkVtF/large/", thumbPath: "https://www.e-kan.net/book/image/TutfYwMOtNiwXXQgkVtF/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/12.html", logoHeight: "40", logoPadding: "0", logoTop: "0", HomeURL: "https://www.e-kan.net/user/12.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 = "600"; bookConfig.minZoomHeight = "814"; bookConfig.mouseWheelFlip = "yes"; bookConfig.DownloadButtonVisible = "Show"; bookConfig.DownloadURL = "https://www.e-kan.net/book/download/TutfYwMOtNiwXXQgkVtF?t=1716225363"; bookConfig.enableDownload = "Yes"; bookConfig.downloadURL = "https://www.e-kan.net/book/download/TutfYwMOtNiwXXQgkVtF?t=1716225363"; 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 = $('
') el.text(item.propsValue.text || '') break; case 'qk-link': el = $('') var attrs = { href: item.propsValue.href, target: item.propsValue.href[0] === '#' ? '_self' : '_blank' } el.attr(attrs).text(item.propsValue.text || '') break; case 'qk-image': el = $('') var attrs = { src: item.propsValue.imageSrc, draggable: 'false' } el.attr(attrs) break; case 'qk-video': el = $('