403Webshell
Server IP : 35.80.110.71  /  Your IP : 216.73.216.221
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64
User : ubuntu ( 1000)
PHP Version : 8.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/share/calibre/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/calibre/pdf-preprint.js
/* vim:fileencoding=utf-8
 * 
 * Copyright (C) 2019 Kovid Goyal <kovid at kovidgoyal.net>
 *
 * Distributed under terms of the GPLv3 license
 */
/*jshint esversion: 6 */

(function() {
"use strict";
    // wrap up long words that dont fit in the page
    document.body.style.overflowWrap = 'break-word';

    var break_avoid_block_styles = {
        "run-in":1, "block":1, "table-row-group":1, "table-column":1, "table-column-group":1,
        "table-header-group":1, "table-footer-group":1, "table-row":1, "table-cell":1,
        "table-caption":1, // page-break-avoid does not work for inline-block either
    };

    function avoid_page_breaks_inside(node) {
        node.style.pageBreakInside = 'avoid';
        node.style.breakInside = 'avoid';
    }

    for (const img of document.images) {
        var style = window.getComputedStyle(img);
        if (style.maxHeight === 'none') img.style.maxHeight = '100vh';
        if (style.maxWidth === 'none') img.style.maxWidth = '100vw';

        var is_block = break_avoid_block_styles[style.display];
        if (is_block) avoid_page_breaks_inside(img);
        else if (img.parentNode && img.parentNode.childElementCount === 1) avoid_page_breaks_inside(img.parentNode);
    }
    // Change the hyphenate character to a plain ASCII minus (U+002d) the default
    // is U+2010 but that does not render with the default Times font on macOS as of Monterey
    // and Qt 15.5 See https://bugs.launchpad.net/bugs/1951467 and can be easily reproduced
    // by converting a plain text file with the --pdf-hyphenate option
    // https://bugs.chromium.org/p/chromium/issues/detail?id=1267606 (fix released Feb 1 2022 v98)
    // See also settings.pyj
    if (HYPHEN_CHAR) {
        for (const elem of document.getElementsByTagName('*')) {
            if (elem.style) {
                elem.style.setProperty('-webkit-hyphenate-character', '"-"', 'important');
            }
        }
    }
})();



Youez - 2016 - github.com/yon3zu
LinuXploit