js - rezmehp/tutorial GitHub Wiki

Close Windows

var modal = document.getElementById("myModal"); span.onclick = function() { modal.style.display = "none"; }

When the user clicks anywhere outside of the modal, close it

window.onclick = function(event) { if (event.target == modal) { modal.style.display = "none"; } }

Custom Video Audio

https://codepen.io/codingandstuff/pen/rNNNzyW https://github.com/DaftCreation/Custom-Audio-Player