Render feed from episode (#9)

- Render chapter if present (#5)
- Render transcript if present (#8)
- Require transcript type if URL entered (#8)
This commit is contained in:
2022-06-27 20:34:30 -04:00
parent 80c65bcad6
commit 16603bbcaf
4 changed files with 99 additions and 47 deletions

View File

@@ -255,6 +255,13 @@
document.getElementById(`link_${idx}`).remove()
},
/**
* Require transcript type if transcript URL is present
*/
requireTranscriptType() {
document.getElementById("transcriptType").required = document.getElementById("transcriptUrl").value.trim() !== ""
},
/**
* Show messages that may have come with an htmx response
* @param messages The messages from the response