Delete player.js
Browse files
player.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
| 1 |
-
const video = document.getElementById('video');
|
| 2 |
-
const playButton = document.getElementById('play-button');
|
| 3 |
-
|
| 4 |
-
playButton.addEventListener('click', toggleVideo);
|
| 5 |
-
|
| 6 |
-
function toggleVideo() {
|
| 7 |
-
if (video.paused) {
|
| 8 |
-
video.play();
|
| 9 |
-
playButton.textContent = 'Pause';
|
| 10 |
-
} else {
|
| 11 |
-
video.pause();
|
| 12 |
-
playButton.textContent = 'Play';
|
| 13 |
-
}
|
| 14 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|