From e3a001bf9567bb68e629499056c5cf7e2ae1a76e Mon Sep 17 00:00:00 2001 From: maxbittker Date: Tue, 23 Sep 2014 19:49:22 -0400 Subject: [PATCH] Formated Errors, fixed an error catching bug --- Mojulo.js | 2 +- index.html | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/Mojulo.js b/Mojulo.js index 146e427..aa13e46 100644 --- a/Mojulo.js +++ b/Mojulo.js @@ -123,8 +123,8 @@ JS_MOD.EquationManager = (function() { }); $(form).on('submit', function(e) { - triggerUpdate(form, anim); e.preventDefault(); + triggerUpdate(form, anim); }); } diff --git a/index.html b/index.html index f789c6a..d8c934f 100644 --- a/index.html +++ b/index.html @@ -25,26 +25,28 @@ } + +
+
+ - - +
   
- - +
- +

Input an equation and hit run to see it animated!
If the result is a black square the equation didn't parse or it evaluates to low numbers only (0-10)