Skip to content

Commit

Permalink
calculator ver 1.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
hokafi committed Aug 25, 2015
1 parent 7dd2fbc commit d9de129
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions index-calc.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
var p='0';
var flag=0;
$('.number').click(function(){
$("#answer").val('');
// $("#answer").val('');
var v=$(this).val();
$('#answer').val($("#answer").val() + v);
});
Expand Down Expand Up @@ -152,7 +152,6 @@
else
p=v;
op='-';
alert(p);
$("#operation").val('-');
$("#answer").val('');
flag=1;
Expand Down

0 comments on commit d9de129

Please sign in to comment.