errorModal not opening
Browse files- index.html +2 -2
- script.js +3 -2
- style.css +2 -1
index.html
CHANGED
|
@@ -113,8 +113,8 @@
|
|
| 113 |
<button id="closeModal" class="text-gray-500 hover:text-gray-700 p-2">
|
| 114 |
<i data-feather="x" class="w-5 h-5"></i>
|
| 115 |
</button>
|
| 116 |
-
</div>
|
| 117 |
-
|
| 118 |
<div>
|
| 119 |
<h3 class="font-medium text-gray-700 mb-2">Request Information</h3>
|
| 120 |
<div class="space-y-2">
|
|
|
|
| 113 |
<button id="closeModal" class="text-gray-500 hover:text-gray-700 p-2">
|
| 114 |
<i data-feather="x" class="w-5 h-5"></i>
|
| 115 |
</button>
|
| 116 |
+
</div>
|
| 117 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-6">
|
| 118 |
<div>
|
| 119 |
<h3 class="font-medium text-gray-700 mb-2">Request Information</h3>
|
| 120 |
<div class="space-y-2">
|
script.js
CHANGED
|
@@ -152,17 +152,18 @@ function showErrorDetails(log) {
|
|
| 152 |
|
| 153 |
document.getElementById('modalErrorMessage').textContent = log.errorMessage;
|
| 154 |
document.getElementById('modalResolution').textContent = log.resolution;
|
| 155 |
-
errorModal.classList.remove('hidden');
|
| 156 |
document.body.style.overflow = 'hidden';
|
|
|
|
| 157 |
}
|
| 158 |
|
| 159 |
// Function to close modal
|
| 160 |
function closeErrorModal() {
|
| 161 |
errorModal.classList.add('hidden');
|
|
|
|
| 162 |
document.body.style.overflow = 'auto';
|
| 163 |
currentLog = null;
|
| 164 |
}
|
| 165 |
-
|
| 166 |
// Event listeners
|
| 167 |
closeModal.addEventListener('click', closeErrorModal);
|
| 168 |
closeModalBtn.addEventListener('click', closeErrorModal);
|
|
|
|
| 152 |
|
| 153 |
document.getElementById('modalErrorMessage').textContent = log.errorMessage;
|
| 154 |
document.getElementById('modalResolution').textContent = log.resolution;
|
| 155 |
+
errorModal.classList.remove('hidden');
|
| 156 |
document.body.style.overflow = 'hidden';
|
| 157 |
+
errorModal.style.display = 'flex';
|
| 158 |
}
|
| 159 |
|
| 160 |
// Function to close modal
|
| 161 |
function closeErrorModal() {
|
| 162 |
errorModal.classList.add('hidden');
|
| 163 |
+
errorModal.style.display = 'none';
|
| 164 |
document.body.style.overflow = 'auto';
|
| 165 |
currentLog = null;
|
| 166 |
}
|
|
|
|
| 167 |
// Event listeners
|
| 168 |
closeModal.addEventListener('click', closeErrorModal);
|
| 169 |
closeModalBtn.addEventListener('click', closeErrorModal);
|
style.css
CHANGED
|
@@ -58,8 +58,9 @@
|
|
| 58 |
width: 100%;
|
| 59 |
height: 100%;
|
| 60 |
z-index: 9999;
|
|
|
|
|
|
|
| 61 |
}
|
| 62 |
-
|
| 63 |
#errorModal .bg-white {
|
| 64 |
max-height: 90vh;
|
| 65 |
overflow-y: auto;
|
|
|
|
| 58 |
width: 100%;
|
| 59 |
height: 100%;
|
| 60 |
z-index: 9999;
|
| 61 |
+
align-items: center;
|
| 62 |
+
justify-content: center;
|
| 63 |
}
|
|
|
|
| 64 |
#errorModal .bg-white {
|
| 65 |
max-height: 90vh;
|
| 66 |
overflow-y: auto;
|