Änderungen von Dokument Servermeldungen (SaaS)
Zuletzt geändert von MACH ProForms GmbH am 22.07.2024
Von Version 7.1
bearbeitet von MACH ProForms GmbH
am 16.07.2024
am 16.07.2024
Änderungskommentar:
Es gibt keinen Kommentar für diese Version
Auf Version 9.1
bearbeitet von MACH ProForms GmbH
am 16.07.2024
am 16.07.2024
Änderungskommentar:
Es gibt keinen Kommentar für diese Version
Zusammenfassung
-
Seiteneigenschaften (1 geändert, 0 hinzugefügt, 0 gelöscht)
Details
- Seiteneigenschaften
-
- Inhalt
-
... ... @@ -58,19 +58,15 @@ 58 58 </div> 59 59 60 60 <script type="text/javascript"> 61 - // Function to fetch data from api-status.php and update the HTML 62 62 function fetchData() { 63 -// fetch('api-status.php') // Local Call 64 64 fetch('https://mpf-serversstatus.azurewebsites.net/api/http_serversstatus_trigger') 65 65 .then(response => response.json()) 66 66 .then(data => { 67 67 const productiveSystemsList = document.querySelector('.productive-systems-list'); 68 68 const customerSystemsList = document.querySelector('.customer-systems-list'); 69 - 70 70 data.hostStatus.forEach(host => { 71 71 const listItem = document.createElement('li'); 72 72 listItem.innerHTML = `<span class="host-name">${host.host}:</span> <span class="status-${getStatusColor(host.status)}"><strong>${getStatusText(host.status)}</strong></span>`; 73 - 74 74 if (host.host === "pdf.form-solutions.net" || host.host === "onlinedienste.form-solutions.de") { 75 75 productiveSystemsList.appendChild(listItem); 76 76 } else { ... ... @@ -77,11 +77,8 @@ 77 77 customerSystemsList.appendChild(listItem); 78 78 } 79 79 }); 80 - 81 - // Update Next Planned Update Date 82 82 const plannedUpdate = document.getElementById('plannedUpdate'); 83 83 plannedUpdate.textContent = data.plannedUpdate; 84 - // Update Next Planned Maintenance Date 85 85 const plannedMaintenance = document.getElementById('plannedMaintenance'); 86 86 plannedMaintenance.textContent = data.plannedMaintenance; 87 87 }) ... ... @@ -118,7 +118,6 @@ 118 118 } 119 119 } 120 120 121 - // Call fetchData when the page loads 122 122 window.addEventListener('load', fetchData); 123 123 </script> 124 124 {{/html}}