Use the embedded player in split mode

This commit is contained in:
Marcin Kulik
2025-05-08 12:10:08 +02:00
parent a0bfb2d952
commit c4b1f0f636
4 changed files with 4 additions and 3 deletions

1
assets/asciinema-player-ui.min.js vendored Normal file

File diff suppressed because one or more lines are too long

1
assets/asciinema-player-worker.min.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -38,7 +38,7 @@
</style>
</head>
<body>
<script src="asciinema-player.min.js"></script>
<script src="asciinema-player-ui.min.js"></script>
<script>
const loc = window.location;
@@ -70,7 +70,7 @@
console.debug('initializing the player', { src, opts });
window.player = AsciinemaPlayer.create(src, document.body, opts);
window.player = AsciinemaPlayer.create(src, document.body, 'asciinema-player-worker.min.js', opts);
window.player.addEventListener('reset', () => {
const el = window.player.el.getElementsByClassName('ap-player')[0];