My Video Player

My Video Player - student project

I added a like and dislike button.

My Video Player - image 1 - student project

 

Here's the code if you're interested and you can try to make it better than what I did:

html:

div>       

button id="like">👍button>       

button id="dislike">👎button>     

div>

js:

const like = document.querySelector('#like')

const dislike = document.querySelector('#dislike')


like.addEventListener('click', function like() { 

this.style.border="2px red solid" 

dislike.style.display="none"})


dislike.addEventListener('click', function dislike() { 

this.style.border="2px red solid" 

like.style.display="none"})