-
Notifications
You must be signed in to change notification settings - Fork 1
/
ViewDecrypt.html
133 lines (119 loc) · 4.75 KB
/
ViewDecrypt.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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<!DOCTYPE html>
<html>
<head>
<!-- Set title of page -->
<title>View Message</title>
<!-- Bootstrap -->
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
<!--Set styles and parameters for this pages display -->
<style type="text/css">
body {
width: 800px;
height:500px;
padding-top: 0px;
padding-bottom: 40px;
background-color: #f5f5f5;
}
.form-create {
max-width: 500px;
min-width: 450px;
padding: 19px 29px 29px;
margin: 0 auto 20px;
background-color: #fff;
border: 1px solid #e5e5e5;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,.05);
-moz-box-shadow: 0 1px 2px rgba(0,0,0,.05);
box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.form-create .form-create-heading,.form-create {
margin-bottom: 10px;
}
#ContentArea{
word-wrap: break-word;
background-color: #ffdee2;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,.05);
-moz-box-shadow: 0 1px 2px rgba(0,0,0,.05);
box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
textarea#contentReply{
width: 435px;
}
</style>
</head>
<body>
<div class="navbar">
<div class="navbar-inner">
<div class="container">
<!-- .btn-navbar is used as the toggle for collapsed navbar content -->
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<!-- Set menu bar headings and corresponding links to different pages -->
<ul class="nav">
<li class="active"><a class="brand" href="#">Cryptospora</a></li>
<li><a href="inbox.html">Inbox</a></li>
<li><a href="sendmessage.html">Send Message</a></li>
<li><a href="contacts.html">Contacts</a></li>
<li><a href="settings.html">Settings</a></li>
</ul>
<!-- drop down menu display for welcome message -->
<div class="nav-collapse"> Welcome to Cryptospora
<!-- .nav, .navbar-search, .navbar-form, etc -->
</div>
</div>
</div>
` </div>
<!-- Set container for contents that will be displayed -->
<div class="container">
<div class="span2">
<!-- Setup form that will hold received message content and required fields for decryption/desteg -->
<form class="form-create" id="other" action="javascript:void(0);">
<h3 class="form-create-heading">View Message</h3>
<div class="alert alert-error" style="display: none;" id="error">
<button type="button" class="close" data-dismiss="alert">×</button>
<strong>Warning!</strong> Best check yo self, you're not looking too good.
</div>
<div class="alert alert-success" style="display: none;" id="success">
<button type="button" class="close" data-dismiss="alert">×</button>
<strong>Warning!</strong> Best check yo self, you're not looking too good.
</div>
<input type="text" id ="userField" class="input-block-level">
<input type="text" id="testSubject" class="input-block-level">
<input type="text" id="dateTime" class="input-block-level">
<div class="display" id="ContentArea"></div><br>
<input type="password" placeholder="Password" id="pass"><br>
<img id='preview' class='preview hide' /><br>
<button class="btn" id = "decrypt">Decrypt Message</button>
<button class="btn" id = "desteg">Desteg Message</button>
<button class="btn-warning" id="delete" value = "delete">Delete Message</button>
</form>
<!-- Second form for making a quick reply to message you are reading -->
<form class="form-create" id = "send" action="javascript:void(0);">
<h4 class="form-create-heading">Quick Reply</h4>
<textarea name="message[text]" id="contentReply" cols="60" rows="3"> </textarea>
<br />
<button class="btn" value="Send" type="submit">Reply</button>
</form>
</div>
</form>
<!-- Scripts that are utilised by this page -->
<script src="bootstrap/js/jquery.js"></script>
<script src="bootstrap/js/bootstrap.min.js"></script>
<script src="bootstrap/js/purl.js"></script>
<script src="bootstrap/js/pretty.js"></script>
<script src="ViewMessage.js"></script>
<script src="bootstrap/js/sjcl.js"></script>
<script src="decryptMessage.js"></script>
<!-- Canvas used for holding steganography image -->
<canvas id='canvas' class='hide'></canvas>
</body>
</html>