diff options
author | Jed Foster <jed@jedfoster.com> | 2015-01-02 22:39:46 -0800 |
---|---|---|
committer | Jed Foster <jed@jedfoster.com> | 2015-01-02 22:39:46 -0800 |
commit | c0fc9ec9585aa29c7af80ba418fb1b15135508c9 (patch) | |
tree | e0c8f41432c1d5f2ad4f3bba0e58433dca6a3721 | |
parent | 67eb45e14c60ec5070dee42237a2aa006794fc90 (diff) | |
download | Readmore.js-c0fc9ec9585aa29c7af80ba418fb1b15135508c9.zip Readmore.js-c0fc9ec9585aa29c7af80ba418fb1b15135508c9.tar.gz Readmore.js-c0fc9ec9585aa29c7af80ba418fb1b15135508c9.tar.bz2 |
Tweak the demo
-rw-r--r-- | demo.html | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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> |