h43z / scriptreplayjs

Replay and embed script recorded terminal sessions in HTML

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

scriptreplay.js

Embed and replay with script recorded terminal sessions in HTML pages.

script -t=timing mysession
<html>
  <head>
    <script src='./scriptreplay.js'></script>
    <script>
      window.addEventListener('load', () => {
        scriptreplay("mysession", "timing", document.querySelector('#terminal'))
      })
    </script>
  </head>
  <body>
    <div id="terminal"></div>
  </body>
</html>

Embed as many terminals as you want into your page. Each one can be paused and played.

For testing in chrome make sure index.html is served by a webserver.

About

Replay and embed script recorded terminal sessions in HTML


Languages

Language:JavaScript 74.2%Language:HTML 25.8%