-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
67 lines (66 loc) · 1.76 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite App</title>
<style>
.app {
height: 100vh;
}
.videos {
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
width: 70%;
margin: 1rem auto;
}
.videos video {
width: calc(100% / 3 - 0.6rem);
margin: 0.3rem;
border: 0.5px solid;
}
.notifications {
position: fixed;
bottom: 0;
right: 0;
padding: 0 10px;
background-color: #fff;
}
</style>
<script>
var parcelRequire;
</script>
</head>
<body>
<div id="app" class="app">
<button id="start">Start</button>
<button id="call">Join</button>
<button id="answer-call" disabled>Answer Call</button>
<div>
<input type="text" name="" id="peer_id" readonly />
<form action="" method="post" id="connect">
<div>
<input type="text" name="peer_id" />
<button>Connect</button>
</div>
</form>
<div id="messages"></div>
<form action="" method="post" id="new-message">
<div>
<input type="text" name="content" />
<button>Send</button>
</div>
</form>
</div>
<div id="videos" class="videos">
<video src="" id="webcam" autoplay></video>
</div>
</div>
<div id="notify" class="notifications"></div>
<script src="http://localhost:5000/socket.io/socket.io.js"></script>
<script type="module" src="/main.js"></script>
</body>
</html>