This commit is contained in:
Francesco Mecca 2023-07-05 17:34:40 +02:00
parent 8bf1201888
commit 42de59f96f
2 changed files with 11 additions and 0 deletions

View File

@ -11,6 +11,7 @@
<video id="gameVideo" controls> <video id="gameVideo" controls>
<source src="audiovideo.webm" type="video/mp4"> <source src="audiovideo.webm" type="video/mp4">
</video> </video>
<button id="toggleButton">Fanculo Mancini, io mi drogo</button>
<div id="wheel"></div> <div id="wheel"></div>
</div> </div>
<div> <div>

View File

@ -72,3 +72,13 @@ function preventDefault(event) {
// Call disableScroll() to disable scrolling // Call disableScroll() to disable scrolling
disableScroll(); disableScroll();
var toggleButton = document.getElementById('toggleButton');
var contentDiv = document.getElementById('gameVideo');
toggleButton.addEventListener('click', function() {
if (contentDiv.style.display === 'none') {
contentDiv.style.display = 'block';
} else {
contentDiv.style.display = 'none';
}
});