From 14979e4d9ed859ac559a2f93093dccb7a698bd81 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Thu, 14 Sep 2017 16:45:49 +0530 Subject: fixed from validation --- website/templates/footer.html | 2 +- website/templates/home.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/website/templates/footer.html b/website/templates/footer.html index ab01f50..6470a6b 100644 --- a/website/templates/footer.html +++ b/website/templates/footer.html @@ -80,7 +80,7 @@ var n2 = Math.round(Math.random() * 10 + 1); $("#a").val(n1 + " + " + n2 + " = "); var add = n1 + n2; - $("#b").on('change', function (){ + $("#b").on('keyup', function (){ if (this.value == add){ $('#myButton').removeAttr('disabled'); document.getElementById("error").innerHTML = ""; diff --git a/website/templates/home.html b/website/templates/home.html index 8ac34dd..751bde6 100644 --- a/website/templates/home.html +++ b/website/templates/home.html @@ -561,10 +561,10 @@
-
+ {% csrf_token %}
- +
-- cgit