Skip to content

Commit

Permalink
removing T from addText Script
Browse files Browse the repository at this point in the history
  • Loading branch information
rhalp10 committed Sep 30, 2017
1 parent b908d6f commit 4736e8b
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ <h1 class="display-3">Simple Calculator</h1>
<div class="col-sm-10 ">
<hr>
<div class="text-center select_button">
<a name="" class="btn btn-outline-primary col-sm-2" href="javascript:addTextT('7')">7</a>
<a name="" class="btn btn-outline-primary col-sm-2" href="javascript:addText('7')">7</a>
<a name="" class="btn btn-outline-primary col-sm-2" href="javascript:addText('8')">8</a>
<a name="" class="btn btn-outline-primary col-sm-2" href="javascript:addText('9')">9</a>
<a name="" class="btn btn-outline-primary col-sm-2" href="javascript:addText('/')">/</a>
Expand Down Expand Up @@ -121,26 +121,26 @@ <h1 class="display-3">Simple Calculator</h1>
alert(e.message);
}
}
// var a = parseInt("10");
// var b = parseInt("10");
// var c = a+b;
// var a = parseInt("10");
// var b = parseInt("10");
// var c = a+b;

// var str = document.getElementById("input_text").value;
// var res = str.split("");
// document.getElementById("input_text").value = res;//display the splited value
// var str = document.getElementById("input_text").value;
// var res = str.split("");
// document.getElementById("input_text").value = res;//display the splited value

// var temp = new Array();
// var temp = str.split("");
// for (a in temp ) {
// if (isNaN(temp[a]))
// {
// console.log (temp[a] = temp[a]);
// }
// else
// {
// console.log (temp[a] = parseInt(temp[a], 10));
// }
// }
// var temp = new Array();
// var temp = str.split("");
// for (a in temp ) {
// if (isNaN(temp[a]))
// {
// console.log (temp[a] = temp[a]);
// }
// else
// {
// console.log (temp[a] = parseInt(temp[a], 10));
// }
// }
}
//NUMBER ONLY
function allowedChar(elem) {
Expand Down

0 comments on commit 4736e8b

Please sign in to comment.