Update app.js

This commit is contained in:
infinityedge
2021-09-05 21:58:54 +08:00
committed by 神戸小鳥
parent d60d8bab51
commit 43d621324a

View File

@@ -257,7 +257,7 @@ class App{
}); });
this.switch('trajectory'); this.switch('trajectory');
this.#pages.trajectory.born(); this.#pages.trajectory.born();
$(document).keypress(function(event){ $(document).keydown(function(event){
if(event.which == 32 || event.which == 13){ if(event.which == 32 || event.which == 13){
$('#lifeTrajectory').click(); $('#lifeTrajectory').click();
} }
@@ -294,7 +294,7 @@ class App{
li.appendTo('#lifeTrajectory'); li.appendTo('#lifeTrajectory');
$("#lifeTrajectory").scrollTop($("#lifeTrajectory")[0].scrollHeight); $("#lifeTrajectory").scrollTop($("#lifeTrajectory")[0].scrollHeight);
if(isEnd) { if(isEnd) {
$(document).keypress(function(event){}) $(document).keydown(function(event){})
this.#isEnd = true; this.#isEnd = true;
trajectoryPage.find('#summary').show(); trajectoryPage.find('#summary').show();
} }