|
|
@ -195,6 +195,8 @@ window.addEventListener("DOMContentLoaded", async (event) => {
|
|
|
|
|
|
|
|
|
|
|
|
document.getElementById("video-info-title").addEventListener("input", (_event) => {
|
|
|
|
document.getElementById("video-info-title").addEventListener("input", (_event) => {
|
|
|
|
validateVideoTitle();
|
|
|
|
validateVideoTitle();
|
|
|
|
|
|
|
|
document.getElementById("video-info-title-abbreviated").innerText =
|
|
|
|
|
|
|
|
videoInfo.title_prefix + document.getElementById("video-info-title").value;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
document.getElementById("video-info-description").addEventListener("input", (_event) => {
|
|
|
|
document.getElementById("video-info-description").addEventListener("input", (_event) => {
|
|
|
|
validateVideoDescription();
|
|
|
|
validateVideoDescription();
|
|
|
@ -457,6 +459,8 @@ async function initializeVideoInfo() {
|
|
|
|
titleElem.value = videoInfo.description;
|
|
|
|
titleElem.value = videoInfo.description;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
validateVideoTitle();
|
|
|
|
validateVideoTitle();
|
|
|
|
|
|
|
|
document.getElementById("video-info-title-abbreviated").innerText =
|
|
|
|
|
|
|
|
videoInfo.title_prefix + titleElem.value;
|
|
|
|
|
|
|
|
|
|
|
|
const descriptionElem = document.getElementById("video-info-description");
|
|
|
|
const descriptionElem = document.getElementById("video-info-description");
|
|
|
|
if (videoInfo.video_description) {
|
|
|
|
if (videoInfo.video_description) {
|
|
|
@ -1439,7 +1443,9 @@ function chapterMarkerDefinitionDOM() {
|
|
|
|
|
|
|
|
|
|
|
|
playFromStartTime.addEventListener("click", (event) => {
|
|
|
|
playFromStartTime.addEventListener("click", (event) => {
|
|
|
|
const chapterContainer = event.currentTarget.parentElement;
|
|
|
|
const chapterContainer = event.currentTarget.parentElement;
|
|
|
|
const startTimeField = chapterContainer.getElementsByClassName("range-definition-chapter-marker-start")[0];
|
|
|
|
const startTimeField = chapterContainer.getElementsByClassName(
|
|
|
|
|
|
|
|
"range-definition-chapter-marker-start"
|
|
|
|
|
|
|
|
)[0];
|
|
|
|
const newVideoTime = videoPlayerTimeFromVideoHumanTime(startTimeField.value);
|
|
|
|
const newVideoTime = videoPlayerTimeFromVideoHumanTime(startTimeField.value);
|
|
|
|
if (newVideoTime !== null) {
|
|
|
|
if (newVideoTime !== null) {
|
|
|
|
const videoElement = document.getElementById("video");
|
|
|
|
const videoElement = document.getElementById("video");
|
|
|
|