From 4aaccd71f7c2e0014b0643658547801110e9efe5 Mon Sep 17 00:00:00 2001 From: Ilya Tychinin Date: Thu, 15 Nov 2012 15:15:30 +0600 Subject: [PATCH 1/2] first --- calculator.html | 82 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 calculator.html diff --git a/calculator.html b/calculator.html new file mode 100644 index 0000000..a628398 --- /dev/null +++ b/calculator.html @@ -0,0 +1,82 @@ + + + + + dz4 + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + \ No newline at end of file From 7d5ed5ead1d37c4ccabfb0771e5250ea0a46835c Mon Sep 17 00:00:00 2001 From: Ilya Tychinin Date: Thu, 15 Nov 2012 17:26:24 +0600 Subject: [PATCH 2/2] cleanup --- calculator.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calculator.html b/calculator.html index a628398..20efc9d 100644 --- a/calculator.html +++ b/calculator.html @@ -41,7 +41,7 @@ }); $('input.result').click(function () { $('.text').val(eval($('.text').val())); - if ($('.text').val() == Infinity) c$('.text').val("Деление на ноль невозможно"); + if ($('.text').val() == Infinity) $('.text').val("Деление на ноль невозможно"); }); });