-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
48 lines (35 loc) · 1.37 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ChatWithMe</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
</head>
<body>
<div class="d-flex justify-content-center">
<div class="align-self-center" style="margin-top: 25%;" id="init">
<input type="text" id="username">
<button class="btn btn-lg btn-success" onclick="start()"> Begin </button>
</div>
<div id="call">
<h3 id="asName"></h3>
<h4 id="peerID"></h4>
<p>connected users</p>
<ul id="userList">
</ul>
<button class="btn btn-lg btn-success">Start call</button>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="/socket.io/socket.io.js"></script>
<script src="https://unpkg.com/[email protected]/dist/peerjs.min.js"></script>
<script src="./client.js" async defer></script>
<script>
$(function(){
$('#call').hide();
$('#init').show();
});
</script>
</body>
</html>