Update transcript-tracer.js
Browse files- transcript-tracer.js +4 -0
transcript-tracer.js
CHANGED
@@ -540,6 +540,10 @@ function handleSelection() {
|
|
540 |
var startNode = temp.baseNode;
|
541 |
var wordElement = startNode.parentNode;
|
542 |
var wordIndex = wordElement.dataset.ttWord;
|
|
|
|
|
|
|
|
|
543 |
var transcript = wordElement.closest('.tt-transcript');
|
544 |
var mediaUrl = transcript.dataset.ttCurrentMediaUrl;
|
545 |
var startSeconds = ttLinkedDataByMediaUrl[mediaUrl].wordTimings[wordIndex].startSeconds;
|
|
|
540 |
var startNode = temp.baseNode;
|
541 |
var wordElement = startNode.parentNode;
|
542 |
var wordIndex = wordElement.dataset.ttWord;
|
543 |
+
|
544 |
+
console.log(wordElement);
|
545 |
+
console.log(wordIndex);
|
546 |
+
|
547 |
var transcript = wordElement.closest('.tt-transcript');
|
548 |
var mediaUrl = transcript.dataset.ttCurrentMediaUrl;
|
549 |
var startSeconds = ttLinkedDataByMediaUrl[mediaUrl].wordTimings[wordIndex].startSeconds;
|