forked from Zakru/pasta-to-cfg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
32 lines (32 loc) · 1.8 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<!DOCTYPE html>
<html>
<head>
<title>Pasta to CFG</title>
<meta charset="utf-8" />
<link rel="stylesheet" type="text/css" href="./style.css" />
<script src="./index.js"></script>
</head>
<body>
<h1>Pasta to CFG</h1>
<p>
This page converts long texts into CFG files compatible with games such as
Counter-Strike: Global Offensive. These CFG files create a command alias
which, when called repeatedly (e.g. with a keybind set with
<code>bind <key> <alias></code>), outputs the entire text into
the game's chat, in chunks. <strong>Note:</strong> if the command is
called too fast, the server will most likely throttle the message rate,
resulting in some chunks going missing.
</p>
<textarea id="text-input" style="box-sizing: border-box; width: 40rem; height: 20rem; max-width: 100%;">To be fair, you have to have a very high IQ to understand Rick and Morty. The humor is extremely subtle, and without a solid grasp of theoretical physics most of the jokes will go over a typical viewer's head.</textarea><br/>
<input id="file-input" type="file" accept=".txt" hidden />
<button id="file-button">Upload a text file</button>
<label>Split at periods <input id="period-split" type="checkbox" /></label>
<label>Command name: <input id="name-input" type="text" value="pasta" /></label>
<label>Team chat <input id="team-input" type="checkbox" /></label>
<button id="download-button" disabled="true" title="Not available yet">Convert and download</button><br/>
<textarea id="text-output" readonly="true" style="box-sizing: border-box; width: 40rem; height: 20rem; max-width: 100%;"></textarea>
<footer>
Made by Zakru epicly B) <a href="https://github.com/Zakru/pasta-to-cfg">GitHub</a> for source
</footer>
</body>
</html>