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