-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpdf.html
189 lines (185 loc) · 6.76 KB
/
pdf.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Sign●●●|準備文件</title>
<script
src="https://kit.fontawesome.com/dbaf598005.js"
crossorigin="anonymous"
></script>
<link rel="stylesheet" href="./style.css" />
<link rel="stylesheet" href="./pdf.css" />
</head>
<body>
<div class="full-page-container">
<!-- 導覽列 -->
<div class="nav-bar">
<a href="./index.html" class="logo-a"
><img src="./image/logo_Signooo 1.png" alt="logo" class="logo"
/></a>
<div class="nav-buttons">
<a href="#" class="not-allowed">服務介紹</a>
<a href="#" class="not-allowed">簽署文件</a>
<a href="#" class="not-allowed">註冊</a>
<a href="#" class="not-allowed">登入</a>
</div>
</div>
<!-- 簽署文件處 -->
<div class="pdf-page">
<div class="pdf-bar">
<span class="pdf-bar-title">sample.pdf</span>
<input class="select-page not-allowed" type="text" />
<span class="total-page">/ 1</span>
<div><i class="fa-solid fa-chevron-up not-allowed"></i></div>
<div><i class="fa-solid fa-chevron-down not-allowed"></i></div>
<input
id="uploadPDF"
type="file"
class="selectPDF"
accept="application/pdf"
style="display: none"
/>
<button class="upload-again not-allowed" onclick="uploadPDF.click()">
重選文件
</button>
</div>
<div class="pdf-container">
<!-- 左欄 -->
<div class="pdf-sidebar-left">
<div class="pdf-pages">
<!-- render -->
<div class="pdf-per-page">
<canvas
width="120"
height="170"
style="border: 1px solid #000"
data-page="1"
></canvas>
<p>1</p>
</div>
<!-- render -->
<div class="pdf-per-page">
<canvas
width="120"
height="170"
style="border: 1px solid #000"
data-page="1"
></canvas>
<p>1</p>
</div>
<!-- render -->
<div class="pdf-per-page">
<canvas
width="120"
height="170"
style="border: 1px solid #000"
data-page="1"
></canvas>
<p>1</p>
</div>
<!-- render -->
<div class="pdf-per-page">
<canvas
width="120"
height="170"
style="border: 1px solid #000"
data-page="1"
></canvas>
<p>1</p>
</div>
</div>
<div class="hide-sidebar">◀︎</div>
<div class="show-sidebar hide">▶︎</div>
</div>
<!-- 中間PDF -->
<div class="show-pdf">
<!-- render -->
<div class="forPDF">
<canvas id="forPDF-1" style="border: 1px solid #000"></canvas>
</div>
</div>
<!-- 右欄 -->
<div class="pdf-sidebar-right">
<div class="sidebar-right-title">簽署文件</div>
<h3>您的簽名</h3>
<h4></h4>
<div class="signature signature-done">
<div>
<i class="fa-solid fa-ellipsis-vertical"></i>
<i class="fa-solid fa-ellipsis-vertical"></i>
</div>
<img class="sign show-img" />
<i class="fa-solid fa-pencil not-allowed"></i>
</div>
<button class="signature not-allowed">+ 新增簽名檔</button>
<h3>日期</h3>
<button class="add-thing-btn not-allowed">
<div>
<i class="fa-solid fa-ellipsis-vertical"></i>
<i class="fa-solid fa-ellipsis-vertical"></i>
</div>
<p>2022/11/12</p>
</button>
<h3>文字</h3>
<button class="add-thing-btn not-allowed">
<div>
<i class="fa-solid fa-ellipsis-vertical"></i>
<i class="fa-solid fa-ellipsis-vertical"></i>
</div>
<p>增加文字方塊</p>
</button>
<button class="draft not-allowed">儲存文件於草稿</button>
<button class="confirm-to-save">確認簽署此文件</button>
</div>
</div>
</div>
</div>
<!-- modal -->
<div class="modal-background modal-1 toggle-modal-1">
<div class="modal">
<div class="close-btn-container">
<button class="close-btn toggle-modal-1 not-allowed">x</button>
</div>
<img src="./image/State=draw.png" alt="" class="process1-img" />
<button class="draw-signature">繪製新的簽名檔</button>
<p class="description">繪製新的簽名檔案。</p>
<button class="upload-signature not-allowed">上傳現有簽名檔</button>
<p class="description">從你的裝置直接上傳簽名檔案。</p>
</div>
</div>
<!-- modal2 -->
<div class="modal-background modal-2 toggle-modal-2 hide">
<div class="modal">
<div class="close-btn-container">
<button class="close-btn toggle-modal-2 not-allowed">x</button>
</div>
<canvas id="signature-canvas" width="500" height="300"></canvas>
<div class="btn-group-2">
<button class="clear-btn">清空畫面</button>
<button class="save-btn">儲存簽名</button>
</div>
</div>
</div>
<!-- modal3 -->
<div class="modal-background modal-3 toggle-modal-3 hide">
<div class="modal">
<div class="close-btn-container">
<button class="close-btn toggle-modal-3">x</button>
</div>
<img src="./image/logo_Signooo 1.png" alt="logo" />
<p>太棒了!你已成功完成簽署🎉</p>
<div class="btn-group-3">
<button class="download-btn">下載文件 PDF 檔</button>
<a href="./index.html" class="back-to-home-page hide">回首頁</a>
</div>
</div>
</div>
<!-- 引入套件 -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.3.4/jspdf.min.js"></script>
<script src="https://unpkg.com/fabric@latest/dist/fabric.js"></script>
<script src="https://mozilla.github.io/pdf.js/build/pdf.js"></script>
<script src="./pdf.js"></script>
</body>
</html>