s1andP414D1N_

FitzCalculator

Sep 17th, 2016
368
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.44 KB | None | 0 0
  1. <html>
  2.   <head>
  3.     <style>
  4.       #container{
  5.         font-family:monospace;
  6.         font-weight:bold;
  7.       }
  8.     </style>
  9.     <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
  10.   </head>
  11. </html>
  12. <h1>Fitz' HTML Calculator Demo!</h1>
  13. <html>
  14. <head>
  15. <title>Fitz Calc</title>
  16. </head>
  17. <body bgcolor= "#000000" text= "red">
  18. <form name="calculator" >
  19. <input type="button" value="1" onClick="document.calculator.ans.value+='1'">
  20. <input type="button" value="2" onClick="document.calculator.ans.value+='2'">
  21. <input type="button" value="3" onClick="document.calculator.ans.value+='3'">
  22. <input type="button" value="+" onClick="document.calculator.ans.value+='+'">
  23.  
  24. <input type="button" value="4" onClick="document.calculator.ans.value+='4'">
  25. <input type="button" value="5" onClick="document.calculator.ans.value+='5'">
  26. <input type="button" value="6" onClick="document.calculator.ans.value+='6'">
  27. <input type="button" value="-" onClick="document.calculator.ans.value+='-'">
  28.  
  29. <input type="button" value="7" onClick="document.calculator.ans.value+='7'">
  30. <input type="button" value="8" onClick="document.calculator.ans.value+='8'">
  31. <input type="button" value="9" onClick="document.calculator.ans.value+='9'">
  32. <input type="button" value="*" onClick="document.calculator.ans.value+='*'">
  33. <input type="button" value="/" onClick="document.calculator.ans.value+='/'">
  34.  
  35. <input type="button" value="0" onClick="document.calculator.ans.value+='0'">
  36. <input type="reset" value="Reset">
  37. <input type="button" value="=" onClick="document.calculator.ans.value=eval(document.calculator.ans.value)">
  38. <br>Solution is <input type="textfield" name="ans" value="">
  39. </form>
  40. </body>
  41. </html>
  42. <h1><font color="green">If you like these, message me on Steam and I might be able to make something for you! I really enjoy code and programming in general.</font></h1>
  43. <h2><font color="blue">My Twitter: @renecare_Fitz</font></h2>
  44. <h2><font color="blue">My Steam URL (May be outdated. I change it alot for security): f1TzAuernHEIM</font></h2>
  45. <h3><font color="red">Below is the source for the calculator build</font></h3>
  46. <h3><font color="red">|</font></h3>
  47. <h3><font color="red">+</font></h3>
  48. <h3><font color="red">|</font></h3>
  49. <h3><font color="red">+</font></h3>
  50. <h3><font color="red">|</font></h3>
  51. <h3><font color="red">+</font></h3>
  52. <h3><font color="red">|</font></h3>
  53. <h3><font color="red">+</font></h3>
  54. <h3><font color="red">|</font></h3>
Advertisement
Add Comment
Please, Sign In to add comment