Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save worstn8mare/a75cad16c9ca1d3cb6ba94f5103b0d32 to your computer and use it in GitHub Desktop.
Save worstn8mare/a75cad16c9ca1d3cb6ba94f5103b0d32 to your computer and use it in GitHub Desktop.
<script type="text/javascript">
function plus(operator,value){
/* code here*/
return result;
}
function divide(operator,value){
/* code here*/
return result;
}
function times(operator,value){
/* code here*/
return result;
}
function minus(operator,value){
/* code here*/
return result;
}
function checker(input){
/* code here*/
/* condition code
if(exploded input operator is equal to "-")
holder = minus(operator,value);
else if(exploded input operator is equal to "*")
holder = times(operator,value);
....
*/
return value sa selector sa textbox nga naka focus;
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment