-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
59 lines (57 loc) · 2.66 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
<!DOCTYPE html>
<html class=""><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" tabindex="-1"><img src="https://overcastchat.github.io/icon.png" width="100"></a>
<h1 id="title">Overcast</h1>
<p id="enterName">
<input type="text" id="nameInput" placeholder="Enter your name and join the chat" autofocus="" aria-label="Enter your name">
<button id="join">Join</button>
</p>
<div id="server" hidden="">
<p>
<input type="text" id="linkInput" placeholder="Enter a server link" autofocus="" aria-label="Enter a server link">
<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" aria-modal="true">
<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>
<div id="bar">
<a href="https://overcastchat.github.io/" class="logo" tabindex="-1"><img src="https://overcastchat.github.io/icon.png" width="45"></a>
<span id="server-name-bar"></span>
<div id="bar-section"><div id="people" tabindex="3">People<ul id="people-menu"></ul></div><select id="theme-select" tabindex="4" aria-label="Select a 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></div>
</div>
<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 class="" id="chat-input-row"><input type="text" id="chat-input" placeholder="Enter your message..." tabindex="1" aria-label="Enter your message"><button id="chat-btn" tabindex="2">Chat!</button></p>
<ul id="chat"><b>Server</b>: Starting up...</li></ul>
<script src="https://cdnjs.cloudflare.com/ajax/libs/peerjs/0.3.9/peer.min.js"></script>
<script src="./script.js"></script>
</body></html>