From 6df8fcbb9278aa99e21fae8d5bf3a6a0588173aa Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Fri, 3 Jan 2020 20:38:22 +0100 Subject: Immediately reprove unparseable answers --- public/js/luoparsetrainer.js | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/public/js/luoparsetrainer.js b/public/js/luoparsetrainer.js index 5353b6f..092fba8 100644 --- a/public/js/luoparsetrainer.js +++ b/public/js/luoparsetrainer.js @@ -16,19 +16,6 @@ * along with this program. If not, see . */ $(document).ready(function(){ - // http://stackoverflow.com/a/4399433/1544337 - jQuery.fn.shake = function(intShakes, intDistance, intDuration) { - this.each(function() { - $(this).css("position","relative"); - for (var x=1; x<=intShakes; x++) { - $(this).animate({left:(intDistance*-1)}, (intDuration/intShakes)/4) - .animate({left:intDistance}, (intDuration/intShakes)/2) - .animate({left:0}, (intDuration/intShakes)/4); - } - }); - return this; - }; - var audio_positive = new Audio('public/audio/positive.wav'); var audio_negative = new Audio('public/audio/negative.wav'); @@ -375,11 +362,6 @@ $(document).ready(function(){ function checkInput(reload) { var answer = processInput(); - if (!answer && $('#trainer-input-'+input_count).val() != '') { - $('#trainer-input-'+input_count).shake(2, 12, 300); - return false; - } - for (var i in correct_answers) { var correct_answer = correct_answers[i]; var json = JSON.stringify(correct_answer); -- cgit v1.2.3