mirror of
https://github.com/VickScarlet/lifeRestart.git
synced 2026-03-24 21:37:40 +08:00
Update app.js
This commit is contained in:
@@ -257,6 +257,11 @@ class App{
|
|||||||
});
|
});
|
||||||
this.switch('trajectory');
|
this.switch('trajectory');
|
||||||
this.#pages.trajectory.born();
|
this.#pages.trajectory.born();
|
||||||
|
$(document).keypress(function(event){
|
||||||
|
if(event.which == 32 || event.which == 13){
|
||||||
|
$('#lifeTrajectory').click();
|
||||||
|
}
|
||||||
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
// Trajectory
|
// Trajectory
|
||||||
@@ -289,6 +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){})
|
||||||
this.#isEnd = true;
|
this.#isEnd = true;
|
||||||
trajectoryPage.find('#summary').show();
|
trajectoryPage.find('#summary').show();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user