Spaces:
Running
Running
Update js/js.php
Browse files
js/js.php
CHANGED
@@ -42,7 +42,15 @@ $(function (){
|
|
42 |
else {
|
43 |
var newTime = $(this).attr("beg");
|
44 |
vid.currentTime = newTime / 1000;
|
|
|
45 |
vid.play();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
}
|
47 |
|
48 |
|
|
|
42 |
else {
|
43 |
var newTime = $(this).attr("beg");
|
44 |
vid.currentTime = newTime / 1000;
|
45 |
+
|
46 |
vid.play();
|
47 |
+
|
48 |
+
var segmentDur = $(this).attr("end") - newTime
|
49 |
+
|
50 |
+
setTimeout(function(){
|
51 |
+
document.getElementById('speakera').pause();
|
52 |
+
}, segmentDur);
|
53 |
+
|
54 |
}
|
55 |
|
56 |
|