-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
137 lines (86 loc) · 5.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
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<!DOCTYPE html>
<html>
<head>
<title>Teams-Clone</title>
<meta content="width=device-width, initial-scale=1" name="viewport" />
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous">
<link rel='stylesheet' href='../css/style.css' type="text/css">
<script src='/socket.io/socket.io.js'></script>
<script type="module" src='../js/webrtc.js'></script>
<script type="module" src='../js/events.js'></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/webrtc-adapter/7.3.0/adapter.min.js" integrity="sha256-2qQheewaqnZlXJ3RJRghVUwD/3fD9HNqxh4C+zvgmF4=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.24.0/moment.min.js"></script>
</head>
<body id="dark-mode">
<nav class="navbar fixed-top bg-secondary rounded-0 d-print-none">
<div class="text-white" id='meeting-topic'>TEAMS</div>
<div class="room-comm" hidden>
<button class="btn btn-sm rounded-0 btn-no-effect" id='copy-room-link' onclick="alert(location.href +' Share this URL!!!')">
<i class="fa fa-link text-white"></i>
</button>
<button class="btn btn-sm rounded-0 btn-no-effect" id='toggle-video'>
<i class="fa fa-video text-white"></i>
</button>
<button class="btn btn-sm rounded-0 btn-no-effect" id='toggle-darkmode'>
<i class="fas fa-moon text-white"></i>
</button>
<button class="btn btn-sm rounded-0 btn-no-effect" id='toggle-screen-share'>
<i class="fas fa-desktop text-white"></i>
</button>
<button class="btn btn-sm rounded-0 btn-no-effect" id='toggle-mute'>
<i class="fa fa-volume-up text-white"></i>
</button>
<button class="btn btn-sm text-white pull-right btn-no-effect" id='toggle-chat-pane'>
<i class="fa fa-comment"></i>
<span class="badge badge-danger very-small font-weight-lighter" id='new-chat-notification' hidden>New</span>
</button>
<button class="btn btn-sm rounded-0 btn-no-effect text-white">
<a href="/" class="text-white text-decoration-none badge-danger">Leave</a>
</button>
</div>
</nav>
<div class="container-fluid" id='room-create' hidden>
<div class="row">
<div class="mt-5">Start a meeting</div>
</div>
<div class="row ">
<div class="col-12 text-center">
<span class="form-text small text-danger" id='err-msg'></span>
</div>
<label for="room-name">Meeting topic</label>
<input type="text" id='room-name' placeholder="Topic">
<label for="your-name">Your Name</label>
<input type="text" id='your-name' placeholder="Your Name">
<button id='create-room' >Join</button>
<button class="col-12 col-md-4 offset-md-4 mb-3" id='room-created' hidden></button>
</div>
</div>
<div class="container-fluid" id='username-set' hidden>
<div class="row">
<div class="mt-5">Join Meeting</div>
</div>
<div class="row mt-2">
<div class="col-12 text-center">
<span class="form-text small text-danger" id='err-msg-username'></span>
</div>
<label for="username">Your Name</label>
<input type="text" id='username' placeholder="Your Name">
<button id='enter-room' >Join</button>
</div>
</div>
<div class="container room-comm" hidden>
<div class="row">
<video class="local-video" id='local' volume='0' autoplay muted></video>
</div>
<div class="col-md-9 mt-3 mb-3 main">
<div class="row" id='videos'></div>
</div>
<div class=" container-fluid chat-col d-print-none " style="background-color: #aa22ee;" id='chat-pane' hidden>
CHAT
<div id='chat-messages'></div>
</div>
<textarea id='chat-input' class="form-control rounded-0 chat-box border-dark" rows='3' placeholder="Type here..." hidden></textarea>
</div>
</body>
</html>