@@ -37,27 +38,32 @@
diff --git a/bocciofila/script.js b/bocciofila/script.js
index aced0ea..44b1ee9 100644
--- a/bocciofila/script.js
+++ b/bocciofila/script.js
@@ -82,3 +82,10 @@ toggleButton.addEventListener('click', function() {
contentDiv.style.display = 'none';
}
});
+// document.getElementById("legend-button").addEventListener("click", function() {
+ // document.getElementById("legend-modal").style.display = "block";
+// });
+
+document.getElementById("close-button").addEventListener("click", function() {
+ document.getElementById("legend-modal").style.display = "none";
+});
diff --git a/bocciofila/style2.css b/bocciofila/style2.css
index 5fbe154..8b505d5 100644
--- a/bocciofila/style2.css
+++ b/bocciofila/style2.css
@@ -25,3 +25,37 @@ html, body {
/* display: none; /\* Hides the container by default *\/ */
margin: 0 auto; /* Centers the container horizontally */
}
+.modal {
+ display: none;
+ position: fixed;
+ z-index: 999;
+ left: 0;
+ top: 0;
+ width: 100%;
+ height: 100%;
+ overflow: auto;
+ background-color: rgba(0, 0, 0, 0.5);
+}
+
+.modal-content {
+ background-color: #fefefe;
+ margin: 20% auto;
+ padding: 20px;
+ border: 1px solid #888;
+ width: 80%;
+ max-width: 800px;
+}
+
+#legend-button {
+ background: none;
+ border: none;
+ cursor: pointer;
+}
+
+#legend-button img {
+ width: 80px;
+ height: 80px;
+ margin-right: 5px;
+}
+
+*{cursor: url("pincursorsh.png"), default;}