ydshieh HF staff commited on
Commit
a91d53f
1 Parent(s): 3c17f8a

Update transcript-tracer.js

Browse files
Files changed (1) hide show
  1. transcript-tracer.js +8 -0
transcript-tracer.js CHANGED
@@ -618,6 +618,14 @@ function handleSelection() {
618
  console.log(transcript.children);
619
  console.log(transcript.children[0]);
620
  console.log(transcript.children[0].children);
 
 
 
 
 
 
 
 
621
 
622
  // for (const wordElement of ttCurrentTranscript.getElementsByClassName('tt-word')) {
623
  // if (wordElement.classList.contains('tt-current-word')) break;
 
618
  console.log(transcript.children);
619
  console.log(transcript.children[0]);
620
  console.log(transcript.children[0].children);
621
+
622
+ var nodes = []
623
+ for (x in transcript.children) {
624
+ for (y in x.children) {
625
+ nodes.push(y);
626
+ }
627
+ }
628
+ console.log(nodes);
629
 
630
  // for (const wordElement of ttCurrentTranscript.getElementsByClassName('tt-word')) {
631
  // if (wordElement.classList.contains('tt-current-word')) break;