forked from markszabo/PostQ
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·114 lines (105 loc) · 5.26 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<!DOCTYPE html>
<html lang="hu">
<head>
<title>PostQ</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Ubuntu">
<!-- Basic external JS -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<!-- Additional external JS -->
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery-scrollTo/2.1.0/jquery.scrollTo.min.js"></script>
<script src="external/scrypt.js" type="text/javascript"></script>
<!-- Dependencies of scrypt-->
<script src="external/setImmediate.js" type="text/javascript"></script>
<script src="external/buffer.js" type="text/javascript"></script>
<script src="external/unorm.js" type="text/javascript"></script>
<script src="external/aes.js" type="text/javascript"></script>
<script src="external/secure-random.js" type="text/javascript"></script>
<script src="external/jquery.csv.min.js" type="text/javascript"></script>
<script src="external/sha512.min.js" type="text/javascript"></script>
<script src="polynomial.js" type="text/javascript"></script>
<!-- Custom JS -->
<script src="postq.js" type="text/javascript"></script>
<script src="ntru.js" type="text/javascript"></script>
<script src="signin.js" type="text/javascript"></script>
<script src="aes.js" type="text/javascript"></script>
<script src="addFriend.js" type="text/javascript"></script>
<script src="handleFriendRequests.js" type="text/javascript"></script>
<script src="getFriendList.js" type="text/javascript"></script>
<script src="show.js" type="text/javascript"></script>
</head>
<body onload="pageLoaded()">
<div id="signin" class="container">
<div class="form-signin">
<h2 class="form-signin-heading">Sign in or register</h2>
<div id="loginalert"></div>
<label for="inputEmail" class="sr-only">Username</label>
<input type="text" id="inputEmail" class="form-control" placeholder="Username" required autofocus value="test@test.com">
<label for="inputPassword" class="sr-only">Password</label>
<input type="password" id="inputPassword" class="form-control" placeholder="Password" required value="testtest">
<!--<div class="checkbox">
<label>
<input type="checkbox" value="remember-me"> Remember me
</label>
</div>-->
<button class="btn btn-lg btn-success btn-block" onclick="signin()">Sign in</button>
<button class="btn btn-lg btn-warning btn-block" onclick="register()">Register</button>
<div class="progress">
<div id="scryptprogress" class="progress-bar progress-bar-striped active" role="progressbar"
aria-valuenow="0" aria-valuemin="0" aria-valuemax="1" style="width:0%">
</div>
</div>
</div>
</div> <!-- /container -->
<div id="main">
<div class="row height100">
<div class="col-sm-3">
<div class="container-fluid">
<nav class="navbar navbar-default navbar-absolute" role="navigation">
<div class="container-fluid" id="menuheader">
<div class="navbar-header width100">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<span class="navbar-brand msgtitle" id="menubrand">PostQ</span>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav width100" id="menu">
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container-fluid -->
</nav>
</div>
</div>
<div class="col-sm-9" id="messageouterouter">
<h2 class="msgtitle" id="messagetitle">Add new friend</h2>
<div class="container-fluid" id="addnewfriend">
<br>
<div id="alertNewFriend"></div>
<label for="inputFriendEmail" class="sr-only">Friend's username</label>
<input type="email" id="inputFriendEmail" class="form-control" placeholder="Friend's username" required value="test2@test.com">
<button class="btn btn-lg btn-success btn-block" onclick="addFriend()">Add friend</button>
</div> <!-- addnewfriend -->
<div class="container-fluid height100" id="messagesouter">
<div id="alertMessages"></div>
<div class="pre-scrollable height100" id="messages">
</div>
<div id="textarea">
<textarea class="form-control" id="newmsg" rows="4" onkeydown="if(event.keyCode == 13) return false;" onkeyup="if(event.keyCode == 13) send();"></textarea>
</div>
</div> <!-- container-fluid -->
</div> <!-- .col-sm-10 -->
</div> <!-- .row -->
</div> <!-- #main -->
<footer class="container-fluid text-center">
Copyright <span class="glyphicon glyphicon-copyright-mark"></span> PostQ
</footer>
</body>
</html>