-
Notifications
You must be signed in to change notification settings - Fork 6
/
demo-liquid.html
58 lines (43 loc) · 1.37 KB
/
demo-liquid.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
<!DOCTYPE HTML>
<html>
<head>
<title>Sticky Sidebar Demo - Basic</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="./demo.styles.css" media="all">
<style>
.container { width: 100%; }
#main { width: 50%; }
</style>
</head>
<body>
<div id="header"></div>
<div id="content">
<div class="container">
<div id="main">
<h1>A Sticky Sidebar demo</h1>
<p>This is a barebones demo showing a typical sticky sidebar UX.</p>
<p>Sometimes you want the summary to stay in view no matter now long the page is.
Useful when you have a long form with multiple items to keep track of.</p>
</div><!-- /#main -->
<div id="sidebar">
<h2>Summary box</h2>
<ul>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
<li>Item 4</li>
<li>Item 5</li>
</ul>
</div><!-- /#sidebar -->
</div><!-- /.container -->
</div><!-- /#content -->
<div id="footer"><p><small>© 2011. Yelotofu. No rights reserved.</small></p></div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript"></script>
<script src="./jquery.stickysidebar.js"></script>
<script>
(function($){
$('#sidebar').stickySidebar();
})(jQuery);
</script>
</body>
</html>