-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathindex.html
66 lines (56 loc) · 1.68 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
<!doctype html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Covering Bad</title>
<link rel="stylesheet" href="css/coveringBad.css" type="text/css"/>
<link rel="stylesheet" href="css/demo.css" type="text/css"/>
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/3.2.1/css/font-awesome.min.css" type="text/css"/>
</head>
<body>
<h1>Covering Bad</h1>
<h2>Drag the handle</h2>
<div class="covered first" data-passive="images/b2.jpg" data-active="images/b1.jpg">
<div class="handle"></div>
<div class="changeable"></div>
</div>
<div class="covered second" data-passive="images/m2.jpg" data-active="images/m1.jpg">
<div class="handle"></div>
<div class="changeable"></div>
</div>
<div class="covered third" data-passive="images/2.jpg" data-active="images/1.jpg">
<div class="handle"></div>
<div class="changeable"></div>
</div>
<div class="covered fourth" data-passive="images/l2.jpg" data-active="images/l1.jpg">
<div class="handle"></div>
<div class="changeable"></div>
</div>
<script type="text/javascript" src="js/jquery-1.10.2.js"></script>
<script type="text/javascript" src="js/coveringBad.js"></script>
<script type="text/javascript">
$('.first').coveringBad({
marginY : 30 ,
marginX : 30 ,
setX : 200,
setY : 100 ,
direction : "vertical"
});
$('.second').coveringBad({
marginY : 20 ,
marginX : 20 ,
setX : 210,
setY : 140 ,
direction : "horizontal"
});
$('.third').coveringBad();
$('.fourth').coveringBad({
marginY : 20 ,
marginX : 400 ,
setX : 400,
setY : 235 ,
direction : "vertical"
});
</script>
</body>
</html>