Ciros commited on
Commit
11aed5b
·
1 Parent(s): 1ecb7af

Delete player.js

Browse files
Files changed (1) hide show
  1. player.js +0 -14
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
- }