aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCamil Staps2020-01-03 20:38:22 +0100
committerCamil Staps2020-01-03 20:38:22 +0100
commit6df8fcbb9278aa99e21fae8d5bf3a6a0588173aa (patch)
tree60489de97faf5244f9d8af99be0e2c17d3d9a7b5
parentRename HebrewParseTrainer namespace to LuoParseTrainer (diff)
Immediately reprove unparseable answers
-rw-r--r--public/js/luoparsetrainer.js18
1 files changed, 0 insertions, 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 <http://www.gnu.org/licenses/>.
*/
$(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);