This repository has been archived by the owner on Aug 15, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathindex.html
140 lines (104 loc) · 1.99 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<head>
<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script src="dockable.js"></script>
<script>
$().ready(function() {
$('.dock').dockable();
$('.stacker').dockable({style: 'dock',margin:10});
});
</script>
<style>
#main { float: left; width: 600px;}
#sidebar { float: left; margin-left:20px;}
.stacker {
width: 600px;
min-height: 5px;
background:rgba(200,200,200,1);
-webkit-transition: all linear 0.25s;
}
.stacker a {
display:block;
padding:10px;
}
.stacker.docked {
background:rgba(200,200,200,0.25);
}
.stacker.docked a {
display:block;
text-decoration:underline;
padding:10px;
}
.dock {
width: 200px;
height: 100px;
padding:5px;
box-shadow: 0px 2px 2px rgba(0,0,0,0.5);
}
.dock.docked {
box-shadow: none;
}
body { height: 1000px;}
#a {
background: #00aeef;
}
#b {
background: #44c8f5;
}
#c {
background: #aae1fa;
}
#d {
background: #f287b7;
}
#e {
background: #ec008c;
}
</style>
</head>
<body>
<!--
x #00aeef
o #44c8f5
x #aae1fa
c #f287b7
o #ec008c
-->
<div id="main">
<h1 id="top">This is an example of the new jQuery Dockable plugin.</h1>
<p>It allows you to dock certain elements to the top of the screen…</p>
<div class="stacker">
<a href="#top">Back to Intro</a>
</div>
<p id="scrollback">AND let them stack up…</p>
<p>So that the most important parts of your site…</p>
<div class="stacker">
<a href="#scrollback">Back to Explanation</a>
</div>
<p>Stay in view.</p>
</div>
<div id="sidebar">
<div id="a" class="dock">
X
</div>
<p>Here's some more stuff</p>
<p>Here's some more stuff</p>
<div id="b" class="dock">
O
</div>
<p>Here's some more stuff</p>
<p>Here's some more stuff</p>
<div id="c" class="dock">
X
</div>
<p>Here's some more stuff</p>
<p>Here's some more stuff</p>
<div id="d" class="dock">
C
</div>
<p>Here's some more stuff</p>
<p>Here's some more stuff</p>
<div id="e" class="dock">
O
</div>
</div>
</body>