-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
77 lines (65 loc) · 3.01 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
<!DOCTYPE html>
<html class="w-96" lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Send To PocketBook</title>
<link rel="stylesheet" href="./globals.css" media="screen" />
<script src="./index.js"></script>
</head>
<body>
<div class="mx-auto flex w-full max-w-sm flex-col gap-6 p-6">
<div class="flex flex-col items-center">
<h1 class="text-3xl font-semibold">Send To PocketBook</h1>
<p class="text-sm text-center">
You're one click away of saving this document in your PocketBook using Send-To-PocketBook!
</p>
</div>
<div class="form-group">
<div class="form-field">
<label class="form-label">Title</label>
<input id="document-title" placeholder="Loading..." type="text"
class="input input-ghost-primary max-w-full" />
</div>
<div class="divider divider-horizontal">
<div class="popover popover-hover">
<label class="popover-trigger">Proxy Server</label>
<div class="popover-content">
<div class="p-4 text-sm text-wrap overflow-x-clip">
A proxy server receives your document and sends it via e-mail to your @pb.sync e-mail.
</div>
</div>
</div>
</div>
<div class="form-field">
<label class="form-label">URL</label>
<input id="proxy-server-url" placeholder="https://proxy-server-worker.joaomagfreitas.workers.dev"
type="url" class="input input-ghost-primary max-w-full"
value="https://proxy-server-worker.joaomagfreitas.workers.dev" />
<label class="form-label">
<a class="form-label-alt" href="https://github.com/cobrinhas/send-to-pocket-book#setup"
target="_blank">Want to roll your own proxy-server?</a>
</label>
</div>
<div class="form-field">
<label class="form-label">PBSync E-mail</label>
<input id="pbsync-email" placeholder="ruth.saint91@pbsync.com" type="email"
class="input input-ghost-primary max-w-full" />
</div>
<div class="form-field">
<div id="form-status" class="hidden form-control justify-center pt-5" hidden>
<div id="spinner" class="spinner-circle" hidden></div>
<p id="status" class="text-sm text-center" hidden></p>
</div>
</div>
<div class="form-field pt-5">
<div class="form-control justify-between">
<button id="send-button" type="button" class="btn btn-primary w-full">
Send
</button>
</div>
</div>
</div>
</div>
</body>
</html>