mirror of
https://github.com/asciinema/asciinema.git
synced 2025-12-15 19:28:00 +01:00
Use the embedded player in split mode
This commit is contained in:
1
assets/asciinema-player-ui.min.js
vendored
Normal file
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
1
assets/asciinema-player-worker.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
assets/asciinema-player.min.js
vendored
1
assets/asciinema-player.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user