button
This commit is contained in:
parent
8bf1201888
commit
42de59f96f
@ -11,6 +11,7 @@
|
||||
<video id="gameVideo" controls>
|
||||
<source src="audiovideo.webm" type="video/mp4">
|
||||
</video>
|
||||
<button id="toggleButton">Fanculo Mancini, io mi drogo</button>
|
||||
<div id="wheel"></div>
|
||||
</div>
|
||||
<div>
|
||||
|
@ -72,3 +72,13 @@ function preventDefault(event) {
|
||||
|
||||
// Call disableScroll() to disable scrolling
|
||||
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';
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user