@@ -26,13 +26,6 @@ var caption = function () {
26
26
var data = { } ;
27
27
data . segments = [ ] ;
28
28
29
- console . log ( words . length ) ;
30
-
31
- console . log ( words [ 0 ] . innerText ) ;
32
- console . log ( words [ 1 ] . innerText ) ;
33
- console . log ( words [ 2 ] . innerText ) ;
34
- console . log ( words [ 3 ] . innerText ) ;
35
-
36
29
function segmentMeta ( speaker , start , duration , chars ) {
37
30
this . speaker = speaker ;
38
31
this . start = start ;
@@ -72,16 +65,6 @@ var caption = function () {
72
65
var lastSpeaker = '' ;
73
66
74
67
words . forEach ( function ( word , i ) {
75
-
76
-
77
- for ( var key in word ) {
78
- if ( word . hasOwnProperty ( key ) ) {
79
- console . log ( key ) ;
80
- }
81
- }
82
-
83
- console . log ( "word.innerText = " ) ;
84
- console . log ( word . innerText ) ;
85
68
if ( thisSegmentMeta === null ) {
86
69
// create segment meta object
87
70
thisSegmentMeta = new segmentMeta ( '' , null , 0 , 0 , 0 ) ;
@@ -124,7 +107,6 @@ var caption = function () {
124
107
//console.log("thisDuration = " + thisDuration);
125
108
126
109
var thisText = word . innerText ;
127
- console . log ( thisText ) ;
128
110
129
111
thisWordMeta = new wordMeta ( thisStart , thisDuration , thisText ) ;
130
112
@@ -346,4 +328,3 @@ var caption = function () {
346
328
347
329
return cap ;
348
330
} ;
349
-
0 commit comments