mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 09:14:59 +00:00
refactor: Simplify transcript content in recording.md
This commit is contained in:
parent
6e5aa08ee0
commit
d916180ec8
1 changed files with 12 additions and 27 deletions
|
@ -115,36 +115,21 @@ AsciinemaPlayer.create(
|
|||
);
|
||||
</script>
|
||||
|
||||
## Transcript
|
||||
|
||||
<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">
|
||||
Loading transcript...
|
||||
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>
|
||||
|
||||
<script>
|
||||
// Function to fetch and display the transcript
|
||||
async function loadTranscript() {
|
||||
try {
|
||||
// You can either use the same URL as the cast file or a dedicated transcript file
|
||||
const transcriptUrl = "https://gist.githubusercontent.com/paul-gauthier/3011ab9455c2d28c0e5a60947202752f/raw/transcript.txt";
|
||||
const response = await fetch(transcriptUrl);
|
||||
|
||||
if (!response.ok) {
|
||||
throw new Error(`HTTP error! status: ${response.status}`);
|
||||
}
|
||||
|
||||
const text = await response.text();
|
||||
document.getElementById('transcript-content').textContent = text;
|
||||
} catch (error) {
|
||||
console.error("Failed to load transcript:", error);
|
||||
document.getElementById('transcript-content').textContent =
|
||||
"Failed to load transcript. The transcript file may need to be created separately from the recording.";
|
||||
}
|
||||
}
|
||||
|
||||
// Call the function to load the transcript
|
||||
loadTranscript();
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue