Update transcript-tracer.js
Browse files- transcript-tracer.js +7 -9
transcript-tracer.js
CHANGED
|
@@ -489,11 +489,7 @@ function handleWordClick(e) {
|
|
| 489 |
if (wordElement.classList.contains('tt-current-word')) break;
|
| 490 |
wordElement.classList.add('tt-previous-word');
|
| 491 |
}
|
| 492 |
-
|
| 493 |
-
// pause
|
| 494 |
-
if (ttActivePlayer != null) {
|
| 495 |
-
ttActivePlayer.pause()
|
| 496 |
-
}
|
| 497 |
}
|
| 498 |
|
| 499 |
// Handle when a word in the transcript with an event listener is clicked
|
|
@@ -526,7 +522,7 @@ function handleWordDBClick(e) {
|
|
| 526 |
|
| 527 |
// pause
|
| 528 |
if (ttActivePlayer != null) {
|
| 529 |
-
ttActivePlayer.
|
| 530 |
}
|
| 531 |
}
|
| 532 |
|
|
@@ -540,10 +536,14 @@ function handleSelection() {
|
|
| 540 |
|
| 541 |
var startNode = temp.baseNode;
|
| 542 |
var wordElement = startNode.parentNode;
|
|
|
|
|
|
|
|
|
|
| 543 |
var wordIndex = wordElement.dataset.ttWord;
|
| 544 |
|
|
|
|
| 545 |
console.log(wordElement);
|
| 546 |
-
console.log(wordIndex);
|
| 547 |
|
| 548 |
console.log(wordElement.nextElementSibling)
|
| 549 |
|
|
@@ -564,8 +564,6 @@ function handleSelection() {
|
|
| 564 |
var index = (parseInt(wordIndex)+1).toString()
|
| 565 |
|
| 566 |
|
| 567 |
-
|
| 568 |
-
|
| 569 |
console.log(temp);
|
| 570 |
|
| 571 |
console.log(endNode);
|
|
|
|
| 489 |
if (wordElement.classList.contains('tt-current-word')) break;
|
| 490 |
wordElement.classList.add('tt-previous-word');
|
| 491 |
}
|
| 492 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
| 493 |
}
|
| 494 |
|
| 495 |
// Handle when a word in the transcript with an event listener is clicked
|
|
|
|
| 522 |
|
| 523 |
// pause
|
| 524 |
if (ttActivePlayer != null) {
|
| 525 |
+
ttActivePlayer.pause()
|
| 526 |
}
|
| 527 |
}
|
| 528 |
|
|
|
|
| 536 |
|
| 537 |
var startNode = temp.baseNode;
|
| 538 |
var wordElement = startNode.parentNode;
|
| 539 |
+
|
| 540 |
+
|
| 541 |
+
|
| 542 |
var wordIndex = wordElement.dataset.ttWord;
|
| 543 |
|
| 544 |
+
console.log(temp);
|
| 545 |
console.log(wordElement);
|
| 546 |
+
console.log(wordIndex);
|
| 547 |
|
| 548 |
console.log(wordElement.nextElementSibling)
|
| 549 |
|
|
|
|
| 564 |
var index = (parseInt(wordIndex)+1).toString()
|
| 565 |
|
| 566 |
|
|
|
|
|
|
|
| 567 |
console.log(temp);
|
| 568 |
|
| 569 |
console.log(endNode);
|