forked from anantn/gupshup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
96 lines (82 loc) · 3.01 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Gupshup</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="A WebRTC Demo">
<meta name="author" content="Anant Narayanan">
<link href="css/bootstrap.css" rel="stylesheet">
<!-- For IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<script type="text/javascript" src="https://www.firebase.com/js/libs/idle.js"></script>
<script src="https://static.firebase.com/v0/firebase.js"></script>
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
</div>
</div>
</div>
<div id="main" class="container">
<div id="alert" class="alert alert-block alert-error" style="display:none;">
<h4 class="alert-heading" id="message"></h4>
</div>
<div id="mainContainer">
<div id="welcome" class="span4" style="display:none;">
<h3>Welcome <span id="username"></span>!</h3>
<p>Click on any online user to initiate a chat.</p>
</div>
<br/>
<div class="span2 well" id="users">
</div>
<div class="modal" id="incomingCall" tabindex="-1" role="dialog"
aria-labelledby="incomingCall" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3>Incoming Call</h3>
</div>
<div class="modal-body">
<img src="img/incoming.png"/><br/><p> </p>
<p>You have an incoming call from <span id="incomingUser"></span></p>
<audio id="incomingRing" src="ring.ogg" loop/>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">Reject</button>
<button id="incomingAccept" class="btn btn-primary">Accept</button>
</div>
</div>
</div> <!-- mainContainer -->
</div>
<div id="call" class="container" style="display: none;">
<span id="dialing">
<img src="img/loading.gif"/>
<b>Dialing...</b>
</span>
<span id="hangup" style="display: none;">
<a class="btn btn-danger" onclick="endCall();">Hang Up</a>
</span>
<span>
<h3>Remote</h3>
<video width="640" height="480" id="remotevideo" controls/>
</span>
<span>
<h3>Local</h3>
<video width="320" height="240" id="localvideo" controls/>
</span>
</div>
<div class="container">
<button type="button" class="btn btn-warning" data-toggle="collapse"
data-target="#debug">Hide Debug</button>
<br/>
<pre id="debug" class="collapse in"></pre>
</div>
<script src="js/jquery.js"></script>
<script src="js/bootstrap.js"></script>
<script src="js/chat.js"></script>
</body>
</html>