There is a picture as a background and a block on top.
With this code on the ~ key I hide the block, only the background image remains:
addEventListener("keydown", function(event) { if (event.keyCode == 192) document.body.style.display = (document.body.style.display === 'none') ? 'block' : 'none'; }) Now I put the video on the background through the video tag, but when I click ~ , the block is hidden along with the background video and the white background remains, and only the block should be hidden. What am I doing wrong?