2026-07-01 15:17:25 +00:00
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
|
<html lang="ru">
|
|
|
|
|
|
<head>
|
|
|
|
|
|
<meta charset="UTF-8" />
|
2026-07-01 15:53:07 +00:00
|
|
|
|
<title>Отправить сообщение на стрим</title>
|
2026-07-01 15:17:25 +00:00
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
|
|
|
|
<script src="https://accounts.google.com/gsi/client" async defer></script>
|
|
|
|
|
|
<style>
|
|
|
|
|
|
body {
|
|
|
|
|
|
font-family: system-ui, sans-serif;
|
|
|
|
|
|
max-width: 480px;
|
|
|
|
|
|
margin: 60px auto;
|
|
|
|
|
|
padding: 0 20px;
|
|
|
|
|
|
}
|
2026-07-01 15:53:07 +00:00
|
|
|
|
h1 {
|
|
|
|
|
|
font-size: 22px;
|
|
|
|
|
|
margin-bottom: 4px;
|
|
|
|
|
|
}
|
|
|
|
|
|
.subtitle {
|
|
|
|
|
|
color: #666;
|
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
margin-bottom: 24px;
|
|
|
|
|
|
}
|
2026-07-01 15:17:25 +00:00
|
|
|
|
#user-bar {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 10px;
|
|
|
|
|
|
margin-bottom: 20px;
|
|
|
|
|
|
}
|
|
|
|
|
|
#user-bar img {
|
|
|
|
|
|
width: 32px;
|
|
|
|
|
|
height: 32px;
|
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
|
}
|
|
|
|
|
|
#logout {
|
|
|
|
|
|
margin-left: auto;
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
color: #888;
|
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
}
|
|
|
|
|
|
textarea {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
height: 100px;
|
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
|
padding: 10px;
|
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
resize: vertical;
|
|
|
|
|
|
}
|
|
|
|
|
|
button {
|
|
|
|
|
|
margin-top: 10px;
|
|
|
|
|
|
padding: 10px 20px;
|
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
}
|
|
|
|
|
|
#status {
|
|
|
|
|
|
margin-top: 10px;
|
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
color: #888;
|
|
|
|
|
|
min-height: 20px;
|
|
|
|
|
|
}
|
|
|
|
|
|
#hidden-until-login {
|
|
|
|
|
|
display: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
</style>
|
|
|
|
|
|
</head>
|
|
|
|
|
|
<body>
|
|
|
|
|
|
|
2026-07-01 15:53:07 +00:00
|
|
|
|
<h1>Сообщение на стрим</h1>
|
|
|
|
|
|
<p class="subtitle">Войдите через Google и напишите сообщение — оно появится на стриме с озвучкой.</p>
|
|
|
|
|
|
|
2026-07-01 15:17:25 +00:00
|
|
|
|
<div id="login-container"></div>
|
|
|
|
|
|
|
|
|
|
|
|
<div id="hidden-until-login">
|
|
|
|
|
|
<div id="user-bar">
|
|
|
|
|
|
<img id="user-pic" src="" alt="" />
|
|
|
|
|
|
<span id="user-name"></span>
|
|
|
|
|
|
<span id="logout">выйти</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
2026-07-01 15:53:07 +00:00
|
|
|
|
<textarea id="message" placeholder="Текст для стрима..." maxlength="500"></textarea>
|
2026-07-01 15:17:25 +00:00
|
|
|
|
<br />
|
|
|
|
|
|
<button id="send">Отправить</button>
|
|
|
|
|
|
<div id="status"></div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<script src="/socket.io/socket.io.js"></script>
|
2026-07-01 15:53:07 +00:00
|
|
|
|
<script src="/send.js"></script>
|
2026-07-01 15:17:25 +00:00
|
|
|
|
</body>
|
|
|
|
|
|
</html>
|