Checking PAK-DAM server status...
(function() {
const PAKDAM_URL = "https://pakserver.tailc88034.ts.net/";
const TIMEOUT_MS = 5000;
const statusDiv = document.getElementById('pakdam-status');
const controller = new AbortController();
const timeoutId = setTimeout(() => controller.abort(), TIMEOUT_MS);
fetch(PAKDAM_URL, { mode: 'no-cors', signal: controller.signal })
.then(() => {
clearTimeout(timeoutId);
window.location.href = PAKDAM_URL;
})
.catch(() => {
clearTimeout(timeoutId);
statusDiv.innerHTML =
'The PAK-DAM server is currently unavailable. Please try again later, ' +
'or contact the administrator.';
});
})();