-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.html
More file actions
103 lines (97 loc) · 4.63 KB
/
app.html
File metadata and controls
103 lines (97 loc) · 4.63 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Relay</title>
<link rel="stylesheet" href="style/anim.css">
<link rel="stylesheet" href="style/color.css">
<link rel="stylesheet" href="style/main.css">
<link rel="stylesheet" href="style/navbar.css">
<link rel="stylesheet" href="style/app.css">
<link rel="stylesheet" href="style/chat.css">
<link rel="stylesheet" href="style/editProfMenu.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/github-dark.min.css">
<link rel="icon" href="assets/img/icon.png">
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.7.4/socket.io.js"
integrity="sha512-tE1z+95+lMCGwy+9PnKgUSIeHhvioC9lMlI7rLWU0Ps3XTdjRygLcy4mLuL0JAoK4TLdQEyP0yOl/9dMOqpH/Q=="
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/highlight.min.js"></script>
</head>
<body>
<nav id="navbar"><a href="app.html" id="navTitle"><img src="assets/img/icon.png" id="navIcon"><span
id="navName">Relay</span></a><button id="LoginButton"
onclick="window.location.href = 'login.html'">Login</button>
</nav>
<div id="ProfileMenu">
<div id="ProfileMenuBanner"></div>
<img src="assets/img/DefaultPFP.png" id="ProfileMenuPFP">
<span id="ProfileMenuUsername"></span>
<br>
<span id="ProfileMenuUserID"></span>
<h3>About Me</h3>
<p id="ProfileMenuBio">A User on Relay!</p>
<h3>Joined Relay On</h3>
<span id="ProfileJoinDate"></span>
</div>
<nav id="ServerList" data-theme="dark">
<button id="CreateServer" onclick="openCreateServer()">
<span style="pointer-events:none">+</span>
</button>
</nav>
<nav id="ServerName"><button id="GetChannelLink" class="ServerNameButton">🔗</button><button id="CreateChannel" class="ServerNameButton">+</button></nav>
<nav id="ChannelList" data-theme="dark">
</nav>
<nav id="ChannelNameNav"></nav>
<div id="MessageBody" data-theme="dark"></div>
<div id="CreateServerMenu">
<div id="CreateServerBody" class="MenuGradient">
<input type="file" style="display:none" id="CreateServerFile" accept=".png, .jpg, .gif">
<h1>Create A Server</h1>
<span>Server Icon</span>
<div id="CreateServerIcon" onclick="uploadCreateServerPFP()">
<span id="CreateServerSpanIcon" class="material-symbols-outlined" style="font-size: 40px; color:white;">
upload_file
</span>
</div>
<div id="CreateServerName">
<h3>Server Name</h3>
<input type="text" id="CreateServerNameInput" autocomplete="off">
</div>
<div id="CreateServerControlPanel">
<button style="background-color: #f24949;" onclick="closeCreateServer()">Cancel</button>
<button style="background-color:#49f264;" onclick="submitServer()">Create</button>
</div>
</div>
</div>
<div id="CreateChannelInput"><input type="text" placeholder="channel-name" id="CreateChannelField"><button onclick="closeChannelCreate()"
class="ChannelCreateButton">X</button><button onclick="createChannel();closeChannelCreate()"
class="ChannelCreateButton">✓</button></div>
<div id="ChatContainer" data-theme="dark">
<textarea id="ChatBox" placeholder="Message @User" data-theme="dark"></textarea>
</div>
<div id="EditProfileMenuWrapper">
<div id="EditProfileMenu">
<h1 style="color:white;">Customize Your Profile</h1>
<input placeholder="Username" type="text" id="EditUN">
<textarea placeholder="Bio" id="EditBio"></textarea>
<input placeholder="Current Password" type="password" id="EditCP">
<input placeholder="New Password" type="password" id="EditNP">
<input type="file" id="EditPFPFile">
<img id="EditPFPIMG">
<button id="EditPFPButton" onclick="document.getElementById('EditPFPFile').click()"><span class="material-symbols-outlined">upload_file</span></button>
<button id="CloseProfileEdit" onclick="toggleEditProfileMenu('close')"><span class="material-symbols-outlined">block</span></button>
<button id="SubmitProfChange" onclick="updateUser();toggleEditProfileMenu('close')">Submit Changes</button>
</div>
</div>
<script src="src/init.js"></script>
<script src="src/channel.js"></script>
<script src="src/theme.js"></script>
<script src="src/auth.js"></script>
<script src="src/post.js"></script>
<script src="src/createServer.js"></script>
<script src="src/message.js"></script>
<script src="src/editProfileMenu.js"></script>
</body>
</html>