Skip to content

Replay and embed script recorded terminal sessions in HTML

Notifications You must be signed in to change notification settings

h43z/scriptreplayjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages