Scroll top when changing page
This commit is contained in:
parent
bdd08a7ffd
commit
503cb12a30
@ -48,6 +48,9 @@ function setPage(path){
|
||||
path = "/home";
|
||||
}
|
||||
|
||||
window.scrollTo(0, 0);
|
||||
$("#article-container").empty();
|
||||
|
||||
$.ajax("/pages"+path+".md")
|
||||
.done((res) => {
|
||||
$("#article-container").html(res);
|
||||
|
Loading…
Reference in New Issue
Block a user