ayuskinner/src/error.html
2023-09-02 15:54:27 +02:00

35 lines
No EOL
1.2 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AyuSkinner</title>
<link rel="stylesheet" href="style.css">
<script src="https://code.iconify.design/3/3.1.1/iconify.min.js"></script>
<script>
function retry() {
fetch("https://ayuworks.xyz/ayuskinner/data.php").catch(err => {
console.log(err);
}).then(async (res) => {
console.log(res);
if (res == undefined || !res.ok) {
document.querySelector(".text-red").innerText = "Failed.";
} else {
location.href = "index.html";
}
});
}
</script>
</head>
<body class="mocha bg-base text-text flex items-center justify-center h-screen">
<div class="p-4 rounded-lg bg-crust">
<h1 class="text-2xl">Failed to connect to server.</h1>
<br>
<button class="px-4 py-2 rounded-lg bg-mauve text-mantle transition duration-150 hover:bg-subtext0" onclick="retry();">Try Again</button>
<p class="text-red"></p>
</div>
</body>
</html>