Advertisement
Guest User

Untitled

a guest
Dec 15th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.88 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3.  
  4. <head>
  5. <meta name="viewport" content="width=device-width, initial-scale=1,shrink-to-fit=no">
  6. <title> calculator </title>
  7. <link href="calc/calc.css" rel="stylesheet" />
  8.  
  9. </head>
  10.  
  11. <body >
  12. <center>
  13. <div>
  14. <form action="#" method="GET">
  15.  
  16. <input type="text" name="result" id="result" placeholder="0">
  17. </form>
  18.  
  19. </div>
  20. <div>
  21. <button value="1" class="numbers" onclick="calc(this.value);">1</button>
  22. <button value="2" class="numbers" onclick="calc(this.value);">2</button>
  23. <button value="3" class="numbers" onclick="calc(this.value);">3</button>
  24. <button value="+" class="numbers" onclick="calc(this.value);">+</button>
  25.  
  26. </div>
  27. <div>
  28. <button value="4" class="numbers" onclick="calc(this.value);">4</button>
  29. <button value="5" class="numbers" onclick="calc(this.value);">5</button>
  30. <button value="6" class="numbers" onclick="calc(this.value);">6</button>
  31. <button value="-" class="numbers" onclick="calc(this.value);">-</button>
  32.  
  33. </div>
  34. <div>
  35. <button value="7" class="numbers" onclick="calc(this.calc);">7</button>
  36. <button value="8" class="numbers" onclick="calc(this.value);">8</button>
  37. <button value="9" class="numbers" onclick="calc(this.value);">9</button>
  38. <button value="*" class="numbers" onclick="calc(this.value);">*</button>
  39.  
  40. </div>
  41. <div>
  42. <button value="0" class="numbers" onclick="calc(this.value);">0</button>
  43. <button value="=" id="equal" onclick="calc(this.value);">=</button>
  44. <button value="/" class="numbers" onclick="calc(this.value);">/</button>
  45.  
  46.  
  47. </div>
  48.  
  49. </center>
  50.  
  51.  
  52. <script src="calc/calc1.js"></script>
  53.  
  54.  
  55.  
  56. </body>
  57.  
  58. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement