-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmaps.js
51 lines (43 loc) · 1.23 KB
/
maps.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<script>
var video = document.getElementById("myVideo"),
startbutton = document.getElementById("start"),
buttontwo = document.getElementById("go_two"),
buttonthree = document.getElementById("go_three"),
buttonfour = document.getElementById("go_four"),
pausebutton = document.getElementById("pause");
//click button to go to next canto
startbutton.addEventListener("click", function (event) {
event.preventDefault();
myVideo.play();
myVideo.pause();
myVideo.currentTime = 0;
myVideo.play();
}, false);
buttontwo.addEventListener("click", function (event) {
event.preventDefault();
myVideo.play();
myVideo.pause();
myVideo.currentTime = 34;
myVideo.play();
}, false);
buttonthree.addEventListener("click", function (event) {
event.preventDefault();
myVideo.play();
myVideo.pause();
myVideo.currentTime = 114;
myVideo.play();
}, false);
buttonfour.addEventListener("click", function (event) {
event.preventDefault();
myVideo.play();
myVideo.pause();
myVideo.currentTime = 202;
myVideo.play();
}, false);
pausebutton.addEventListener("click", function (event) {
event.preventDefault();
myVideo.play();
myVideo.pause();
myVideo.play();
}, false);
</script>