mirror of
https://github.com/bitinflow/rerun-encoder.git
synced 2026-03-13 13:46:00 +00:00
36 lines
1.4 KiB
HTML
36 lines
1.4 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en" class="h-full">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Login Successful</title>
|
|
<script src="https://cdn.tailwindcss.com"></script>
|
|
</head>
|
|
<body class="h-full">
|
|
<div class="min-h-full pt-16 pb-12 flex flex-col bg-white">
|
|
<main class="flex-grow flex flex-col justify-center max-w-7xl w-full mx-auto px-4 sm:px-6 lg:px-8">
|
|
<div class="py-16">
|
|
<div class="text-center">
|
|
<p class="text-sm font-semibold text-purple-600 uppercase tracking-wide">Rerun Encoder</p>
|
|
<h1 class="mt-2 text-4xl font-extrabold text-gray-900 tracking-tight sm:text-5xl">Login Successful</h1>
|
|
<p class="mt-2 text-base text-gray-500">You may close the page now.</p>
|
|
<div class="mt-6">
|
|
<a href="javascript:close()" class="text-base font-medium text-purple-600 hover:text-purple-500">Close window<span aria-hidden="true"> →</span></a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
</div>
|
|
<script type="application/javascript">
|
|
fetch("/callback", {
|
|
method: "POST",
|
|
headers: {'Content-Type': 'application/json'},
|
|
body: JSON.stringify({
|
|
hash: location.hash.substring(1),
|
|
})
|
|
}).then(res => {
|
|
console.log("Request complete! response:", res);
|
|
setTimeout(() => close(), 1000);
|
|
});
|
|
</script>
|
|
</body>
|
|
</html> |