-
Notifications
You must be signed in to change notification settings - Fork 8
/
popup.html
110 lines (108 loc) · 3.48 KB
/
popup.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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div class="container-main-screen">
<div id="header">
<div class="two-col-group text-center large-title">
<img src="icons/48.png" width="20px" />
Cookies backup & restore
</div>
</div>
<div class="wrap" id="backup-wrap">
<button class="btn-primary" role="button" id="btn-backup">
Backup all cookies
</button>
<div class="wrap-card hidden text-center" id="enc-passwd">
<form id="enc-passwd-form" class="gap-5px">
<div>
<small><b>Enter encryption password</b></small>
</div>
<div class="two-col-group">
<input
type="password"
name="enc-passwd"
id="inp-enc-passwd"
minlength="3"
required
placeholder="password"
/>
<button class="btn-enter text-muted">⏎</button>
</div>
<small class="text-muted"
>Please don't forget this password, You'll need it when you
restore your cookies.</small
>
</form>
</div>
</div>
<div class="wrap" id="restore-wrap">
<span class="title">Restore Cookies</span>
<div id="restore-upload-wrap" class="wrap-tight">
<label for="file">Select your latest .ckz file</label>
<input
class="text-muted"
type="file"
id="restore"
name="file"
id=""
/>
</div>
<p class="text-center" id="btn-upload-fallback">
<a href="#">Unable to upload a .ckz file?</a>
</p>
<div class="wrap-card hidden text-center" id="dec-passwd">
<form id="dec-passwd-form" class="gap-15px">
<div class="gap-5px hidden" id="restore-using-text-wrap">
<small><b>Paste the contents of your .ckz file</b></small>
<textarea
id="ckz-textarea"
rows="5"
placeholder="{iv: 'kjFC7RBV-N4', 'v': 1, 'iter': 10000, ...}"
autofocus
></textarea>
</div>
<div class="gap-5px">
<small><b>Enter decryption password</b></small>
<div class="two-col-group">
<input
type="password"
name="dec-passwd"
id="inp-dec-passwd"
minlength="3"
required
placeholder="password"
/>
<button class="text-muted btn-enter">⏎</button>
</div>
</div>
</form>
</div>
<div id="progress" class="hidden">
<progress id="progressbar" value="0" max="0"></progress>
</div>
</div>
<div>
<div id="messages"></div>
<div id="warnings"></div>
</div>
<!-- credits -->
<div id="credits" class="text-center text-muted">
<small>
<a target="_blank" href="http://github.com/candh">candh</a>
/
<a
target="_blank"
href="https://github.com/candh/cookies-backup-chrome"
>github</a
>
</small>
</div>
</div>
</body>
<!-- https://bitwiseshiftleft.github.io/sjcl/sjcl.js -->
<script src="sjcl.js"></script>
<script src="popup.js"></script>
</html>