// Get the modal var modal = document.getElementById(‘myModal’); // Get the button that opens the modal var btn = document.getElementById(“myBtn”); var myVideo = document.getElementById(“video1”); // When the user clicks the button, open the modal btn.onclick = function() { modal.style.display = “block”; $(“.nav-menu”).css(“position”, “initial”); } function playPause() { myVideo.pause(); modal.style.display = “none”; $(“.nav-menu”).css(“position”, “relative”); }