refactor: replace the deprecated js api
This commit is contained in:
@@ -60,7 +60,7 @@ $(function () {
|
||||
observer.observe(document.querySelector(titleSelector));
|
||||
|
||||
/* Click title will scroll to top */
|
||||
$topbarTitle.click(function () {
|
||||
$topbarTitle.on('click', function () {
|
||||
$("body,html").animate({scrollTop: 0}, 800);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user