Important: the problem described in this repository is solved from Asciinema 3.3..
Reveal.js is an HTML presentation framework and asciinema player is a web player for terminal sessions (recorded with asciinema). If you want to use both Reveal.js and asciinema player you may encounter display problems.
This problem is described as follows. Sometimes we can have three asciinema sessions which displayed, sometimes four, sometimes one. To solve the problem, we need to refresh the web browser on the current Reveal.js slide where the asciinema session is hidden. Hidden asciinema players are created, but the size is null.
- If you want to reproduce the problem between Reveal.js and Asciinema player, turn the root directory into a simple HTTP web server:
$ python3 -m http.server
http.server is probably the best solution to expose a HTTP web server for test. Why? Because Python3 is installed by default on the most Operating Systems.
- Open the https://localhost:8000/bug.html URL with your web browser.
In this version, we create all asciinema players all at once. I suppose Reveal.js does not have time to compute the size of the asciinema players.
To solve the problem, we create the asciinema player only when the slide (which must contain the asciinema player) is displayed.
- Open the https://localhost:8000/workaround.html URL with your web browser and test the result.