Coder Social home page Coder Social logo

Comments (4)

david-allison avatar david-allison commented on September 25, 2024 1

Issue is playsound is being navigated to before the rendering has completed. The following also fails in Chrome.

<html>
<body>
<div id="qa">
    <style>.card {
        font-family: Waree;
        font-size: 40px;
        text-align: center;
        color: black;
        background-color: #cc9900;
    }
    </style>
    <span style="font-size: 25px; ">what is the best song?</span>


    <br>
    <hr>
    <br>
    <a class="replay-button soundLink" href="playsound:0">
        <span>
            <svg class="playImage" viewBox="0 0 64 64" version="1.1">
                <circle cx="32" cy="32" r="29" fill="lightgrey"/>
                <path d="M56.502,32.301l-37.502,20.101l0.329,-40.804l37.173,20.703Z" fill="black"/>Replay
            </svg>
        </span>
    </a>
    <br>
    <script> var elem = document.querySelector(".soundLink, .replaybutton");
    if (elem) {
    	elem.click();	
        console.log("click init");
    } else {
        window.onload = function () {
            var elem = document.querySelector(".soundLink, .replaybutton");
            if (elem) {
            	elem.click();
                console.log("click load");
            }
        }
    } </script>
    <a href="https://www.youtube.com/watch?v=dQw4w9WgXcQ">https://www.youtube.com/watch?v=dQw4w9WgXcQ</a>
</div>
</body>
</html>

from anki-android.

david-allison avatar david-allison commented on September 25, 2024

@tassa-yoniso-manasi-karoto Could you provide an exported deck which has this issue?

from anki-android.

tassa-yoniso-manasi-karoto avatar tassa-yoniso-manasi-karoto commented on September 25, 2024

here. On Anki Desktop a URL shows up when opening the back of the card.
the bug occurs whether the script is in a field or in the card template

edit: github refuses apkg, see here instead: https://we.tl/t-lgtEzSXu7c

from anki-android.

david-allison avatar david-allison commented on September 25, 2024

On GitHub: test (1).apkg.zip

from anki-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.