mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 17:55:01 +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,
|
idleTimeLimit: 1,
|
||||||
theme : "aider",
|
theme : "aider",
|
||||||
poster : "npt:0:01",
|
poster : "npt:0:01",
|
||||||
|
markers : [
|
||||||
|
[3.0, "Hello!"],
|
||||||
|
[300.0, "Hello!"],
|
||||||
|
],
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
player.addEventListener('marker', ({ index, time, label }) => {
|
||||||
|
console.log(`marker! ${index} - ${time} - ${label}`);
|
||||||
|
}
|
||||||
|
})
|
||||||
</script>
|
</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 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">
|
<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>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue