-
Notifications
You must be signed in to change notification settings - Fork 9
/
chat.html
75 lines (74 loc) · 2.92 KB
/
chat.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
<!DOCTYPE html>
<html>
<head>
<title>SecuChat</title>
<link rel="stylesheet" href="old/css/bootstrap.min.css" type="text/css" media="" />
<link rel="stylesheet" href="old/css/speak.css" type="text/css" media="all" />
<link rel="stylesheet" href="old/css/TimeCircles.css" type="text/css" media="all" />
</head>
<script>
function generateRandAlphaNumStr(len) {
var rdmString = "";
for( ; rdmString.length < len; rdmString += Math.random().toString(36).substr(2));
return writetoform(rdmString.substr(0, len));
}
function writetoform(str){
document.getElementById('sessionInput').value=str;
}
</script>
<body>
<div class="wrapper">
<div class="navbar navbar-inverse">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-responsive-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.html">Secure Chat</a>
</div>
<div class="navbar-collapse collapse navbar-responsive-collapse">
<ul class="nav navbar-nav navbar-right">
<li> <a href="index.html">Home</a> </li>
</ul>
</div>
</div>
<div class="col-md-10 col-md-offset-1">
<h2 id="title">Create a chat room</h2><br>
<div class="col-md-5">
<p id="subTitle"> </p>
</div>
<form id="createRoom" class="input-group create-form col-md-5">
<input id="sessionInput" class="form-control"/>
<span class="input-group-btn">
<button type="submit" class="btn btn-success">Get this room</button>
</span>
</form>
<button type="button" class="btn btn-sm btn-info" id = 'copy'>Copy & Share</button>
<button type="button" class="btn btn-sm btn-info" id = 'generate' onclick="generateRandAlphaNumStr(25);" style="margin-top:6px;">Generate Random Room</button>
</div>
<div class="col-md-3" id="clock">
<div class="clock"></div>
</div>
<br />
<div class="col-md-12">
<div class="col-md-10 col-md-offset-1">
<div class="col-md-4">
<a href="chat.html" id="leave" class="btn btn-danger" >Leave this room</a>
<video id="localVideo" style="height: 250px; margin-top: 15px" oncontextmenu="return false;"></video>
<!-- <button onclick="TogetherJS(this); return false;" class="btn btn-sm btn-success">Start Chat and Collaborating</button> -->
<div id="localVolume" class="volume_bar"></div>
</div>
<div id="remotes"></div>
</div>
</div>
<div class="push">
</div>
</div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script src="https://togetherjs.com/togetherjs-min.js"></script>
<script src="old/js/latest.min.js"></script>
<script src="old/js/speak.js"></script>
<script src="old/js/TimeCircles.js"></script>
</body>
</html>