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-mathjax-loader.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";
    var base = document.currentScript ? document.currentScript.getAttribute('data-mathjax-path') : null;
    var for_pdf_renderer = !!base;

    function on_mathjax_finish() {
        if (for_pdf_renderer) document.title = "mathjax-load-complete";
        else document.documentElement.dispatchEvent(new CustomEvent("calibre-mathjax-typeset-done"));
    }
    // also do any changes in mathjax.pyj for the in-browser reader
    window.MathJax = {};
    window.MathJax.options = {
        renderActions: {
            // disable the mathjax context menu
            addMenu: [0, '', ''],
        },
    };
    window.MathJax.loader = {
        load: ['input/tex-full', 'input/asciimath', 'input/mml', 'output/chtml'],
    };
    window.MathJax.startup = {
        ready: () => {
            MathJax.startup.defaultReady();
            MathJax.startup.promise.then(on_mathjax_finish);
        },
    };
    for (const s of document.scripts) {
        if (s.type === "text/x-mathjax-config") {
            var es = document.createElement('script');
            es.text = s.text;
            document.head.appendChild(es);
            document.head.removeChild(es);
        }
    }
    if (for_pdf_renderer) {
        if (!base.endsWith('/')) base += '/';
        var script = document.createElement('script');
        script.type = 'text/javascript';
        script.setAttribute('async', 'async');
        script.onerror = function (ev) {
            console.log('Failed to load MathJax script: ' + ev.target.src);
        };
        script.src = base + 'startup.js';
        document.head.appendChild(script);
    }
})();

Youez - 2016 - github.com/yon3zu
LinuXploit