-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
204 lines (171 loc) · 10.1 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta property="og:title" content="SubDay Bot by Fyiden" />
<meta property="og:type" content="website" />
<meta property="og:description"
content="Simple Twitch Chat bot for SubDay event that takes requests from the chat and saves them in a convenient format (table, .txt, .xlsx)" />
<meta property="og:image" content="./images/uwu_purple112.png" />
<meta property="og:image:secure_url"
content="https://static-cdn.jtvnw.net/emoticons/v2/303901608/default/dark/2.0" />
<meta property="og:image:type" content="image/png" />
<meta property="og:image:width" content="540" />
<meta property="og:image:height" content="540" />
<meta property="og:image:alt" content="SubDay UwU" />
<title>SubDay Bot</title>
<link rel="icon" href="./images/uwu_purple112.png">
<link rel="stylesheet" href="./static/styles.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"
integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"
integrity="sha512-bLT0Qm9VnAYZDflyKcBaQ2gg0hSYNQrJ8RilYldYQ1FxQYoCLtUjuuRuZo+fjqhx/qtq/1itJ0C2ejDxltZVFg=="
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"
integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV"
crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css"
integrity="sha384-AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p" crossorigin="anonymous" />
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-144022684-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'UA-144022684-1');
</script>
<script type="text/javascript" src="./static/tmi.js"></script>
<script type="text/javascript" src="./static/FileSaver.js"></script>
<script type="text/javascript" src="./static/xlsx.core.min.js"></script>
<script type="text/javascript" src="./static/main.js"></script>
</head>
<body>
<div class="container text-white">
<div class="text-center">
<h1 class=" pt-5"><a class="text-success" href="https://www.twitch.tv/fyiden">Fyiden</a> - SubDay bot (🍌)
</h1>
<h2 class="text-center pt-5">Параметры:</h2>
<div class="row">
<div class="text-left my-3 col-6">
<h4>Принимать заказы от:</h3>
<div class="card bg-transparent">
<div class="card-body text-uppercase bg-transparent">
<div class="custom-control custom-checkbox text-left pl-4">
<input type="checkbox" class="custom-control-input" id="subCheckBox">
<label class="custom-control-label" for="subCheckBox">Сабов</label>
</div>
<div class="custom-control custom-checkbox text-left pl-4">
<input type="checkbox" class="custom-control-input" id="modCheckBox">
<label class="custom-control-label" for="modCheckBox">Модеров</label>
</div>
<div class="custom-control custom-checkbox text-left pl-4">
<input type="checkbox" class="custom-control-input" id="vipCheckBox">
<label class="custom-control-label" for="vipCheckBox">Випов</label>
</div>
<div class="custom-control custom-checkbox text-left pl-4">
<input type="checkbox" class="custom-control-input" id="allCheckBox">
<label class="custom-control-label" for="allCheckBox">Абсолютно всех</label>
</div>
</div>
</div>
</div>
<div class="col-6 my-3">
<div class="input-group mb-3 mt-5">
<div class="input-group-prepend">
<span class="input-group-text text-info">Название команды</span>
</div>
<input type="text" class="form-control" id="command" placeholder="Название команды"
value='subday' aria-label="название" aria-describedby="basic-addon1">
</div>
<div class="input-group mb-3 mt-5">
<div class="input-group-prepend">
<span class="input-group-text text-info">Префикс для команды</span>
</div>
<input type="text" class="form-control" id="prefix" placeholder="Префикс " value='!'
aria-label="название" aria-describedby="basic-addon1">
</div>
</div>
</div>
<div class="row pt-2">
<div class="mx-auto col-10 row row justify-content-center">
<div class="col-6">
<div class="input-group">
<input type="text" class="form-control" id="channel" placeholder="Channel name"
aria-label="Channel name" aria-describedby="button-addon2">
<div class="input-group-append">
<button class="btn btn-outline-primary " type="button" id="connect">Подключиться к
каналу</button>
</div>
</div>
<div class="connect-invalid-feedback d-block invalid-feedback">
Введите правильное название канала.
</div>
</div>
<span class="col-1" id='connect-status'><i class="fas fa-times text-danger"></i></span>
</div>
</div>
<!-- <hr> -->
<h2 class="text-center pt-5">Таблица:</h2>
<div class="row">
<div class="text-left col-3">
<button class="btn btn-outline-danger" type="button" id="button-addon2"
data-toggle="modal"
data-target=".bd-example-modal-sm">Удалить всё</button>
<!-- <button type="button" class="btn btn-primary" data-toggle="modal"
data-target=".bd-example-modal-sm">Small modal</button> -->
<div class="modal fade bd-example-modal-sm" tabindex="-1" role="dialog"
aria-labelledby="mySmallModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content border-danger">
<!-- <div class="modal-header bg-dark">
<h5 class="modal-title">Удалить все запросы?</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span class=" bg-dark" aria-hidden="true">×</span>
</button>
</div> -->
<div class="modal-body">
<h2>Удалить все запросы?</h2>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-outline-danger px-4" onclick="clearMessages()" data-dismiss="modal">Да</button>
<button type="button" class="btn btn-secondary px-4" data-dismiss="modal">Нет</button>
</div>
</div>
</div>
</div>
</div>
<div class="text-right col-9">
<button class="btn btn-outline-warning" type="button" id="button-addon2"
onclick="saveTxtFile()">Экспортировать список в
.txt</button>
<button class="btn btn-outline-warning" type="button" id="button-addon2"
onclick="saveExcelFile()">Экспортировать список в
.xlsx</button>
</div>
</div>
</div>
<table class="table mt-2 text-white">
<thead>
<tr class="row">
<th class="col col-1">#</th>
<th class="col col-3">Ник пользователя</th>
<th class="col col-4">Игра</th>
<th class="col col-3">Бейджи</th>
<th class="col col-1"></th>
</tr>
</thead>
<tbody id="messagesList">
<!-- <tr class="row">
<td class="col-1">1</td>
<td class="col-3">Test</td>
<td class="col-4">Test</td>
<td class="col-3">Test</td>
<td class="col-1">
<button class="btn btn-outline-danger" type="button" onclick="removeMessage('asddas')"><i class="far fa-trash-alt"></i></button>
</td>
</tr> -->
</tbody>
</table>
</div>
</body>
</html>