mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 09:14:59 +00:00
feat: Add markers and event listener to recording example
This commit is contained in:
parent
d916180ec8
commit
5318dd1a80
1 changed files with 9 additions and 12 deletions
|
@ -111,24 +111,21 @@ AsciinemaPlayer.create(
|
|||
idleTimeLimit: 1,
|
||||
theme : "aider",
|
||||
poster : "npt:0:01",
|
||||
markers : [
|
||||
[3.0, "Hello!"],
|
||||
[300.0, "Hello!"],
|
||||
],
|
||||
}
|
||||
);
|
||||
|
||||
player.addEventListener('marker', ({ index, time, label }) => {
|
||||
console.log(`marker! ${index} - ${time} - ${label}`);
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<div class="transcript-container" style="margin-top: 30px; padding: 20px; background-color: #f8f8f8; border-radius: 6px; max-height: 50vh; overflow-y: auto; font-family: monospace; white-space: pre-wrap; line-height: 1.5;">
|
||||
<div id="transcript-content">
|
||||
Transcript goes here...<br/>
|
||||
|
||||
Transcript goes here...<br/>
|
||||
|
||||
Transcript goes here...<br/>
|
||||
|
||||
Transcript goes here...<br/>
|
||||
|
||||
Transcript goes here...<br/>
|
||||
|
||||
Transcript goes here...<br/>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue