-
Notifications
You must be signed in to change notification settings - Fork 6
/
form.html
61 lines (61 loc) · 3.04 KB
/
form.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
<!DOCTYPE html>
<title>Twitch Username and User ID Translator</title>
<div style="color: gray; font-family: Arial, serif;">
<img src="twitch.png" style="text-align: center; width: 170px;"/><br>
<div style="text-align: center; font-size: 70%; padding-bottom: 5px;">
<a id="ui_toggle_link" href="#">settings</a>
</div>
<div id="main_ui">
<input type="text" id="q" name="q" style="text-align: center; width: 170px" placeholder="username or user id" autocomplete=off /><br>
<div style="text-align: center;">
<small>
Detected: <span id="detected"></span> <a href="#" title="click to manually switch between username and user id" id="switch">⇄</a><br/>
</small>
<div id="result" style="display: none;">
<b id="response"></b> <a id="copy" href="#">copy</a><br/>
</div>
<small id="error" style="color: red;"></small>
<small id="success" style="color: green;"></small>
<small id="copied" style="color: blue;"></small>
</div>
</div>
<div id="settings_ui" style="display: none;">
<table>
<tr>
<table width="100%">
<tr>
<td colspan=2 style="font-size: 120%">Execution Mode</td>
</tr>
<tr width="100%" style="font-size: 90%;">
<td colspan=1>
Built-in <a href="#" id="description_user">[User]</a><br>
<input type="radio" id="user" name="execution_mode" value="user" checked>
</td>
<td colspan=1>
Custom <a href="#" id="description_app">[App]</a><br>
<input type="radio" id="app" name="execution_mode" value="app">
</td>
</tr>
<tr class="custom_settings" style="display: none;">
<td colspan=2 style="font-size: 120%">Custom App Settings</td>
</tr>
<tr class="custom_settings" style="display: none;">
<td colspan=2 style="font-size: 90%;">
ClientId<br>
<input type="text" id="app_clientid" name="app_clientid" style="text-align: center; width: 170px"></input>
</td>
</tr>
<tr class="custom_settings" style="display: none;">
<td colspan=2 style="font-size: 90%">
Client Secret<br>
<input type="text" id="app_clientsecret" name="app_clientsecret" style="text-align: center; width: 170px"></input>
</td>
</tr>
</table>
</tr>
</table>
</div>
</div>
<script src="main.js"></script>
<script src="settings.js"></script>
<script src="execute.js"></script>