This repository contains the initial public version of the project. The previous development history was intentionally not included.
47 lines
1.7 KiB
HTML
47 lines
1.7 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<meta name="robots" content="noindex" />
|
|
<title>Returning to Diffusion Studio…</title>
|
|
<style>
|
|
:root { color-scheme: dark; }
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif;
|
|
background: #0a0a0a;
|
|
color: #fafafa;
|
|
display: grid;
|
|
place-items: center;
|
|
min-height: 100vh;
|
|
margin: 0;
|
|
}
|
|
.card { text-align: center; max-width: 22rem; padding: 2rem; }
|
|
h1 { font-size: 1.125rem; font-weight: 600; margin: 0 0 0.5rem; }
|
|
p { color: #a3a3a3; margin: 0.5rem 0; font-size: 0.875rem; }
|
|
a { color: #5b9dff; text-decoration: none; }
|
|
a:hover { text-decoration: underline; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="card">
|
|
<h1>Returning you to Diffusion Studio…</h1>
|
|
<p>You can close this tab.</p>
|
|
<p><small>Nothing happening? <a id="link" href="#">Open the app</a>.</small></p>
|
|
</div>
|
|
<script>
|
|
(function () {
|
|
var params = new URLSearchParams(window.location.search);
|
|
var hash = new URLSearchParams(window.location.hash.replace(/^#/, ""));
|
|
var merged = new URLSearchParams();
|
|
params.forEach(function (v, k) { merged.set(k, v); });
|
|
hash.forEach(function (v, k) { merged.set(k, v); });
|
|
var target = "diffusion://auth/callback?" + merged.toString();
|
|
var link = document.getElementById("link");
|
|
if (link) link.setAttribute("href", target);
|
|
window.location.replace(target);
|
|
})();
|
|
</script>
|
|
</body>
|
|
</html>
|