I have just created a calculator that can be invoked in a page. Currently, the key combination for invoking the calculator is the Ctrl Windows key. This shows and hides the calculator. The calculator has a text area and the user can type in an arithmetic (Validation is pending for non arithmetic keys) expression and on enter key, the same is evaluated. Here is the code ============================= <html> <head> <script language="javascript"> document.onkeyup = KeyCheck; var calcVisible = false; function KeyCheck(e) { var KeyID = (window.event) ? event.keyCode : e.keyCode; switch(KeyID) { case 91: if (!calcVisible) ShowCalc('CalcPlace') else HideCalc('CalcPlace'); break; default:
Continue reading