pullup: conditional and at 2000

This commit is contained in:
Mattia Mascarello 2021-11-21 19:06:59 +01:00 committed by GitHub
parent 56a8d6c52d
commit e0882ecdb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,7 +43,6 @@ $.getJSON("data.json", function (d) {
displayQuestion();
});
function displayQuestion() {
if(total < 200) sef("pullup");
$("html, body").scrollTop(0);
if (total < 1) {
audio.pause();
@ -52,6 +51,8 @@ function displayQuestion() {
$("#loose").show();
}
else {
if(total < 2000) sef("pullup");
var index = 0;
// sends comrad Dwayne to help (or calls him back)