-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
80 lines (80 loc) · 2.87 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
<!DOCTYPE html>
<html>
<head>
<title>Mag</title>
<style>
body {
margin: 50px auto;
max-width: 1250px;
overflow-x: hidden;
position: relative;
}
.box {
border: 1px solid black;
cursor: -webkit-zoom-in;
cursor: zoom-in;
display: inline-block;
height: 205px;
margin-bottom: 1px;
position: relative;
width: 273px;
}
.output {
border: 1px solid black;
height: 410px;
margin-top: 5px;
position: relative;
width: 546px;
}
.box img {
display: block;
}
.glass {
background: white;
background: rgba(255, 255, 255, 0.75);
border: 1px solid white;
position: absolute;
}
.pull-left {
float: left;
margin-left: 50px;
}
.pull-right {
float: right;
margin-right: 50px;
}
</style>
</head>
<body>
<div class="pull-left">
<div>
<div class="box" data-image="http://www.sports-logos-screensavers.com/user/Baltimore_Ravens.jpg">
<img src="http://www.sports-logos-screensavers.com/user/Baltimore_Ravens.jpg" width="273" height="205">
</div>
<div class="box" data-image="http://www.sports-logos-screensavers.com/user/Cleveland_Browns.jpg">
<img src="http://www.sports-logos-screensavers.com/user/Cleveland_Browns.jpg" width="273" height="205">
</div>
</div>
<div>
<div class="box" data-image="http://www.sports-logos-screensavers.com/user/Cincinnati_Bengals.jpg">
<img src="http://www.sports-logos-screensavers.com/user/Cincinnati_Bengals.jpg" width="273" height="205">
</div>
<div class="box" data-image="http://www.sports-logos-screensavers.com/user/Pittsburgh_Steelers.jpg">
<img src="http://www.sports-logos-screensavers.com/user/Pittsburgh_Steelers.jpg" width="273" height="205">
</div>
</div>
</div>
<div id="output" class="output pull-right"></div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script>
<script src="js/mag.js"></script>
<script>
jQuery(function ($) {
$('.box').magnify({
output: '#output',
scale: 5,
className: 'glass'
});
});
</script>
</body>
</html>