-
Notifications
You must be signed in to change notification settings - Fork 14
/
index.html
224 lines (209 loc) · 12.5 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
<!doctype html>
<html manifest="gpgmail.manifest">
<head>
<meta charset="UTF-8" />
<!--
* I18N script for GPGMail_Mobile.
*
* @author Alexander Willner <[email protected]>
* @version 2011-02-22
* @see http://gpgtools.org
* @license BSD
* @todo I18N all text fragments.
* @todo Implement more functionalities.
-->
<title>GPGMail</title>
<!-- styles -->
<style type="text/css" media="screen">@import "layout/jqtouch.min.css";</style>
<style type="text/css" media="screen">@import "layout/themes/jqt/theme.min.css";</style>
<style type="text/css" media="screen">@import "layout/gpgmail.css";</style>
<!-- jQuery -->
<script src="http://code.jquery.com/jquery-1.5.min.js" type="text/javascript" charset="utf-8"></script>
<script src="scripts/i18n/jquery.i18n.min.js" type="text/javascript" charset="utf-8"></script>
<script src="scripts/i18n/gpgmail.js" type="text/javascript" charset="utf-8" defer="defer"></script>
<!-- jQTouch -->
<script src="scripts/jqtouch/jqtouch.min.js" type="text/javascript" charset="utf-8"></script>
<script src="scripts/jqtouch/gpgmail.js" type="text/javascript" charset="utf-8"></script>
<script src="scripts/gpgmail.js" type="text/javascript" charset="utf-8"></script>
<!-- local database -->
<script src="scripts/db/gpgmail.js" type="text/javascript" charset="utf-8" defer="defer"></script>
<!-- openPGP -->
<script src="scripts/hanewin/sha1.js" type="text/javascript" charset="utf-8" defer="defer"></script>
<script src="scripts/hanewin/cast5.js" type="text/javascript" charset="utf-8" defer="defer"></script>
<script src="scripts/hanewin/rsa.js" type="text/javascript" charset="utf-8" defer="defer"></script>
<script src="scripts/hanewin/aes-enc.js" type="text/javascript" charset="utf-8" defer="defer"></script>
<script src="scripts/hanewin/base64.js" type="text/javascript" charset="utf-8" defer="defer"></script>
<script src="scripts/hanewin/mouse.js" type="text/javascript" charset="utf-8" defer="defer"></script>
<script src="scripts/hanewin/PGencode.js" type="text/javascript" charset="utf-8" defer="defer"></script>
<script src="scripts/hanewin/PGdecode.js" type="text/javascript" charset="utf-8" defer="defer"></script>
<script src="scripts/openpgp/core.js" type="text/javascript" charset="utf-8" defer="defer"></script>
<script src="scripts/openpgp/gpgmail.js" type="text/javascript" charset="utf-8" defer="defer"></script>
</head>
<body>
<!-- start: home screen -->
<div id="home" class="current">
<div class="toolbar">
<h1>GPGMail</h1>
<a class="button fade" id="infoButton" href="#about">((infoButton))</a>
</div>
<ul class="rounded">
<li class="arrow"><a href="#encrypt" class="slide" id="encryptButtonFront">((encryptButtonFront))</a></li>
<li class="arrow"><a href="#decrypt" class="slide" id="decryptButtonFront">((decryptButtonFront))</a></li>
</ul>
<ul class="individual">
<li><a href="#options" class="flip" id="optionsButton">((optionsButton))</a></li>
<li><a href="http://pledgie.com/campaigns/13482" target="_blank" id="donateButton">((donateButton))</a></li>
</ul>
<div class="info">
<p id="homeScreenInfo">((homeScreenInfo))</p>
</div>
</div>
<!-- end: home screen -->
<!-- start: about screen -->
<div id="about" class="selectable">
<p><img src="images/gpgmail_icon.png" height="64"/></p>
<p><strong>GPG</strong>Mail mobile<br />Version 0.2<br />
<a href="mailto:[email protected]">by Alexander Willner</a><br />
</p>
<p>based on<br />
<a href="http://github.com/senchalabs/jQTouch">jQTouch</a> and
<a href="http://www.hanewin.net/encrypt/">HaneWIN JavaScript OpenPGP</a>
</p>
<p>
<a href="http://twitter.com/gpgmail" target="_blank">@gpgtools on Twitter</a>
</p>
<p><br /><br /><a href="#" class="grayButton goback">Close</a></p>
</div>
<!-- end: about screen -->
<!-- start: not implemented screen -->
<div id="notimplemented" class="selectable">
<p><img src="images/gpgmail_fail.png" height="64"/></p>
<p><strong>GPG</strong>Mail mobile<br />Version 0.2<br />
<a href="mailto:[email protected]">by Alexander Willner</a><br />
</p>
<p>work in progress...<br />this method is not implemented yet.</p>
<p><br /><br /><a href="#" class="grayButton goback">Close</a></p>
</div>
<!-- end: not implemented screen -->
<!-- start: encrypt screen -->
<div id="encrypt">
<div class="toolbar">
<h1>Encrypt</h1>
<a href="#" class="back">Back</a>
<a class="button" id="clearencrypt" href="#" onClick="document.forms['encrypt'].reset();">clear</a>
</div>
<form name="encrypt" action="javascript:encrypt();">
<input type="hidden" name="pkey" value="CAC2PVFmVlYbpNDPU+nfc8U/fu/SFs21AEOmUU1SAf8Eh1a7vHs42TpKUyS9VhgnEetFOapfnUhCpWF+HunJ5Fx5jgeqNpogNp7tToLjHWXbYyv57WB9YDAwC2AMt+rX/Hh7T1CQtoMX5oSGbe0p2UlAF77TeSmH0n3Se9U7qPGD8E3/qYcoi2Gs877JEAAfXqkNhQuglv7mJyMRL69yglOntLzBXTspso9qdkc2uH1VCQpJG/hwBIcrf8D3/Iiu5GiG1BQ7g6ujdURE+yc76f8KKfIbfmmkutED0YjvZTkXiq6JeHLygoIAj1yZ5dBFDtR/6qW/0Dh72aHGWBM88rLrAAMFCACb1H1XxpJwiLOiEHeeYICOSyE1uPONJPXnCG+nR3rP8u9jV5k8j2h6lE9lJLt7VHqjnmyKgvLFTLUgn5mNSmFgSU7B+FlxdWrTLzpk3aJAWjLPAIQUOaxakjkVgTk8ggX++nDya7UAJ/g20YpxEXV2UaFeh2wO0/EuS84jWnKXjBuKsvzm97FXN1eF75/dyD0awBN7dW8ckgjrrrA+uVVFtdI+XqqVBk8C0ZIHCaRAOHLlN2CallDm1FbOZpTE3H+untHx5PuYaocpFz1adCpXYn+SQ0HkqFWLONz5u1WxkJ9gn1VS5HpLbNhgKap9d92/U41BoEsbgzIxSC5tQNO5" />
<input type="hidden" name="keyid" value="c71fa5a9b200c2a6" />
<input type="hidden" name="pktype" value="ELGAMAL" />
<ul class="edit rounded">
<li>
<select id="receiver" multiple="multiple" name="receiver">
<option value ="89117214f14b6dac">Alexander Willner</option>
<option value ="07eae49adbcbe671">GPGMail Project Team</option>
</select>
</li>
<li><textarea placeholder="Your unencrypted message here" name="rawtext" id="rawtext"></textarea></li>
<li>Sign message <span class="toggle"><input type="checkbox" /></span></li>
<li><input type="password" name="sign_password" placeholder="Password to sign..." value="" id="sign_password" /></li>
<li><input type="text" disabled="disabled" name="howLong" placeholder="time needed for encryption" value="" id="howLong" /></li>
</ul>
<a style="margin:0 10px;" href="#" onClick="document.forms['encrypt'].submit();" class="grayButton" id="encryptButton">Encrypt</a>
<a style="margin:0 10px; color:#333;" href="#" id="sendMailButton" class="grayButton" target="_blank">Send Mail</a>
</form>
</div>
<!-- end: encrypt screen -->
<!-- start: decrypt screen -->
<div id="decrypt">
<div class="toolbar">
<h1>Decrypt</h1>
<a href="#" class="back">Back</a>
<a class="button" id="cleardecrypt" href="#" onClick="document.forms['decrypt'].reset();">clear</a>
</div>
<form name="decrypt" action="javascript:decrypt();">
<ul class="edit rounded">
<li><textarea placeholder="Your encrypted message here" name="encryptedtext" id="encryptedtext"></textarea></li>
<li>Verify signature <span class="toggle"><input type="checkbox" /></span></li>
<li><input type="password" name="validate_password" value="" placeholder="Password to decrypt..." id="validate_password" /></li>
<li><input type="text" disabled="disabled" name="howLongDecrypt" placeholder="time needed for decryption" value="" id="howLongDecrypt" /></li>
</ul>
<a style="margin:0 10px;" href="#" onClick="document.forms['decrypt'].submit();" class="grayButton" id="decryptButton">Decrypt</a>
</form>
</div>
<!-- end: decrpyt screen -->
<!-- start: add key screen -->
<div id="addkey">
<div class="toolbar">
<h1>Add Key</h1>
<a href="#" class="back">Back</a>
</div>
<form name="addkey" action="#">
<h2 style="color:#fff;">Name</h2>
<ul class="edit rounded">
<li><input type="text" name="keyname" id="keyname" placeholder="Firstname Lastname" value="" /></li>
</ul>
<h2 style="color:#fff;">Search</h2>
<ul class="edit rounded">
<li><input type="text" name="searchstring" placeholder="String" value="" id="searchstring" /></li>
</ul>
<h2 style="color:#fff;">Download</h2>
<ul class="edit rounded">
<li><input type="text" placeholder="http://" value="http://" id="downloadURL" name="downloadURL" /></li>
<li style="font-weight:normal;"><input type="checkbox" id="downloadStore" name="downloadStore" value="download"> Do not store locally</li>
</ul>
<h2 style="color:#fff;">Copy & Paste</h2>
<ul class="edit rounded">
<li><textarea placeholder="The ascii amored key here" name="key" id="key"></textarea></li>
</ul>
<a style="margin:0 10px;" href="#options" class="grayButton fade" name="importKey" id="importKey">Import</a>
</form>
</div>
<!-- end: add key screen -->
<!-- start: options screen -->
<div id="options">
<div class="toolbar">
<h1>Options</h1>
<a href="#" class="back">Back</a>
</div>
<form name="options" action="javascript:dbSave();">
<h2 style="color:#fff">Public Keys</h2>
<ul class="edit rounded">
<li>
<select id="publickeys" name="Public Keys" multiple="multiple">
<option value ="89117214f14b6dac" selected="selected">Alexander Willner</option>
<option value ="07eae49adbcbe671">GPGMail Project Team</option>
</select>
</li>
</ul>
<a style="margin:0 10px; color:#000;" id="addPublicKeyButton" href="#addkey" class="whiteButton fade">Add</a>
<a style="margin:0 10px;" href="#notimplemented" class="grayButton fade">Delete</a>
<h2 style="color:#fff">Options</h2>
<ul class="edit rounded">
<li>Sign by default<span class="toggle"><input type="checkbox" name="defaultSign" /></span></li>
<li>Verify by default<span class="toggle"><input type="checkbox" /></span></li>
</ul>
<h2>Layout</h2>
<ul class="edit rounded">
<li>
<select id="layout">
<optgroup label="Layout">
<option value ="jqt">jQTouch</option>
<option value ="apple">Apple</option>
</optgroup>
</select>
</li>
</ul>
<h2 style="color:#fff">Secret Keys</h2>
<ul class="edit rounded">
<li>
<select id="secretkeys" name="secretkeys" multiple="multiple">
</select>
</li>
</ul>
<a style="margin:0 10px; color:#000;" id="addSecretKeyButton" href="#addkey" class="whiteButton fade">Add</a>
<a style="margin:0 10px;" href="#" class="grayButton fade" name="deleteKey" id="deleteKey">Delete</a>
</form>
</div>
<!-- end: options screen -->
</body>
</html>