Update pages.html
Browse files- pages.html +5 -17
pages.html
CHANGED
@@ -1082,35 +1082,23 @@ var btn_1 = document.getElementById("myBtn");
|
|
1082 |
// Get the <span> element that closes the modal
|
1083 |
var span_1 = document.getElementsByClassName("close_1")[0];
|
1084 |
|
1085 |
-
// Function to open the modal
|
1086 |
-
function openModal(modal) {
|
1087 |
-
currentMaxZIndex += 1;
|
1088 |
-
modal_1.style.display = "block";
|
1089 |
-
modal_1.style.zIndex = currentMaxZIndex;
|
1090 |
-
}
|
1091 |
-
|
1092 |
-
// Function to close the modal
|
1093 |
-
function closeModal(modal) {
|
1094 |
-
modal_1.style.display = "none";
|
1095 |
-
currentMaxZIndex = 20; // Reset z-index to initial value
|
1096 |
-
}
|
1097 |
-
|
1098 |
// When the user clicks the button, open the modal
|
1099 |
btn_1.onclick = function() {
|
1100 |
-
|
1101 |
}
|
1102 |
|
1103 |
// When the user clicks on <span> (x), close the modal
|
1104 |
span_1.onclick = function() {
|
1105 |
-
|
1106 |
}
|
1107 |
|
1108 |
// When the user clicks anywhere outside of the modal, close it
|
1109 |
window.onclick = function(event) {
|
1110 |
if (event.target == modal_1) {
|
1111 |
-
|
1112 |
}
|
1113 |
}
|
|
|
1114 |
</script>
|
1115 |
|
1116 |
|
@@ -1150,7 +1138,7 @@ span_2.onclick = function() {
|
|
1150 |
// When the user clicks anywhere outside of the modal, close it
|
1151 |
window.onclick = function(event) {
|
1152 |
if (event.target == modal_2) {
|
1153 |
-
closeModal(
|
1154 |
}
|
1155 |
}
|
1156 |
|
|
|
1082 |
// Get the <span> element that closes the modal
|
1083 |
var span_1 = document.getElementsByClassName("close_1")[0];
|
1084 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1085 |
// When the user clicks the button, open the modal
|
1086 |
btn_1.onclick = function() {
|
1087 |
+
modal_1.style.display = "block";
|
1088 |
}
|
1089 |
|
1090 |
// When the user clicks on <span> (x), close the modal
|
1091 |
span_1.onclick = function() {
|
1092 |
+
modal_1.style.display = "none";
|
1093 |
}
|
1094 |
|
1095 |
// When the user clicks anywhere outside of the modal, close it
|
1096 |
window.onclick = function(event) {
|
1097 |
if (event.target == modal_1) {
|
1098 |
+
modal_1.style.display = "none";
|
1099 |
}
|
1100 |
}
|
1101 |
+
|
1102 |
</script>
|
1103 |
|
1104 |
|
|
|
1138 |
// When the user clicks anywhere outside of the modal, close it
|
1139 |
window.onclick = function(event) {
|
1140 |
if (event.target == modal_2) {
|
1141 |
+
closeModal(modal_2);
|
1142 |
}
|
1143 |
}
|
1144 |
|