-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
58 lines (55 loc) · 2.22 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
<!DOCTYPE html>
<html style="height:100%">
<head>
<title>CryptoChat</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
</head>
<body style="height:100%">
<div class="container-fluid" style="height:100%">
<div class="col-xs-8 col-xs-offset-2" style="height:100%">
<div class="row" style="height:6%">
</div>
<div class="row" style="height:68%; overflow-y:scroll; word-wrap: break-word;" id="chat-box">
</div>
<div class="row" style="height:20%;">
<div class="col-xs-12">
<div class="row">
<div class="input-group">
<input type="text" class="form-control" id="chat-input" onkeydown="if(event.key == 'Enter'){send_message();}">
<span class="input-group-btn">
<button class="btn btn-default" type="button" onclick="send_message();">Send</button>
</span>
</div>
</div>
<br>
<div class="row">
<div class="col-md-6">
<div class="input-group">
<span class="input-group-addon">Encrypt</span>
<select id="encrypt-type" class="selectpicker form-control">
<option>XOR</option>
<option>ROT</option>
</select>
<input type="text" class="form-control" id="encrypt-key" placeholder="Excryption Key">
</div>
</div>
<div class="col-md-6">
<div class="input-group">
<span class="input-group-addon">Decrypt</span>
<select id="decrypt-type" class="selectpicker form-control" onchange="refresh_display()">
<option>XOR</option>
<option>ROT</option>
</select>
<input type="text" class="form-control" id="decrypt-key" placeholder="Decryption Key" onchange="refresh_display()">
</div>
</div>
</div>
</div>
</div>
<div class="row" style="height:6%">
</div>
</div>
</div>
<script src="chat.js"></script>
</body>
</html>