1
<?xml version="1.0" encoding="UTF-8"?>
2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
<meta http-equiv="Content-Language" content="en" />
6
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
<title>Magnifier Demo</title>
9
<style type="text/css">
30
<script type="text/javascript" src="../../jquery-1.2.6.js"></script>
31
<script type="text/javascript" src="../../ui/ui.core.js"></script>
32
<script type="text/javascript" src="../../ui/ui.magnifier.js"></script>
38
<h2>1. Default, no options</h2>
39
<div class="playground">
40
<div id='example1' class="ui-wrapper example" style="width: 580px; padding: 20px;">
41
<img src="../images/clock.png" width="48" alt="" />
42
<img src="../images/clock.png" width="48" alt="" />
43
<img src="../images/clock.png" width="48" alt="" />
44
<img src="../images/clock.png" width="48" alt="" />
45
<img src="../images/clock.png" width="48" alt="" />
46
<img src="../images/clock.png" width="48" alt="" />
50
<h2>2. Magnification set to 1.5 (default: 2)</h2>
51
<div class="playground">
52
<div id='example2' class="ui-wrapper example" style="width: 580px; padding: 20px;">
53
<img src="../images/clock.png" width="48" alt="" />
54
<img src="../images/clock.png" width="48" alt="" />
55
<img src="../images/clock.png" width="48" alt="" />
56
<img src="../images/clock.png" width="48" alt="" />
57
<img src="../images/clock.png" width="48" alt="" />
58
<img src="../images/clock.png" width="48" alt="" />
62
<h2>3. Advanced example: overlap: true, zIndex: 10, opacity: { min: 0.6, max: 1 }, baseline: -1</h2>
63
<div class="playground">
64
<div id='example3' class="ui-wrapper example" style="width: 580px; padding: 20px;">
65
<img src="../images/clock.png" width="48" alt="" />
66
<img src="../images/clock.png" width="48" alt="" />
67
<img src="../images/clock.png" width="48" alt="" />
68
<img src="../images/clock.png" width="48" alt="" />
69
<img src="../images/clock.png" width="48" alt="" />
70
<img src="../images/clock.png" width="48" alt="" />
74
<h2>4. Advanced example: The direction doesn't have to be horizontal!</h2>
75
<div class="playground">
76
<div id='example4' class="ui-wrapper example" style="width: 150px; padding: 20px; height: 150px;">
77
<img src="../images/clock.png" width="48" alt="" />
78
<img src="../images/clock.png" width="48" alt="" />
79
<img src="../images/clock.png" width="48" alt="" />
80
<img src="../images/clock.png" width="48" alt="" />
81
<img src="../images/clock.png" width="48" alt="" />
82
<img src="../images/clock.png" width="48" alt="" />
83
<img src="../images/clock.png" width="48" alt="" />
84
<img src="../images/clock.png" width="48" alt="" />
85
<img src="../images/clock.png" width="48" alt="" />
89
<script type="text/javascript">
98
$(window).bind("load",function(){
100
$('#example1').magnifier();
101
$('#example2').magnifier({ magnification: 1.5 });
102
$('#example3').magnifier({ magnification: 1.5, overlap: true, zIndex: 10, opacity: { min: 0.6, max: 1 }, baseline: -1 });
103
$('#example4').magnifier({ magnification: 1.5, overlap: true, zIndex: 10, opacity: { min: 0.6, max: 1 }, distance: 30 });