Advertisement
Guest User

Untitled

a guest
May 24th, 2014
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.68 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.  
  5. <title>EV Tracker</title>
  6.  
  7. <style>
  8. body { background-color:white;}
  9. p { color:purple; text-align: center;}
  10. h1 {font-size:36px; color:red;text-align: center;}
  11. h2 {color:red;text-align: center;}
  12. table,th,td
  13. {
  14. border:1px solid black;
  15. }
  16. </style>
  17.  
  18. <meta name="author" content="Jake Oakes">
  19. <meta name="description" content="Free Online Pokemon EV Tracker">
  20.  
  21. </head>
  22. <body>
  23. <div id="container" style="width:500px;background-color:white">
  24. <!--Coded form scratch by Jake Oakes, Pokemon MASTER!-->
  25. <div id="header" style="background-color:yellow;width:500px;height:72px;">
  26. <h1>EV Tracker</h1>
  27. </div>
  28. <div id="menu" style="background-color:#FFA500;height:600px;width:125px;float:right;">
  29. <b>Menu</b><br>
  30. <a href="Illaddthislater.com">How to EV Train</a><br>
  31. <a href="Illaddthislater.com">About This Site</a>
  32. </div>
  33. <div id="content" style="width:375px;height:600px;float:left;background-color:green;">
  34.  
  35. <br>
  36. <table style="width:300px;background-color:#100000;">
  37. <tr>
  38. <th><p>Attack</p></th>
  39. <th><p>Special Attack</p></th>
  40. <th><p>Defense</p></th>
  41. <th><p>Special Defense</p></th>
  42. <th><p>HP</p></th>
  43. <th><p>Speed</p></th>
  44. </tr>
  45. <tr>
  46. <th><p id="atkD">0</p></th>
  47. <th><p id="spaD">0</p></th>
  48. <th><p id="defD">0</p></th>
  49. <th><p id="spdD">0</p></th>
  50. <th><p id="hpD">0</p></th>
  51. <th><p id="speD">0</p></th>
  52. </tr>
  53. </table>
  54. <form>
  55. <p style="text-align:left;"> Attack: <input type="number" id="atk"><br>
  56. Special Attack: <input type="number" id="spa"><br>
  57. Defense: <input type="number" id="def"><br>
  58. Special Defense: <input type="number" id="spd"><br>
  59. HP: <input type="number" id="hp"><br>
  60. Speed: <input type="number" id="spe"><br>
  61. </p>
  62. </form>
  63. <button type="button" onClick="buttonClickFunc()">Submit</button>
  64. </div>
  65. <div id="footer" style="width:500px;height:40px;float:left;background-color:yellow;">
  66. <p>Jake Oakes - EV Tracker</p>
  67. </div>
  68. </div>
  69. <script>
  70. var atk = 0;
  71. var spa = 0;
  72. var def = 0;
  73. var spd = 0;
  74. var hp = 0;
  75. var spe = 0;
  76. function buttonClickFunc()
  77. {
  78. atk += document.getElementById('atk').value;
  79. spa += document.getElementById('spa').value;
  80. def += document.getElementById('def').value;
  81. spd += document.getElementById('spd').value;
  82. hp += document.getElementById('hp').value;
  83. spe += document.getElementById('spe').value;
  84. document.getElementById("atkD").innerHTML = atk;
  85. document.getElementById("spaD").innerHTML = spa;
  86. document.getElementById("defF").innerHTML = def;
  87. document.getElementById("spdD").innerHTML = spd;
  88. document.getElementById("hpD").innerHTML = hp;
  89. document.getElementById("speD").innerHTML = spe;
  90. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement