-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdemo-complex.html
More file actions
154 lines (139 loc) · 4.22 KB
/
demo-complex.html
File metadata and controls
154 lines (139 loc) · 4.22 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Pure JS image zoom</title>
<link href="src/zoomer.css" rel="stylesheet">
<style>
/* These styles are for the demo only. See src/index.css for styles required for the library */
table {
width:100%
}
.demo-heading-container {
height: 200px;
background: #9ed4f9;
}
.demo-horizontal-pad {
width: 200px;
height: 100px;
background: #eeeeee;
}
</style>
</head>
<body>
<table>
<tr>
<td class="demo-heading-container" colspan="3"><h1>Example 1: Receipt (2479px,3508px)</h1></td>
</tr>
<tr>
<td class="demo-horizontal-pad"></td>
<td>
<div style="height: 200px; width:100%;" class="zoomer-container">
<img alt="Image" src="assets/receipt.webp">
</div>
</td>
<td class="demo-horizontal-pad"></td>
</tr>
</table>
<table>
<tr>
<td class="demo-heading-container" colspan="3"><h1>Example 2: Big image (3000px,3000px)</h1></td>
</tr>
<tr>
<td class="demo-horizontal-pad"></td>
<td>
<div style="height: 200px; width:100%;" class="zoomer-container">
<img alt="Image" src="assets/big image.jpg">
</div>
</td>
<td class="demo-horizontal-pad"></td>
</tr>
</table>
<table>
<tr>
<td class="demo-heading-container" colspan="3"><h1>Example 3: Small image (20px,20px)</h1></td>
</tr>
<tr>
<td class="demo-horizontal-pad"></td>
<td>
<div style="height: 200px; width:100%;" class="zoomer-container">
<img alt="Image" src="assets/small image.jpg">
</div>
</td>
<td class="demo-horizontal-pad"></td>
</tr>
</table>
<table>
<tr>
<td class="demo-heading-container" colspan="3"><h1>Example 4: Tall image (400px,6000px)</h1></td>
</tr>
<tr>
<td class="demo-horizontal-pad"></td>
<td>
<div style="height: 200px; width:100%;" class="zoomer-container">
<img alt="Image" src="assets/tall image.png">
</div>
</td>
<td class="demo-horizontal-pad"></td>
</tr>
</table>
<table>
<tr>
<td class="demo-heading-container" colspan="3"><h1>Example 5: Wide image (6000px,400px)</h1></td>
</tr>
<tr>
<td class="demo-horizontal-pad"></td>
<td>
<div style="height: 200px; width:100%;" class="zoomer-container">
<img alt="Image" src="assets/wide image.png">
</div>
</td>
<td class="demo-horizontal-pad"></td>
</tr>
</table>
<table>
<tr>
<td class="demo-heading-container" colspan="3"><h1>Example 6: Receipt in long holder</h1></td>
</tr>
<tr>
<td style="width: 50%;height: 100px;background:#e7ffdd"></td>
<td style="width: 1px">
<div style="height: 600px; width:200px;" class="zoomer-container">
<img alt="Image" src="assets/receipt.webp">
</div>
</td>
<td style="width: 50%;height: 100px;background:#e7ffdd"></td>
</tr>
</table>
<table>
<tr>
<td class="demo-heading-container" colspan="3"><h1>Example 7: Big image 2 (5000px,5000px)</h1></td>
</tr>
<tr>
<td class="demo-horizontal-pad"></td>
<td>
<div style="height: 200px; width:100%;" class="zoomer-container">
<img alt="Image" src="assets/big image2.jpg">
</div>
</td>
<td class="demo-horizontal-pad"></td>
</tr>
</table>
<table>
<tr>
<td class="demo-heading-container" colspan="3"><h1>Example 8: Square image (200px,200px)</h1></td>
</tr>
<tr>
<td class="demo-horizontal-pad"></td>
<td>
<div style="height: 200px; width:100%;" class="zoomer-container">
<img alt="Image" src="assets/square image.jpg">
</div>
</td>
<td class="demo-horizontal-pad"></td>
</tr>
</table>
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src="src/zoomer.js"></script>
</body>
</html>