-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
225 lines (194 loc) · 12.1 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
225
<!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">
<link rel="stylesheet" href="src/styles.css">
<title>Demo Subjx Old</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<script src="src/withinviewport.js"></script>
<script src="src/jquery.withinviewport.js"></script>
</head>
<body>
<div class="row mx-0">
<div class="col-md-2 removePointer" id="left-container"
style="background-color: #32B5FE; overflow: auto; height: 95vh;">
<div id="console"></div>
<button onclick="calculatePosition()" id="cacluate_position"
style="padding: 10px;width: 100%;margin-top: 10px;">Get
Position</button>
<br>
<select name="zoom_canvas" id="zoom_canvas" style="padding: 10px; width: 100%;margin-top: 10px;"
onchange="changeZoomCanvas();">
<option value="40">40%</option>
<option value="50">50%</option>
<option value="60">60%</option>
<option value="70">70%</option>
<option value="80">80%</option>
<option value="90">90%</option>
<option value="100">100%</option>
<option value="120">120%</option>
<option value="fitToWidth" selected>Fit To Width</option>
</select>
<div class="drag-box">
<div class='clone clonable' drag_element_name="signature">Signature Drag</div>
</div>
<div class="drag-box">
<div class='clone clonable' drag_element_name="stamp">Stamp Drag</div>
</div>
<div class="drag-box">
<div class='clone clonable'>Start Drag</div>
</div>
<div class="drag-box">
<div class='clone clonable'>Start Drag</div>
</div>
<div class="drag-box">
<div class='clone clonable'>Start Drag</div>
</div>
<div class="drag-box">
<div class='clone clonable'>Start Drag</div>
</div>
<div class="drag-box">
<div class='clone clonable'>Start Drag</div>
</div>
<div class="drag-box">
<div class='clone clonable'>Start Drag</div>
</div>
<div class="drag-box">
<div class='clone clonable'>Start Drag</div>
</div>
<div class="drag-box">
<div class='clone clonable'>Start Drag</div>
</div>
<div class="drag-box">
<div class='clone clonable'>Start Drag</div>
</div>
<div class="drag-box">
<div class='clone clonable'>Start Drag</div>
</div>
<div class="drag-box">
<div class='clone clonable'>Start Drag</div>
</div>
</div>
<div class="col-md-8" style="background-color: antiquewhite;">
<div class="center-container">
<div class="page">
<div id="stack"
style="overflow: auto; box-sizing: border-box; width:100%; height:100%;position: relative; border-top: #32B5FE 1px dashed">
<div id="container"
style="box-sizing: border-box; width:100%; height:100%;position: relative; overflow: auto;">
<div id="world"
style="box-sizing: border-box; width: 100%; height: 100%; position: relative; transform-origin: 0px 0px; transform: scale(1);">
<div class="full-image " id="imageContainer00"
snapshots_name="1448/samplepdf-263202311210/images/sample-1.png"
document_key="1448/742942632023112059_sample.pdf">
<img fetchpriority="high" loading="eager" decoding="async" class="all-images image_element" src="https://i.ibb.co/nscxWXq/sample-1.png"
id="image_element00" style="border: 1px solid black;">
<div class="d-flex justify-content-between image_text">
<div> sample.pdf </div>
<div> 1 of 2 </div>
</div>
</div>
<div class="full-image " id="imageContainer01"
snapshots_name="1448/samplepdf-263202311210/images/sample-2.png"
document_key="1448/742942632023112059_sample.pdf">
<img fetchpriority="high" loading="eager" decoding="async" class="all-images image_element" src="https://i.ibb.co/ykXz3Kr/sample-2.png"
id="image_element01" style="border: 1px solid black;">
<div class="d-flex justify-content-between image_text">
<div> sample.pdf </div>
<div> 2 of 2 </div>
</div>
</div>
<div class="full-image " id="imageContainer10"
snapshots_name="1448/fivesmallpdf-2632023112148/images/five-small-1.png"
document_key="1448/34652632023112148_five-small.pdf">
<img fetchpriority="high" loading="eager" decoding="async" class="all-images image_element"
src="https://i.ibb.co/9vMyw9Z/five-small-1.png" id="image_element10"
style="border: 1px solid black;">
<div class="d-flex justify-content-between image_text">
<div> five-small.pdf </div>
<div> 1 of 5 </div>
</div>
</div>
<div class="full-image " id="imageContainer11"
snapshots_name="1448/fivesmallpdf-2632023112148/images/five-small-2.png"
document_key="1448/34652632023112148_five-small.pdf">
<img fetchpriority="high" loading="eager" decoding="async" class="all-images image_element"
src="https://i.ibb.co/j8Ty0LN/five-small-2.png" id="image_element11"
style="border: 1px solid black;">
<div class="d-flex justify-content-between image_text">
<div> five-small.pdf </div>
<div> 2 of 5 </div>
</div>
</div>
<div class="full-image " id="imageContainer12"
snapshots_name="1448/fivesmallpdf-2632023112148/images/five-small-3.png"
document_key="1448/34652632023112148_five-small.pdf">
<img fetchpriority="high" loading="eager" decoding="async" class="all-images image_element"
src="https://i.ibb.co/hfXrqZw/five-small-3.png" id="image_element12"
style="border: 1px solid black;">
<div class="d-flex justify-content-between image_text">
<div> five-small.pdf </div>
<div> 3 of 5 </div>
</div>
</div>
<div class="full-image " id="imageContainer13"
snapshots_name="1448/fivesmallpdf-2632023112148/images/five-small-4.png"
document_key="1448/34652632023112148_five-small.pdf">
<img fetchpriority="high" loading="eager" decoding="async" class="all-images image_element"
src="https://i.ibb.co/TRRSJQP/five-small-4.png" id="image_element13"
style="border: 1px solid black;">
<div class="d-flex justify-content-between image_text">
<div> five-small.pdf </div>
<div> 4 of 5 </div>
</div>
</div>
<div class="full-image " id="imageContainer14"
snapshots_name="1448/fivesmallpdf-2632023112148/images/five-small-5.png"
document_key="1448/34652632023112148_five-small.pdf">
<img fetchpriority="high" loading="eager" decoding="async" class="all-images image_element"
src="https://i.ibb.co/pKWV5Q6/five-small-5.png" id="image_element14"
style="border: 1px solid black;">
<div class="d-flex justify-content-between image_text">
<div> five-small.pdf </div>
<div> 5 of 5 </div>
</div>
</div>
<div class="full-image " id="imageContainer20"
snapshots_name="1448/basiclinkpdf-2632023112228/images/basic-link-1.png"
document_key="1448/886722632023112227_basic-link.pdf">
<img fetchpriority="high" loading="eager" decoding="async" class="all-images image_element"
src="https://i.ibb.co/X3L6QRN/basic-link-1.png" id="image_element20"
style="border: 1px solid black;">
<div class="d-flex justify-content-between image_text">
<div> basic-link.pdf </div>
<div> 1 of 2 </div>
</div>
</div>
<div class="full-image " id="imageContainer21"
snapshots_name="1448/basiclinkpdf-2632023112228/images/basic-link-2.png"
document_key="1448/886722632023112227_basic-link.pdf">
<img fetchpriority="high" loading="eager" decoding="async" class="all-images image_element"
src="https://i.ibb.co/cLMr562/basic-link-2.png" id="image_element21"
style="border: 1px solid black;">
<div class="d-flex justify-content-between image_text">
<div> basic-link.pdf </div>
<div> 2 of 2 </div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-2 removePointer" style="background-color: coral; color: white; text-align: center; ">Free
Space</div>
</div>
<script src="src/index.js"></script>
</body>
</html>