This commit is contained in:
Paul Gauthier 2025-03-14 11:18:19 -07:00
parent 116f44cade
commit 71f1779c8c
2 changed files with 3 additions and 4 deletions

View file

@ -89,14 +89,12 @@ document.addEventListener('DOMContentLoaded', function() {
return markers;
}
const url = "https://gist.githubusercontent.com/paul-gauthier/3011ab9455c2d28c0e5a60947202752f/raw/5a5b3dbf68a9c2b22b4954af287efedecdf79d52/tmp.redacted.cast";
// Parse transcript and create markers
const markers = parseTranscript();
// Create player with a single call
player = AsciinemaPlayer.create(
url,
recording_url,
document.getElementById('demo'),
{
speed: 1.25,

View file

@ -1,6 +1,6 @@
---
parent: Example chat transcripts
nav_order: 9999
nav_order: 0
layout: minimal
---
@ -14,6 +14,7 @@ layout: minimal
<script src="/assets/asciinema/asciinema-player.min.js"></script>
<script>
const recording_url = "https://gist.githubusercontent.com/paul-gauthier/3011ab9455c2d28c0e5a60947202752f/raw/5a5b3dbf68a9c2b22b4954af287efedecdf79d52/tmp.redacted.cast";
{% include recording.js %}
</script>