-
Notifications
You must be signed in to change notification settings - Fork 0
/
sign.html
76 lines (70 loc) · 2.22 KB
/
sign.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
<!DOCTYPE html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="./ui/common.css" />
<link rel="stylesheet" href="./ui/signverify.css" />
<link rel="stylesheet" href="./ui/sign.css" />
<link rel="icon" type="image/png" href="./ui/img/favicon.png" />
</head>
<html>
<body>
<script type="module" src="./ui/sign.mjs"></script>
<div class="container">
<h1>Sign a message</h1>
<h2>
<span id="public_key" style="display: none">...</span>
<a href="#" id="public_key_options" style="display: none">
<!--img src="./ui/img/wrench-line-svgrepo-com.svg" /-->
<img src="./ui/img/logout-svgrepo-com.svg" />
</a>
</h2>
<p class="keypair_info" id="keypair_info" style="display: none">
Your keypair is not generated yet,
<a href="#" id="generate_keypair">click here to generate</a>
or
<a href="#" id="import_keypair">here to import openssh private key</a>
</p>
<div class="textareas">
<div>
<h5>YOUR MESSAGE</h5>
<textarea
id="message"
disabled
placeholder="Generate keypair first!"
rows="20"
></textarea>
</div>
<div>
<h5>PUBLIC KEYS TO USE</h5>
<textarea
id="ring_pubkeys"
disabled
placeholder="Generate keypair first!"
rows="20"
></textarea>
</div>
</div>
<div class="signverify_buttons">
<button class="button" id="sign_button" disabled>
<img src="./ui/img/signature-svgrepo-com.svg" />
Sign!
</button>
<a class="button" href="./">
<img src="./ui/img/back-svgrepo-com.svg" />
Go back
</a>
</div>
<dialog id="dialog">
<div id="dialog_content">
<h4 id="dialog_signature_status">Signature status</h4>
<textarea id="dialog_signature_text" readonly rows="30"></textarea>
</div>
<div id="dialog_buttons">
<button class="button" id="dialog_button_close" autofocus>
Close
</button>
</div>
</dialog>
</div>
</body>
</html>