summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJed Foster <jed@jedfoster.com>2015-01-02 22:39:46 -0800
committerJed Foster <jed@jedfoster.com>2015-01-02 22:39:46 -0800
commitc0fc9ec9585aa29c7af80ba418fb1b15135508c9 (patch)
treee0c8f41432c1d5f2ad4f3bba0e58433dca6a3721
parent67eb45e14c60ec5070dee42237a2aa006794fc90 (diff)
downloadReadmore.js-c0fc9ec9585aa29c7af80ba418fb1b15135508c9.zip
Readmore.js-c0fc9ec9585aa29c7af80ba418fb1b15135508c9.tar.gz
Readmore.js-c0fc9ec9585aa29c7af80ba418fb1b15135508c9.tar.bz2
Tweak the demo
-rw-r--r--demo.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/demo.html b/demo.html
index 33aab7c..5e66ef1 100644
--- a/demo.html
+++ b/demo.html
@@ -160,7 +160,7 @@
</section>
</div>
- <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
+ <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="readmore.js"></script>
@@ -170,12 +170,12 @@
maxHeight: 390,
afterToggle: function(trigger, element, expanded) {
if(! expanded) { // The "Close" link was clicked
- $('html, body').animate( { scrollTop: element.offset().top }, {duration: 100 } );
+ $('html, body').animate({scrollTop: $(element).offset().top}, {duration: 100});
}
}
});
- $('article').readmore({maxHeight: 240, speed: 250});
+ $('article').readmore({speed: 500});
</script>
</body>
</html>