100 lines
3.0 KiB
HTML
100 lines
3.0 KiB
HTML
<!doctype html>
|
|
<html lang="ru">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>Shooting word</title>
|
|
<link rel="stylesheet" href="style.css" />
|
|
<style>
|
|
#channel-form {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
background: rgba(5, 5, 5, 0.95);
|
|
z-index: 20;
|
|
text-align: center;
|
|
gap: 16px;
|
|
}
|
|
#channel-form input {
|
|
background: transparent;
|
|
border: 1px solid #00ff41;
|
|
color: #00ff41;
|
|
font-family: "Courier New", monospace;
|
|
font-size: 18px;
|
|
padding: 10px 16px;
|
|
width: 260px;
|
|
text-align: center;
|
|
outline: none;
|
|
text-shadow: 0 0 8px #00ff41;
|
|
box-shadow: 0 0 10px rgba(0, 255, 65, 0.15);
|
|
}
|
|
#channel-form input:focus {
|
|
box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
|
|
}
|
|
#channel-form button {
|
|
background: transparent;
|
|
border: 1px solid #00ff41;
|
|
color: #00ff41;
|
|
font-family: "Courier New", monospace;
|
|
font-size: 16px;
|
|
padding: 8px 32px;
|
|
cursor: pointer;
|
|
text-shadow: 0 0 8px #00ff41;
|
|
box-shadow: 0 0 10px rgba(0, 255, 65, 0.15);
|
|
transition: all 0.15s;
|
|
min-width: 220px;
|
|
}
|
|
#channel-form button:hover {
|
|
background: rgba(0, 255, 65, 0.1);
|
|
box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
|
|
}
|
|
#game-link {
|
|
margin-top: 8px;
|
|
color: #00cc33;
|
|
font-size: 14px;
|
|
min-height: 20px;
|
|
}
|
|
#game-link.copied {
|
|
color: #00ff41;
|
|
text-shadow: 0 0 8px #00ff41;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="game-container">
|
|
<div id="channel-form">
|
|
<div class="screen-title">SHOOTING WORD</div>
|
|
<div class="screen-subtitle">Введите имя канала для игры</div>
|
|
<input type="text" id="channel-input" placeholder="ku6ep_xboctuk" autofocus />
|
|
<button id="copy-btn">СКОПИРОВАТЬ ССЫЛКУ</button>
|
|
<div id="game-link"></div>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
const input = document.getElementById("channel-input");
|
|
const copyBtn = document.getElementById("copy-btn");
|
|
const linkEl = document.getElementById("game-link");
|
|
|
|
function copyLink() {
|
|
const name = input.value.trim().toLowerCase() || "ku6ep_xboctuk";
|
|
const url = `${location.origin}${location.pathname.replace(/\/[^/]*$/, "/")}game.html?channel=${encodeURIComponent(name)}`;
|
|
navigator.clipboard.writeText(url).then(() => {
|
|
linkEl.textContent = "СКОПИРОВАНО!";
|
|
linkEl.className = "copied";
|
|
});
|
|
}
|
|
|
|
copyBtn.addEventListener("click", copyLink);
|
|
input.addEventListener("keydown", (e) => {
|
|
if (e.key === "Enter") copyLink();
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|