Comments (4)
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.
@tassa-yoniso-manasi-karoto Could you provide an exported deck which has this issue?
from anki-android.
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.
On GitHub: test (1).apkg.zip
from anki-android.
Related Issues (20)
- [BUG]: "Not at top of the queue" error message when there is a deck is already open in App and the user open one through the Deck Picker Widget. HOT 4
- [BUG]: syncing problem on Android HOT 3
- [BUG]: Long Press Menu Doesn't Open HOT 1
- Improve `BackendException$BackendFatalError` handling on startup
- [BUG]: Copy Note HOT 4
- Remove scoped storage migration code
- [BUG]: Can't add GIF image HOT 1
- [BUG]: Type-in fields don't work with the new reviewer HOT 3
- [BUG]: Keyboard Presses Don't Get Registered HOT 2
- Improve "your clock is not set to the correct time" error
- Proposal: improve the 'Translation Sync' message HOT 3
- [BUG]: Can't delete characters of field search after an initial search HOT 2
- Typing 't' in the Card Browser search opens Tags Dialog HOT 1
- "AnkiDroid directory is inaccessible" error screen lacks information about what to do
- Holding Down a Key Should be Considered a Single-click HOT 3
- "Save your collection" warning can be displayed during first sync HOT 2
- Card template editor has no menu on tablet HOT 5
- [BUG]: Numeric Keys Don't Work HOT 4
- [BUG]: Deleting pop-up doesn't close HOT 1
- [BUG]: Failure to type in the answer when reviewing cards of type Basic(type in the answer) on tablet, which works fine on phone HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from anki-android.