-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
78 lines (67 loc) · 3.76 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
<!doctype html>
<html lang="ru">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
<meta http-equiv="pragma" content="no-cache" />
<title>Completely Secured Chat</title>
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootswatch/3.3.6/paper/bootstrap.min.css">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="container-fluid">
<div class="container">
<section class="chat-box">
<div class="chat-box__header">
<div class="chat-box__header-title">Сообщения</div>
<div class="chat-box__header-menu" id="menuButton">
<img src="img/icon-menu.svg" alt="Menu">
</div>
</div>
<div id="messagesBox" class="chat-box__messages"></div>
<div class="chat-box__footer">
<div id="typingState" class="chat-box__is-typing">Собеседник что-то печатает...</div>
<div class="chat-box__message-text-wrapper">
<input type="text" id="messageText" class="chat-box__message-text" placeholder="Введите сообщение" disabled>
</div>
<div class="chat-box__button-send-wrapper">
<input type="button" id="sendMessageButton" class="btn btn-primary chat-box__button-send" aria-hidden="true" value="Отправить" disabled autocomplete="off"> <!-- Make this button instead of input if there will be any errors -->
</div>
</div>
<aside id="chatboxMenu" class="menu">
<div class="menu__header">Меню</div>
<div class="menu-item menu-id">Ваш ID: <span id="pid" hidden></span></div>
<div class="menu-item menu-status">Статус: <span id="connectionStatus" class="menu-status--not-connected">Не подключен</span></div>
<div id="chatBoxKeys" class="menu-item menu__key-field">
Для начала сгенерируйте вашу пару RSA ключей
<input id="generateKey" type="button" class="btn btn-primary menu__key-button" value="Сгенерировать" autocomplete="off">
</div>
<div id="chatBoxMenuConnection" class="menu-item menu__connection" hidden>
Дождитесь, пока кто нибудь к вам присоединится, либо введите ID собеседника и нажмите кнопку Подключение
<br>
<div class="menu__connection__control-wrapper">
<input type="text" id="connectionID" class="form-control menu__connection__id-input" placeholder="ID собеседника">
<input type="button" id="buttonConnect" class="btn btn-primary menu__connection__button" aria-hidden="true" value="Подключение" disabled autocomplete="off">
</div>
</div>
</aside>
</section>
</div>
</div>
<script src="js/jquery-2.2.3.min.js"></script>
<script src="js/peer.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
<script src="js/jsbn.js"></script>
<script src="js/cryptico.js"></script>
<script src="js/random.js"></script>
<script src="js/hash.js"></script>
<script src="js/rsa.js"></script>
<script src="js/base64.js"></script>
<script src="js/script.js"></script>
</body>
</html>