Skip to content

Commit 063dbb9

Browse files
committed
trivial demo updates
1 parent 4bb6780 commit 063dbb9

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

demo/bbq.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ <h2>Smooth Scroll jQuery Plugin with Back Button Support</h2>
3939
<a href="#nav">back to nav</a>
4040

4141
</div>
42-
<script src="http://code.jquery.com/jquery-latest.min.js"></script>
42+
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
4343
<script>!window.jQuery && document.write(unescape('%3Cscript src="/lib/jquery.js"%3E%3C/script%3E'));</script>
4444
<script src="../jquery.smooth-scroll.js"></script>
4545
<script src="../lib/jquery.ba-bbq.js"></script>

demo/index.html

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,13 @@
1515
border: 1px solid #999;
1616
}
1717
</style>
18-
<script src="http://code.jquery.com/jquery-latest.min.js"></script>
18+
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
1919
<script>!window.jQuery && document.write(unescape('%3Cscript src="/lib/jquery.js"%3E%3C/script%3E'));</script>
2020

2121
<script src="../jquery.smooth-scroll.js" type="text/javascript"></script>
2222
<script type="text/javascript">
2323
$(document).ready(function() {
24-
$('li a').smoothScroll({
25-
afterScroll: function() {
26-
/* location.hash = this.hash; */
27-
}
28-
});
24+
$('ul.mainnav a').smoothScroll();
2925

3026
$('p.subnav a').click(function(event) {
3127
event.preventDefault();
@@ -49,7 +45,7 @@
4945
<body>
5046
<div class="container">
5147
<p>Scroll the Document to one of the following paragraphs:</p>
52-
<ul>
48+
<ul class="mainnav">
5349
<li><a href="#p1">p1</a></li>
5450
<li><a href="#p2">p2</a></li>
5551
<li><a href="#p3">p3</a></li>

0 commit comments

Comments
 (0)