Update pages.html
Browse files- pages.html +21 -6
pages.html
CHANGED
@@ -1136,27 +1136,42 @@ window.onclick = function(event) {
|
|
1136 |
<script>
|
1137 |
// Get the modal_3
|
1138 |
var modal_3 = document.getElementById("myModal_3");
|
|
|
1139 |
// Get the button that opens the modal
|
1140 |
var btn_3 = document.getElementById("myBtn_3");
|
|
|
1141 |
// Get the <span> element that closes the modal
|
1142 |
var span_3 = document.getElementsByClassName("close_3")[0];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1143 |
// When the user clicks the button, open the modal
|
1144 |
btn_3.onclick = function() {
|
1145 |
-
modal_3
|
1146 |
}
|
|
|
1147 |
// When the user clicks on <span> (x), close the modal
|
1148 |
span_3.onclick = function() {
|
1149 |
-
modal_3
|
1150 |
}
|
|
|
1151 |
// When the user clicks anywhere outside of the modal, close it
|
1152 |
window.onclick = function(event) {
|
1153 |
if (event.target == modal_3) {
|
1154 |
-
modal_3
|
1155 |
}
|
1156 |
}
|
1157 |
-
|
1158 |
-
|
1159 |
-
|
1160 |
</script>
|
1161 |
|
1162 |
|
|
|
1136 |
<script>
|
1137 |
// Get the modal_3
|
1138 |
var modal_3 = document.getElementById("myModal_3");
|
1139 |
+
|
1140 |
// Get the button that opens the modal
|
1141 |
var btn_3 = document.getElementById("myBtn_3");
|
1142 |
+
|
1143 |
// Get the <span> element that closes the modal
|
1144 |
var span_3 = document.getElementsByClassName("close_3")[0];
|
1145 |
+
|
1146 |
+
// Function to open the modal
|
1147 |
+
function openModal_3(modal) {
|
1148 |
+
currentMaxZIndex += 1;
|
1149 |
+
modal.style.display = "block";
|
1150 |
+
modal.style.zIndex = currentMaxZIndex;
|
1151 |
+
}
|
1152 |
+
|
1153 |
+
// Function to close the modal
|
1154 |
+
function closeModal_3(modal) {
|
1155 |
+
modal.style.display = "none";
|
1156 |
+
currentMaxZIndex = 20; // Reset z-index to initial value
|
1157 |
+
}
|
1158 |
+
|
1159 |
// When the user clicks the button, open the modal
|
1160 |
btn_3.onclick = function() {
|
1161 |
+
openModal_3(modal_3);
|
1162 |
}
|
1163 |
+
|
1164 |
// When the user clicks on <span> (x), close the modal
|
1165 |
span_3.onclick = function() {
|
1166 |
+
closeModal_3(modal_3);
|
1167 |
}
|
1168 |
+
|
1169 |
// When the user clicks anywhere outside of the modal, close it
|
1170 |
window.onclick = function(event) {
|
1171 |
if (event.target == modal_3) {
|
1172 |
+
closeModal_3(modal_3);
|
1173 |
}
|
1174 |
}
|
|
|
|
|
|
|
1175 |
</script>
|
1176 |
|
1177 |
|