Spaces:
No application file
No application file
| diff --git a/libs/epub.orig.js b/libs/epub.js | |
| index c2a047f..bbe850d 100644 | |
| --- a/libs/epub.orig.js | |
| +++ b/libs/epub.js | |
| function substitute(content, urls, replacements) { | |
| /* 8 */ | |
| /***/ (function(module, exports) { | |
| -var g; | |
| - | |
| -// This works in non-strict mode | |
| -g = (function() { | |
| - return this; | |
| -})(); | |
| - | |
| -try { | |
| - // This works if eval is allowed (see CSP) | |
| - g = g || Function("return this")() || (1,eval)("this"); | |
| -} catch(e) { | |
| - // This works if the window reference is available | |
| - if(typeof window === "object") | |
| - g = window; | |
| -} | |
| - | |
| -// g can still be undefined, but nothing to do about it... | |
| -// We return undefined, instead of nothing here, so it's | |
| -// easier to handle this case. if(!global) { ...} | |
| - | |
| -module.exports = g; | |
| +var g; | |
| + | |
| +// This works in non-strict mode | |
| +g = (function() { | |
| + return this; | |
| +})(); | |
| + | |
| +try { | |
| + // This works if eval is allowed (see CSP) | |
| + g = g || Function("return this")() || (1,eval)("this"); | |
| +} catch(e) { | |
| + // This works if the window reference is available | |
| + if(typeof window === "object") | |
| + g = window; | |
| +} | |
| + | |
| +// g can still be undefined, but nothing to do about it... | |
| +// We return undefined, instead of nothing here, so it's | |
| +// easier to handle this case. if(!global) { ...} | |
| + | |
| +module.exports = g; | |
| /***/ }), | |
| var Contents = function () { | |
| if (axis === "vertical") { | |
| this.css("padding", gap / 2 + "px 20px", true); | |
| } else { | |
| - this.css("padding", "20px " + gap / 2 + "px", true); | |
| + this.css("padding-left", gap / 2 + "px", true); | |
| + this.css("padding-right", gap / 2 + "px", true); | |
| } | |
| this.css("box-sizing", "border-box"); | |
| var Packaging = function () { | |
| metadata.language = this.getElementText(xml, "language"); | |
| metadata.rights = this.getElementText(xml, "rights"); | |
| + metadata.series = this.getMetaContent(xml, "calibre:series"); | |
| + metadata.seriesIndex = this.getMetaContent(xml, "calibre:series_index"); | |
| + | |
| metadata.modified_date = this.getPropertyText(xml, "dcterms:modified"); | |
| metadata.layout = this.getPropertyText(xml, "rendition:layout"); | |
| var Packaging = function () { | |
| return ""; | |
| } | |
| + /** | |
| + * Get meta content | |
| + * @private | |
| + * @param {document} xml | |
| + * @param {string} name | |
| + * @return {string} text | |
| + */ | |
| + | |
| + }, { | |
| + key: 'getMetaContent', | |
| + value: function getMetaContent(xml, name) { | |
| + var el = (0, _core.qsp)(xml, "meta", { "name": name }); | |
| + | |
| + if (el && el.getAttribute("content")) { | |
| + return el.getAttribute("content"); | |
| + } | |
| + | |
| + return ""; | |
| + } | |
| + | |
| /** | |
| * Load JSON Manifest | |
| * @param {document} packageDocument OPF XML | |
| var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol | |
| /* 70 */ | |
| /***/ (function(module, exports) { | |
| -module.exports = function(module) { | |
| - if(!module.webpackPolyfill) { | |
| - module.deprecate = function() {}; | |
| - module.paths = []; | |
| - // module.parent = undefined by default | |
| - if(!module.children) module.children = []; | |
| - Object.defineProperty(module, "loaded", { | |
| - enumerable: true, | |
| - get: function() { | |
| - return module.l; | |
| - } | |
| - }); | |
| - Object.defineProperty(module, "id", { | |
| - enumerable: true, | |
| - get: function() { | |
| - return module.i; | |
| - } | |
| - }); | |
| - module.webpackPolyfill = 1; | |
| - } | |
| - return module; | |
| -}; | |
| +module.exports = function(module) { | |
| + if(!module.webpackPolyfill) { | |
| + module.deprecate = function() {}; | |
| + module.paths = []; | |
| + // module.parent = undefined by default | |
| + if(!module.children) module.children = []; | |
| + Object.defineProperty(module, "loaded", { | |
| + enumerable: true, | |
| + get: function() { | |
| + return module.l; | |
| + } | |
| + }); | |
| + Object.defineProperty(module, "id", { | |
| + enumerable: true, | |
| + get: function() { | |
| + return module.i; | |
| + } | |
| + }); | |
| + module.webpackPolyfill = 1; | |
| + } | |
| + return module; | |
| +}; | |
| /***/ }) | |
| /******/ ]); | |
| -}); | |
| -//# sourceMappingURL=epub.js.map | |
| \ No newline at end of file | |
| +}); | |
| \ No newline at end of file | |