-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
61 lines (61 loc) · 2.36 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
<!DOCTYPE html>
<html>
<head>
<title>Overcast</title>
<style id="theme">
:root {
--theme: navy;
--theme-light: white;
--theme-accent: cornflowerblue;
--text: black;
--font: Arial, sans-serif
}
</style>
<link rel="stylesheet" href="./styles.css">
<link rel="icon" href="https://overcastchat.github.io/icon.png">
</head>
<body>
<div id="cover">
<a href="https://overcastchat.github.io/" class="logo"><img src="https://overcastchat.github.io/icon.png" width="100"></a>
<h1 id="title">Overcast</h1>
<p id="enterName" hidden>
<input type="text" id="nameInput" placeholder="Enter your name and join the chat" autofocus="">
<button id="join">Join</button>
</p>
<div id="server" hidden>
<p>
<input type="text" id="linkInput" placeholder="Enter a server link" autofocus="">
<button id="joinServer">Join</button>
</p>
<div id="customServer" hidden>
<p>or</p>
<p>
<button id="custom">Start a Custom Server</button>
</p>
</div>
</div>
</div>
<div class="popup" hidden id="settings-popup">
<div class="popup-content">
<h3>Server Options</h3>
<p>Name: <input type="text" id="server-name"></p>
<p>Theme: <select id="server-theme"><option value="navy">Navy</option><option value="silver">Silver</option><option value="royal">Royal</option><option value="midnight">Midnight</option><option value="sun">Sunny Day</option><option value="hacker">Hacker</option></select></p>
<p><button id="submit-server-settings">OK</button></p>
</div>
</div>
<p id="bar">
<a href="https://overcastchat.github.io/" class="logo"><img src="https://overcastchat.github.io/icon.png" width="45"></a>
<span id="server-name-bar"></span>
<select id="theme-select"><option value="navy">Navy</option><option value="silver">Silver</option><option value="royal">Royal</option><option value="midnight">Midnight</option><option value="sun">Sunny Day</option><option value="hacker">Hacker</option></select>
</p>
<button hidden id="close">×</button>
<p>Your name is <b id="you-id">loading...</b></p>
<p id="ip" hidden style="-webkit-user-select: text;"></p>
<p>Your peers are:</p>
<ul id="peer-list"></ul>
<p class="sticky" id="chat-input-row"><input type="text" id="chat-input" placeholder="Enter your message..."><button id="chat-btn">Chat!</button></p>
<ul id="chat"><li><b>Server</b>: Starting up...</li></ul>
<script src="./peer.min.js"></script>
<script src="./script.js"></script>
</body>
</html>