-
Notifications
You must be signed in to change notification settings - Fork 2
/
test-min.html
68 lines (60 loc) · 1.28 KB
/
test-min.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
<!DOCTYPE html>
<html>
<head>
<title>Affix Test page</title>
<style type="text/css">
#container {
/*width: 800px;*/
height: 2000px;
margin: 20px auto;
border: 1px solid #666;
}
.blutack {
height: 50px;
background: #ccc;
border: 1px solid #999;
}
#fixme {
height: 50px;
background: #eee;
border: 1px solid #999;
}
#top {
height: 150px;
background: green;
}
#right {
float: right;
width: 300px;
}
.right-fix {
background: red;
}
</style>
</head>
<body>
<div id="container">
<div id="top">
<div class="blutack" data-blutack-options="offsetTop: 20; freezeWidth: false; foo: bar">
<p>This should be automatically affixed</p>
</div>
<div id="fixme">
<p>This should be affixed</p>
</div>
</div>
<div id="right">
<div class="right-fix">I am right on!!!</div>
</div>
</div>
<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript" src="jquery.blutack.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#fixme').blutack({
offsetTop: 71
});
$('.right-fix').blutack()
});
</script>
</body>
</html>