Update pages.html
Browse files- pages.html +9 -37
pages.html
CHANGED
@@ -1112,33 +1112,20 @@ var btn_2 = document.getElementById("myBtn_2");
|
|
1112 |
// Get the <span> element that closes the modal
|
1113 |
var span_2 = document.getElementsByClassName("close_2")[0];
|
1114 |
|
1115 |
-
// Function to open the modal
|
1116 |
-
function openModal(modal) {
|
1117 |
-
currentMaxZIndex += 1;
|
1118 |
-
modal_2.style.display = "block";
|
1119 |
-
modal_2.style.zIndex = currentMaxZIndex;
|
1120 |
-
}
|
1121 |
-
|
1122 |
-
// Function to close the modal
|
1123 |
-
function closeModal(modal) {
|
1124 |
-
modal_2.style.display = "none";
|
1125 |
-
currentMaxZIndex = 20; // Reset z-index to initial value
|
1126 |
-
}
|
1127 |
-
|
1128 |
// When the user clicks the button, open the modal
|
1129 |
btn_2.onclick = function() {
|
1130 |
-
|
1131 |
}
|
1132 |
|
1133 |
// When the user clicks on <span> (x), close the modal
|
1134 |
span_2.onclick = function() {
|
1135 |
-
|
1136 |
}
|
1137 |
|
1138 |
// When the user clicks anywhere outside of the modal, close it
|
1139 |
window.onclick = function(event) {
|
1140 |
if (event.target == modal_2) {
|
1141 |
-
|
1142 |
}
|
1143 |
}
|
1144 |
|
@@ -1149,42 +1136,27 @@ window.onclick = function(event) {
|
|
1149 |
<script>
|
1150 |
// Get the modal_3
|
1151 |
var modal_3 = document.getElementById("myModal_3");
|
1152 |
-
|
1153 |
// Get the button that opens the modal
|
1154 |
var btn_3 = document.getElementById("myBtn_3");
|
1155 |
-
|
1156 |
// Get the <span> element that closes the modal
|
1157 |
var span_3 = document.getElementsByClassName("close_3")[0];
|
1158 |
-
|
1159 |
-
// Function to open the modal
|
1160 |
-
function openModal(modal) {
|
1161 |
-
currentMaxZIndex += 1;
|
1162 |
-
modal_3.style.display = "block";
|
1163 |
-
modal_3.style.zIndex = currentMaxZIndex;
|
1164 |
-
}
|
1165 |
-
|
1166 |
-
// Function to close the modal
|
1167 |
-
function closeModal(modal) {
|
1168 |
-
modal_3.style.display = "none";
|
1169 |
-
currentMaxZIndex = 20; // Reset z-index to initial value
|
1170 |
-
}
|
1171 |
-
|
1172 |
// When the user clicks the button, open the modal
|
1173 |
btn_3.onclick = function() {
|
1174 |
-
|
1175 |
}
|
1176 |
-
|
1177 |
// When the user clicks on <span> (x), close the modal
|
1178 |
span_3.onclick = function() {
|
1179 |
-
|
1180 |
}
|
1181 |
-
|
1182 |
// When the user clicks anywhere outside of the modal, close it
|
1183 |
window.onclick = function(event) {
|
1184 |
if (event.target == modal_3) {
|
1185 |
-
|
1186 |
}
|
1187 |
}
|
|
|
|
|
|
|
1188 |
</script>
|
1189 |
|
1190 |
|
|
|
1112 |
// Get the <span> element that closes the modal
|
1113 |
var span_2 = document.getElementsByClassName("close_2")[0];
|
1114 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1115 |
// When the user clicks the button, open the modal
|
1116 |
btn_2.onclick = function() {
|
1117 |
+
modal_2.style.display = "block";
|
1118 |
}
|
1119 |
|
1120 |
// When the user clicks on <span> (x), close the modal
|
1121 |
span_2.onclick = function() {
|
1122 |
+
modal_2.style.display = "none";
|
1123 |
}
|
1124 |
|
1125 |
// When the user clicks anywhere outside of the modal, close it
|
1126 |
window.onclick = function(event) {
|
1127 |
if (event.target == modal_2) {
|
1128 |
+
modal_2.style.display = "none";
|
1129 |
}
|
1130 |
}
|
1131 |
|
|
|
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.style.display = "block";
|
1146 |
}
|
|
|
1147 |
// When the user clicks on <span> (x), close the modal
|
1148 |
span_3.onclick = function() {
|
1149 |
+
modal_3.style.display = "none";
|
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.style.display = "none";
|
1155 |
}
|
1156 |
}
|
1157 |
+
|
1158 |
+
|
1159 |
+
|
1160 |
</script>
|
1161 |
|
1162 |
|