From fae6cdef5400084481a8609279cb16330dbcbc43 Mon Sep 17 00:00:00 2001 From: ruanyf Date: Tue, 22 Apr 2014 10:07:44 +0800 Subject: [PATCH] add hashchange animation --- js/ditto.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ditto.js b/js/ditto.js index 97a5cc2..b81f53b 100644 --- a/js/ditto.js +++ b/js/ditto.js @@ -197,7 +197,7 @@ function router() { Prism.highlightElement(this); }); - if(path.indexOf('README') !== -1){ + if(path.indexOf('README') === -1){ $('html, body').animate({ scrollTop: $('#content').offset().top }, 200);