@@ -44,13 +44,13 @@ $(document).ready(function() {
47− fun: scrollPageTo(-document.body.scrollHeight),
47+ fun: scrollPageTo(-document.body.scrollHeight, 'top'),
48 des: 'scroll to the top of the page',
48 des: 'scroll to the top of the page',
49 cat: 'Navigation'
49 cat: 'Navigation'
53− fun: scrollPageTo(document.body.scrollHeight),
53+ fun: scrollPageTo(document.body.scrollHeight, 'bottom'),
54 des: 'scroll to the bottom of the page',
54 des: 'scroll to the bottom of the page',
55 cat: 'Navigation'
55 cat: 'Navigation'
@@ -241,10 +241,10 @@ $(document).ready(function() {
244− function scrollPageTo(position) {
244+ function scrollPageTo(position, nav) {
245 return function() {
245 return function() {
246 window.scrollTo(0, position);
246 window.scrollTo(0, position);
247− highlightResult('visible')();
247+ highlightResult(nav)();