-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathoptions.html
293 lines (246 loc) · 9.16 KB
/
options.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
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="https://ogp.me/ns#">
<head>
<link type="text/css" rel="stylesheet" href="assets/bootstrap/bootstrap.min.css"/>
<title>Aparat ChatBot Options</title>
<meta charset="UTF8"/>
<style>
.loader {
border: 6px solid #f3f3f3; /* Light grey */
border-top: 6px solid #3498db; /* Blue */
border-radius: 50%;
width: 60px;
height: 60px;
animation: spin 2s linear infinite;
position: absolute;
left: 50%;
top: 50%;
margin: -30px 0 0 -30px;
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
.loaderWrapper {
width: 100%;
height: 100%;
position: fixed;
left: 0px;
top: 0px;
background-color: rgba(0, 0, 0, 0.4);
text-align: center;
z-index: 99999999999999;
display: none;
}
.page{
display: none;
}
</style>
</head>
<body>
<!--Loader Section-->
<div class="loaderWrapper" id="pageLoading">
<div class="loader"></div>
</div>
<!--Menu Section-->
<div id="menuPage" class="page" style="display: none;">
<div class="container">
<br/><br/>
<div id="updateBox" style="display: none" class="alert alert-danger" role="alert">
New Version Is Available, Download Latest Version From <a
href="https://github.com/wikiweb/aparat-chatbot/releases" target="_blank">This Link </a>And Replace
Files and reload your Extension
</div>
<div class="alert alert-warning" role="alert">
🤖✅ Issue Report From <a href="https://t.me/wikiweb_ir" target="_blank">@Wikiweb_ir</a>
</div>
<div class="btn-group-vertical">
<a type="button" data-target_page="settingForm" class="pageLink btn btn-primary">Settings</a>
<a type="button" data-target_page="adminForm" class="pageLink btn btn-primary">Operators</a>
<a type="button" class="logoutForm btn btn-primary">Logout</a>
</div>
</div>
</div>
<!--Admin Section-->
<div class="container page" id="adminForm">
<div class="row">
<div class="col-12">
<br/>
<br/>
<a class="btn pageLink" data-target_page="menuPage">Back</a>
<br/>
<br/>
</div>
</div>
<div class="card">
<h4>You Operator in this pages:</h4>
<div id="adminHereList">
</div>
</div>
<br/>
<br/>
<div class="card">
<h4>Manage Operator for you stream:</h4>
</div>
<div class="card">
<div class="row">
<div class="col col-6">
<form id="addAdminForm" action="#" class="form-inline">
<input type="text" class="form-control mb-2 mr-sm-2" id="adminUserName" placeholder="Aparat username">
<button type="submit" class="btn btn-primary mb-2">Add</button>
</form>
</div>
<div class="col col-6">
<ul class="list-group" id="adminsList">
</ul>
</div>
</div>
</div>
<br/><br/>
<div class="card">
<div class="row">
<div class="col">Logs:<br/>
<a class="reloadAdminLogData btn btn-dark text-white"> Load Log Data </a><br/>
<table class="table table-bordered">
<thead>
<tr>
<th>Operator UserName</th>
<th>Banned Username</th>
<th>Date</th>
</tr>
</thead>
<tbody id="bannedLog">
</tbody>
</table>
</div>
</div>
</div>
</div>
<!--Login Section-->
<div id="loginPage" class="page">
<div class="container">
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
<form id="loginForm" action="#">
<br/><br/><br/><br/>
<div class="form-group">
<label for="loginUsername">Aparat Username</label>
<input type="text" class="form-control" id="loginUsername" placeholder="your Aparat account">
</div>
<div class="form-group">
<label for="loginPassword">Password</label>
<input type="password" class="form-control" name="password" id="loginPassword"
placeholder="Password">
</div>
<div class="">
<button type="submit" class="btn btn-primary">Submit</button>
</div>
</form>
</div>
</div>
</div>
</div>
<!--ChatBot Section-->
<div class="container page" id="settingForm" style="display:none;">
<div class="row">
<div class="col-12">
<br/>
<br/>
<a class="btn pageLink" data-target_page="menuPage">Back</a>
<br/>
<br/>
<div class="card">
<div class="card-body">
Default Commands: <br/><b>uptime</b>
</div>
</div>
<br/>
<form action="#">
<div class="form-group">
<label for="enableCheckBox">Do you want to active ?? </label>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="" id="enableCheckBox">
<label class="form-check-label" for="enableCheckBox">
<b>Enable CHATBOT</b>
</label>
</div>
</div>
<div class="form-group">
<label for="streamerName">Your Name</label>
<input type="text" class="form-control" id="streamerName" placeholder="Jimmy">
</div>
<div class="form-group">
<label for="startSign">Command Start With</label>
<input type="text" class="form-control" id="startSign" value="!">
</div>
<div class="form-group">
<label for="botName">Bot Name</label>
<input type="text" class="form-control" id="botName" value="">
</div>
<br/><br/>
<h4>Commands:</h4>
<table class="table">
<thead>
<tr>
<th scope="col">Command (no sign)</th>
<th scope="col">Message</th>
<th scope="col">-</th>
</tr>
</thead>
<tbody id="commandsList">
</tbody>
</table>
<div><a class="btn btn-primary text-white" id="addCommandEl">+Add Command</a></div>
<br/><br/>
<h4>Timer Messages:</h4>
<table class="table">
<thead>
<tr>
<th scope="col">Second</th>
<th scope="col">Message</th>
<th scope="col">-</th>
</tr>
</thead>
<tbody id="timersList">
</tbody>
</table>
<div><a class="btn btn-primary text-white" id="addTimerEl">+Add Timer</a></div>
<hr/>
<div class="card" style="display: none">
<div class="card-body">
<a id="spotifyAuth" class="btn btn-primary text-white">
Login With Spotify
</a>
<a id="spotifyCheck" class="btn btn-success text-white" style="display: none">
Check Auth Result
</a>
</div>
</div>
<hr/>
<div class="form-group row">
<div class="col-sm-10">
<a id="saveForm" class="btn btn-success">Save</a>
<a id="exportForm" class="btn btn-default">Export Setting</a>
<a id="importForm" class="btn btn-default">Import Setting</a>
<a id="logoutForm" class="logoutForm btn btn-danger">Logout</a>
</div>
</div>
</form>
</div>
</div>
</div>
<!--Libs-->
<script src="assets/js/sha1.js"></script>
<script src="assets/js/md5.js"></script>
<script src="assets/js/jquery.min.js"></script>
<!--Page Handler-->
<script src="assets/js/pages/options.js"></script>
<script src="assets/js/pages/chatbot.js"></script>
<script src="assets/js/pages/login.js"></script>
<script src="assets/js/pages/admin.js"></script>
<script src="assets/bootstrap/bootstrap.min.js"></script>
</body>
</html>