-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.html
67 lines (60 loc) · 2.15 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>
<head>
<title>Chat/Video WebRTC Test</title>
<meta charset="utf-8">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" crossorigin="anonymous">
<link href="css/chat.css" rel="stylesheet">
<script src="adapter.js"></script>
<script
src="https://code.jquery.com/jquery-3.2.1.min.js"
integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
crossorigin="anonymous"></script>
<script type="text/javascript" src="index.js"></script>
</head>
<body>
<div class="container">
<div class="row username">
<div class="col-xs-6 col-xs-offset-2">
<p>
<input id="name" type="text" maxlength="12" required autocomplete="username" inputmode="verbatim" placeholder="Usuário">
<input id="login" type="button" name="login" value="Login" onclick="connect()">
</p>
</div>
</div>
<div class="row shadow">
<div id="userlist-container" class="col-xs-2">
<div class="title">
<h3 class="title-users">Usuários</h3>
<p>Clique para realizar chamada</p>
</div>
<ul id="userlistbox"></ul>
</div>
<div id="chat-container" class="col-xs-6">
<div>
<div id="chatbox"></div>
</div>
</div>
<div id="camera-container" class="col-xs-4">
<video id="received_video" autoplay></video>
<video id="local_video" autoplay muted>
</video>
<button id="hangup-button" onclick="hangUpCall();" class=" glyphicon glyphicon-earphone" disabled>
</button>
</div>
</div>
<div class="row">
<div id="control-row" class="col-xs-offset-2 col-xs-6">
<div id="empty-container"></div>
<div id="chat-controls-container">
<input id="text" type="text" name="text" maxlength="256" placeholder="Sua mensagem" autocomplete="off" onkeyup="handleKey(event)"
disabled>
<button id="send" name="send" class="btn " onclick="handleSendButton()" disabled>
<span class="glyphicon glyphicon-send"></span>
</button>
</div>
</div>
</div>
</div>
</body>
</html>