pwmt / zathura

Document viewer
https://pwmt.org/projects/zathura
zlib License
2.05k stars 144 forks source link

[feature request] support use javascript/css show/hide info in epub #383

Closed sebastinas closed 5 months ago

sebastinas commented 1 year ago

On GitLab by @hleft on Mar 7, 2023, 05:24


some epub add a javascript button toggle info,

<div id="content">
    <p>This is the content</p>
</div>

<button onclick="toggleContent()">Toggle Content</button>

<script>
    function toggleContent() {
        var content = document.getElementById("content");
        if (content.style.display === "none") {
            content.style.display = "block";
        } else {
            content.style.display = "none";
        }
    }
</script>

or use css toggle content

I see it works in calibre but not in zathura, hope to support this feature

sebastinas commented 1 year ago

moved to zathura-pdf-mupdf#38