diff --git a/bocciofila/index.html b/bocciofila/index.html index 8184fe9..125a9c1 100644 --- a/bocciofila/index.html +++ b/bocciofila/index.html @@ -11,6 +11,7 @@ +
diff --git a/bocciofila/script.js b/bocciofila/script.js index b04bc0a..aced0ea 100644 --- a/bocciofila/script.js +++ b/bocciofila/script.js @@ -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'; + } +});