diff --git a/machine.html b/machine.html index c07df02..fe1d6cb 100644 --- a/machine.html +++ b/machine.html @@ -140,17 +140,15 @@ if( array[i].input.indexOf(value) > -1 ){ flag = true; answer = '

'+array[i].output+'

'; - continue; + setTimeout(function(){ + $(".b_body").append(answer); + $(".b_body").scrollTop(10000000); + text.val(''); + },500); + return; } } - if(flag){ - setTimeout(function(){ - $(".b_body").append(answer); - $(".b_body").scrollTop(10000000); - },500); - }else{ - ajax(args); - } + ajax(args); $(".b_body").scrollTop(10000000); text.val(''); } diff --git a/map.html b/map.html index 3ef5924..6ca4afe 100755 --- a/map.html +++ b/map.html @@ -127,7 +127,18 @@