Правки различные
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ru">
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>HAN Chat</title>
|
||||
<style>
|
||||
body {
|
||||
margin: 0;
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 16px;
|
||||
padding: 32px 24px;
|
||||
background: #fff;
|
||||
color: #252525;
|
||||
font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
||||
text-align: center;
|
||||
}
|
||||
p { margin: 0; line-height: 1.5; }
|
||||
a {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-width: 220px;
|
||||
height: 56px;
|
||||
padding: 0 24px;
|
||||
border-radius: 12px;
|
||||
background: #030213;
|
||||
color: #fff;
|
||||
font-size: 15px;
|
||||
font-weight: 500;
|
||||
text-decoration: none;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>Вход выполнен. Возвращаем в приложение…</p>
|
||||
<p>
|
||||
<a id="han-open-app" href="han-chat://auth/callbackHAN_CALLBACK_QUERY">Открыть HAN Chat</a>
|
||||
</p>
|
||||
<script src="/mobile/oidc/callback.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,6 @@
|
||||
(function () {
|
||||
var target = "han-chat://auth/callback" + window.location.search + window.location.hash;
|
||||
var link = document.getElementById("han-open-app");
|
||||
if (link) link.href = target;
|
||||
window.location.replace(target);
|
||||
})();
|
||||
Reference in New Issue
Block a user