forked from ERROR-404-NULL-NOT-FOUND/Retaped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
129 lines (112 loc) · 5.15 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Retaped</title>
<link rel="icon" type="image/png"
href="https://autumn.revolt.chat/attachments/g4v14HHTNuqzrd7Fn_YbZjlK8i6NL1ibajV3gLf2jR/Untitled132_20220310202647.png">
<link rel="stylesheet" href="style.css" type="text/css" media="screen">
<link rel="canonical" href="https://error-404-null-not-found.github.io/Retaped/">
<!--<script src="https://js.hcaptcha.com/1/api.js" async defer></script>-->
<script src="main.js" type="text/javascript" defer></script>
</head>
<body>
<div class="login-screen">
<div class="title">
<h1 id="name"><span class="hl">Re</span>taped</h1>
<h4 id="desc">
The revolt.chat client re-taped from the one <br>
that's held together by duct tape and bad code
</h4>
</div>
<div id="loginoe">
<span id="loginerror" hidden="false"></span>
<form class="login-form">
<fieldset>
<legend>Login method</legend>
<label>Email/Password</label>
<input id="email" autocomplete="on" placeholder="Email address" type="email">
<input id="password" placeholder="Password" type="password">
<p class="login-sep">OR</p>
<label>Token</label>
<input id="token" type="password" autocomplete="off" placeholder="Token">
</fieldset>
<fieldset>
<legend>Preferences</legend>
<input type="checkbox" id="toggleTheme" name="toggle-theme" checked="true">
<label for="toggle-theme">Use my Revolt theme</label>
<input type="checkbox" id="toggleToken" name="toggle-token" checked="true">
<label for="toggle-token">Remember me</label>
</fieldset>
<button id="login-btn" onclick="login();" type="button">Login</button>
</form>
</div>
</div>
</div>
<div id="logged">
<div id="info">
<button id="dms" onclick="loadDMs()">DMS</button>
<hr class="server-hr">
<div id="servers"></div>
</div>
<div id="channelInfo">
<h2 id="chanName"></h2>
<h3 id="chanDesc"></h3>
<div id="channels"></div>
</div>
<div id="central">
<div id="userProfile">
<div id="profileMedia" class="profile-top">
<div class="profile-name">
<img id="profilePicture" />
<h3 id="usernameContainer"><span id="username"></span>#<span id="discrim"></span></h3>
</div>
</div>
<p id="bio"></p>
<p id="rolesText">Roles</p>
<div id="roleContainer"></div>
<button id="closeProfile" onclick="document.getElementById('userProfile').style.display='none'">
Close Profile
</button>
</div>
<div class="app-status">
<p id="status">Disconnected</p>
-
<p id="theme-label">Default theme</p>
</div>
<div id="messages"></div>
<div class="messagebar-container">
<input type="text" autocomplete="off" placeholder="Title" id="title" hidden="true" />
<input type="text" autocomplete="off" placeholder="Description" id="desc" hidden="true" />
<input type="text" autocomplete="off" placeholder="Color" id="color" hidden="true" />
<div class="error-container">
<p class="error-content"></p>
</div>
<div class="replying-container"></div>
<!-- replying-message
replying-content
close-reply -->
<!-- <button hidden="true"
id=closereply onclick="document.getElementById('replymsg').innerText='';reply=''">X</button> -->
<input type="file" id="upload" />
<div id="typingBarContainer"><span id="typingBar"></span> is typing</div>
<div class="toolbar">
<button onclick="bonfire()">Re-establish websocket</button>
<button onclick="uIDs=[];usernames=[];pfpsrcs=[];getMessage();">
Reload Usernames
</button>
<button onclick="embedMessage()">Send embed</button>
<button onclick="contentToJson()">JSON</button>
</div>
<div id="messagebar">
<button class="toolbar-btn">↑</button>
<label class="upload-label" for="upload">+</label>
<input type="text" autocomplete="off" placeholder="Speak in channel" id="input"
onkeypress="return processKeyPress(event)" />
<button class="send-btn" onclick="sendMessage()">⟶</button>
</div>
</div>
</div>
</div>
</body>
</html>