1import * as AsciinemaPlayer from 'asciinema-player'; 2 3window.addEventListener('DOMContentLoaded', () => { 4 document.querySelectorAll('asciinema-player').forEach((playerElement) => { 5 AsciinemaPlayer.create(playerElement.getAttribute('src'), playerElement, { 6 controls: playerElement.getAttribute('controls') || false, 7 cols: playerElement.getAttribute('cols') || 80, 8 rows: playerElement.getAttribute('rows') || 22, 9 autoplay: playerElement.getAttribute('autoplay') || true, 10 loop: 'true' === playerElement.getAttribute('loop') || true, 11 speed: playerElement.getAttribute('speed') || 1, 12 theme: playerElement.getAttribute('theme') || 'symfony', 13 terminalFontSize: playerElement.getAttribute('font-size') || 'small', 14 fit: false, 15 }); 16 }); 17});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.