SHARE
TWEET

Untitled

a guest Nov 12th, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <html>
  2. <head>
  3. <title>Kalkulator</title>
  4. <link rel="stylesheet" href="style.css" type="text/css" />
  5.  
  6. <script type="text/javascript">
  7. function licz(n)
  8. {
  9. document.getElementById("dzialanie").innerHTML += n ;
  10. }
  11. function czysc()
  12. {
  13. document.getElementById("dzialanie").innerHTML ="";
  14. }
  15. function dodawanie()
  16. {
  17.  
  18. }
  19. </script>
  20. </head>
  21. <body>
  22. <div align="center">
  23. <table   border="1" id="calc">
  24. <tr>
  25. <td colspan="4"><input type="text" id="dzialanie"/>
  26. </tr>
  27. <tr>
  28. <td><button  id="jedynka" onclick="licz(1)" >1</button>
  29. <td><button  id="dwa" onclick="licz(2)" "2">2</button>
  30. <td><button>3</button>
  31. <td><button  onclick="dodawanie()">+</button>
  32. </tr>
  33. <tr>
  34. <td><button>4</button>
  35. <td><button>5</button>
  36. <td><button>6</button>
  37. <td><button>-</button>
  38. </tr>
  39. <tr>
  40. <td><button>7</button>
  41. <td><button>8</button>
  42. <td><button>9</button>
  43. <td><button>:</button>
  44. </tr>
  45. <tr>
  46. <td><button>0</button>
  47. <td><button>,</button>
  48. <td><button onclick="czysc()">C</button>
  49. <td><button>*</button>
  50. </tr>
  51. </table>
  52. </div>
  53.  
  54.  
  55. </body>
  56. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top