Untitled
Anonymous
plain_text
04/13/2026 6:50 AM
1.9 KB
12
Indexable
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Opening...</title>
<link href="css/bootstrap.min.css" rel="stylesheet" type="text/css">
<style>
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
font-family: Arial, sans-serif;
}
</style>
</head>
<body>
<div>
<p>Waiting for the editor's server...</p>
<p><a id="url"></a></p>
<p id="status" style="font-size:0.8em;color:gray;"></p>
</div>
<script>
const url = decodeURIComponent(window.location.search).substring(1);
document.getElementById("url").textContent = url;
document.getElementById("url").href = url;
let attempts = 0;
const interval = setInterval(() => {
attempts++;
document.getElementById("status").textContent = `Attempt ${attempts}...`;
console.log("Ping " + url);
fetch(url, { mode: 'no-cors' })
.then(() => {
console.log("Server is up, redirecting...");
clearInterval(interval);
window.location.href = url;
})
.catch(err => {
console.log("Not ready yet: " + err);
});
}, 500);
</script>
</body>
</html>Editor is loading...
Leave a Comment