You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: index.html
+78-99
Original file line number
Diff line number
Diff line change
@@ -42,10 +42,7 @@ <h1>
42
42
</header>
43
43
44
44
<p>
45
-
EasyZoom is an elegant, highly optimised <ahref="http://www.jquery.com">jQuery</a> image zoom and
46
-
panning plugin based on the <ahref="http://cssglobe.com/lab/easyzoom/easyzoom.html">original work</a>
47
-
by <ahref="http://grakalic.com/">Alen Grakalic</a>. EasyZoom supports touch-enabled devices and is
48
-
easily customisable with CSS.
45
+
EasyZoom is an elegant, highly optimised <ahref="http://www.jquery.com">jQuery</a> image zoom and panning plugin based on the <ahref="http://cssglobe.com/lab/easyzoom/easyzoom.html">original work</a> by <ahref="http://grakalic.com/">Alen Grakalic</a>. EasyZoom supports touch-enabled devices and is easily customisable with CSS.
49
46
</p>
50
47
51
48
<pstyle="text-align:center;">
@@ -55,32 +52,30 @@ <h1>
55
52
56
53
</section>
57
54
58
-
<hr/>
59
-
60
55
<!-- Example -->
61
56
<sectionid="example">
62
57
63
-
<h1>
58
+
<h2>
64
59
Examples
65
-
</h1>
60
+
</h2>
66
61
67
-
<p>
62
+
<pstyle="text-align: center;">
68
63
Use your mouse cursor or finger to zoom and pan the images below.
EasyZoom does not rely on a specific markup structure but it is important that the EasyZoom target
159
-
element (<code><div class="easyzoom"></code>) only contains a link to the large image and the
160
-
smaller image. Any other elements within the EasyZoom target must not affect its layout, E.G. elements
161
-
that are positioned absolutely.
151
+
EasyZoom does not rely on a specific markup structure but it is important that the EasyZoom target element (<code><div class="easyzoom"></code>) only contains a link to the large image and the smaller image. Any other elements within the EasyZoom target must not affect its layout, E.G. elements that are positioned absolutely.
162
152
</p>
163
153
164
154
<figure>
@@ -169,17 +159,12 @@ <h2>
169
159
<spanclass="nt"></div></span></pre>
170
160
</figure>
171
161
172
-
<h2>
162
+
<h3>
173
163
CSS
174
-
</h2>
164
+
</h3>
175
165
176
166
<p>
177
-
The EasyZoom target element must 'shrink wrap' the smaller image, this can be achieved either by
178
-
<ahref="http://www.w3.org/TR/CSS2/visudet.html#shrink-to-fit-float">floating</a> it or by displaying
179
-
it as an <ahref="http://www.w3.org/TR/CSS2/visudet.html#inlineblock-width">inline block</a>. Extra
180
-
white space below the image (usually caused by the
181
-
<ahref="http://www.w3.org/TR/CSS2/visuren.html#line-box">line box</a> the image sits within) can be
182
-
removed either by displaying it at block level or changing its position within the line box.
167
+
The EasyZoom target element must 'shrink wrap' the smaller image, this can be achieved either by <ahref="http://www.w3.org/TR/CSS2/visudet.html#shrink-to-fit-float">floating</a> it or by displaying it as an <ahref="http://www.w3.org/TR/CSS2/visudet.html#inlineblock-width">inline block</a>. Extra white space below the image (usually caused by the <ahref="http://www.w3.org/TR/CSS2/visuren.html#line-box">line box</a> the image sits within) can be removed either by displaying it at block level or changing its position within the line box.
183
168
</p>
184
169
185
170
<p>
@@ -205,13 +190,12 @@ <h2>
205
190
<spanclass="p">}</span></pre>
206
191
</figure>
207
192
208
-
<h2>
193
+
<h3>
209
194
JavaScript
210
-
</h2>
195
+
</h3>
211
196
212
197
<p>
213
-
The EasyZoom plugin is instantiated as any other jQuery plugin and an instances API can be accessed via
214
-
element data. EasyZoom is also AMD and CommonJS compatible.
198
+
The EasyZoom plugin is instantiated as any other jQuery plugin and an instances API can be accessed via element data. EasyZoom is also AMD and CommonJS compatible.
215
199
</p>
216
200
217
201
<figure>
@@ -224,78 +208,74 @@ <h2>
224
208
225
209
</section>
226
210
227
-
<hr/>
228
-
229
211
<!-- Options -->
230
212
<sectionid="options">
231
213
232
-
<h1>
214
+
<h2>
233
215
Options
234
-
</h1>
216
+
</h2>
235
217
236
218
<p>
237
-
Global options can be specified via the standard jQuery plugin interface or as data attributes on
238
-
individual EasyZoom elements. Remember that <tt>camelCase</tt> options should be written as hyphen-separated
239
-
attributes, for example the <code>preventClicks</code> option would be defined on the element with the
240
-
<code>data-prevent-clicks</code> attribute.
219
+
Global options can be specified via the standard jQuery plugin interface or as data attributes on individual EasyZoom elements. Remember that <tt>camelCase</tt> options should be written as hyphen-separated attributes, for example the <code>preventClicks</code> option would be defined on the element with the <code>data-prevent-clicks</code> attribute.
241
220
</p>
242
221
243
-
<dl>
244
-
<dt>
245
-
<var>loadingNotice</var>
246
-
</dt>
247
-
<dd>
248
-
The text to display within the notice box while loading the zoom image. Default: <code>"Loading image"</code>.
249
-
</dd>
250
-
<dt>
251
-
<var>errorNotice</var>
252
-
</dt>
253
-
<dd>
254
-
The text to display within the notice box if an error occurs loading the zoom image. Default:
255
-
<code>"The image could not be loaded"</code>.
256
-
</dd>
257
-
<dt>
258
-
<var>errorDuration</var>
259
-
</dt>
260
-
<dd>
261
-
The time (in milliseconds) to display the error notice. Default: <code>2500</code>.
262
-
</dd>
263
-
<dt>
264
-
<var>preventClicks</var>
265
-
</dt>
266
-
<dd>
267
-
Prevent clicks on the zoom image link. Default: <code>true</code>.
268
-
</dd>
269
-
<dt>
270
-
<var>onShow</var>
271
-
</dt>
272
-
<dd>
273
-
Callback function to execute when the flyout is displayed. Default: <code>undefined</code>
274
-
</dd>
275
-
<dt>
276
-
<var>onHide</var>
277
-
</dt>
278
-
<dd>
279
-
Callback function to execute when the flyout is removed. Default: <code>undefined</code>
280
-
</dd>
281
-
<dt>
282
-
<var>onMove</var>
283
-
</dt>
284
-
<dd>
285
-
Callback function to execute when the cursor is moved while over the image. Default: <code>undefined</code>
286
-
</dd>
287
-
</dl>
222
+
<table>
223
+
<thead>
224
+
<tr>
225
+
<th>Option</th>
226
+
<th>Default value</th>
227
+
<th>Description</th>
228
+
</tr>
229
+
</thead>
230
+
<tbody>
231
+
<tr>
232
+
<td><var>loadingNotice</var></td>
233
+
<td><code>"Loading image"</code></td>
234
+
<td>
235
+
The text to display within the notice box while loading the zoom image.
236
+
</td>
237
+
</tr>
238
+
<tr>
239
+
<td><var>errorNotice</var></td>
240
+
<td><code>"The image could not be loaded"</code></td>
241
+
<td>The text to display within the notice box if an error occurs when loading the zoom image.</td>
242
+
</tr>
243
+
<tr>
244
+
<td><var>errorDuration</var></td>
245
+
<td><code>2500</code></td>
246
+
<td>The time (in milliseconds) to display the error notice</td>
247
+
</tr>
248
+
<tr>
249
+
<td><var>preventClicks</var></td>
250
+
<td><code>true</code></td>
251
+
<td>Prevent clicks on the zoom image link.</td>
252
+
</tr>
253
+
<tr>
254
+
<td><var>onShow</var></td>
255
+
<td><code>$.noop</code></td>
256
+
<td>Callback function to execute when the flyout is displayed.</td>
257
+
</tr>
258
+
<tr>
259
+
<td><var>onMove</var></td>
260
+
<td><code>$.noop</code></td>
261
+
<td>Callback function to execute when the cursor is moved while over the image.</td>
262
+
</tr>
263
+
<tr>
264
+
<td><var>onHide</var></td>
265
+
<td><code>$.noop</code></td>
266
+
<td>Callback function to execute when the flyout is removed.</td>
0 commit comments