diff --git a/templates/layout.html b/templates/layout.html index cd4a95f..099313a 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -325,6 +325,10 @@ var flag = true; $("html, body").animate({ scrollTop: $(document).height() }, 1000); //(... rest of your JS code) }); + $("#showall").on('click', function(event){ + $("html, body").animate({ scrollTop: $(document).height() }, 1000); + //(... rest of your JS code) + }); }