ydshieh HF staff commited on
Commit
3e0188c
1 Parent(s): 82ea33a

Update transcript-tracer.js

Browse files
Files changed (1) hide show
  1. 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;