ervu-lkrp-landing/html/script/cert-checker.js
2025-01-24 16:29:47 +03:00

16 lines
No EOL
670 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

document.addEventListener("DOMContentLoaded", () => {
// Получаем значение flLandingUrl из data-атрибута
const flLandingUrl = document.getElementById("cert-check-info").dataset.certUrl;
// Выполняем fetch с использованием полученного URL
fetch(flLandingUrl, { mode: "no-cors" })
.then((response) => {
if (!response.ok) {
throw new Error("Server responded with status " + response.status);
}
document.getElementById("cert-check-info").hidden = true;
})
.catch((error) => {
console.error("Fetch error:", error.message || error);
});
});