-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
65 lines (57 loc) · 1.83 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>CS cfg to One Liners</title>
<script src="https://cdn.jsdelivr.net/npm/handlebars@latest/dist/handlebars.js"></script>
<style>
.command-block {
display: flex;
align-items: center;
background-color: rgb(243, 241, 241);
padding: 5px 10px;
margin-bottom: 10px;
}
ul {
margin-top: 0;
}
</style>
</head>
<body>
<main style="max-width: 720px; margin: auto">
<h1 style="text-align: center">CS cfg to One Liners</h1>
<h2>
Convert Counter-Strike cfg to one liners so you can copy paste your commands into CS console.
</h2>
<p>
This is useful when you don't have access to the machine file system.
(e.g. playing from an Internet Cafe)
</p>
<p>
Just paste your cfg file content below and start copy pasting to CS
console.
</p>
<div style="margin-bottom: 15px;">
<label for="char-limit">Character limit per command</label>
<input type="number" id="char-limit" onchange="convertToOneLiners()" placeholder="Minimum 50" min="50">
</div>
<section style="display: flex">
<section style="flex: 0.8; min-width: 0;">
<textarea
id="cs-cfg"
placeholder="Copy paste your CFG commands"
style="width: 100%; height: 400px; resize: none"
onchange="convertToOneLiners()"
></textarea>
</section>
<section style="flex: 1.2; min-width: 0;">
<ul id="command-list">
<!-- Command list will go here -->
</ul>
</section>
</section>
</main>
<script src="./index.js"></script>
</body>
</html>