Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.36 KB | None | 0 0
  1. <!DOCTYPE html>
  2.  
  3. <html lang="en" >
  4.  
  5. <head>
  6. <meta charset="UTF-8">
  7. <title>Weight Converter</title>
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14. </head>
  15.  
  16. <body>
  17.  
  18. <div class="container"> <!--- Container for the weight converter-->
  19. <div class="row">
  20. <div class="col-md-6 offset-md-3"> <!--- using bootstrap here for the weight converter-->
  21. <h1 class="display-4 text-center mb-3">Weight Converter</h1> <!--- The title of program-->
  22.  
  23. <form> <!--- Start of the form-->
  24. <div class="form-group"> <!--- Define div class for the form--->
  25. <input id="lbsInput" type="number" class="form-control form-control-lg" placeholder="Enter Pounds..."> <!--- input for the form. Large form. --->
  26. </div>
  27.  
  28. </form>
  29. <p id="notice"> All results are rounded off and truncated(except for metric ton, Imperial Ton, US Ton and Stone).</p>
  30.  
  31. <div id="output"> <!--- Division for the output. --->
  32.  
  33. <div class="card card-primary mb-2"> <!--- Grams --> <!--- Defines the kind of card to be used. --->
  34. <div class="card-block">
  35. <h4>Grams:</h4>
  36. <div id="gramsOutput"></div>
  37. </div>
  38. </div>
  39.  
  40. <div class="card card-primary mb-2"> <!--- Kilograms --> <!--- Defines the kind of card to be used. --->
  41. <div class="card-block">
  42. <h4>Kilograms:</h4>
  43. <div id="kgOutput"></div>
  44. </div>
  45. </div>
  46.  
  47. <div class="card card-primary mb-2"> <!--- ounces --> <!--- Defines the kind of card to be used. --->
  48. <div class="card-block">
  49. <h4>Ounces:</h4>
  50. <div id="ozOutput"></div>
  51. </div>
  52. </div>
  53.  
  54. <div class="card card-primary mb-2"> <!--- Milligrams --> <!--- Defines the kind of card to be used. --->
  55. <div class="card-block">
  56. <h4>Milligrams:</h4>
  57. <div id="milligramsOutput"></div>
  58. </div>
  59. </div>
  60.  
  61.  
  62.  
  63. <div class="card card-primary mb-2"> <!--- Metric Ton --> <!--- Defines the kind of card to be used. --->
  64. <div class="card-block">
  65. <h4>Metric Ton:</h4>
  66. <div id="MetricTonsOutput"></div>
  67. </div>
  68. </div>
  69.  
  70. <div class="card card-primary mb-2"> <!--- Microgram --> <!--- Defines the kind of card to be used. --->
  71. <div class="card-block">
  72. <h4>Microgram:</h4>
  73. <div id="microgramoutput"></div>
  74. </div>
  75. </div>
  76.  
  77.  
  78.  
  79.  
  80. <div class="card card-primary mb-2"> <!--- Imperial Ton --> <!--- Defines the kind of card to be used. --->
  81. <div class="card-block">
  82. <h4>Imperial Ton:</h4>
  83. <div id="imperailtonoutput"></div>
  84. </div>
  85. </div>
  86.  
  87.  
  88.  
  89. <div class="card card-primary mb-2"> <!--- US Ton --> <!--- Defines the kind of card to be used. --->
  90. <div class="card-block">
  91. <h4>US Ton:</h4>
  92. <div id="ustonoutput"></div>
  93. </div>
  94. </div>
  95.  
  96. <div class="card card-primary mb-2"> <!--- Stone output --> <!--- Defines the kind of card to be used. --->
  97. <div class="card-block">
  98. <h4>Stone:</h4>
  99. <div id="Stoneoutput"></div>
  100. </div>
  101. </div>
  102.  
  103. </div>
  104. </div>
  105. </div>
  106. </div>
  107.  
  108.  
  109.  
  110. <script src="./script.js"></script>
  111.  
  112.  
  113.  
  114.  
  115. </body>
  116.  
  117. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement