Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en" >
- <head>
- <meta charset="UTF-8">
- <title>Weight Converter</title>
- </head>
- <body>
- <div class="container"> <!--- Container for the weight converter-->
- <div class="row">
- <div class="col-md-6 offset-md-3"> <!--- using bootstrap here for the weight converter-->
- <h1 class="display-4 text-center mb-3">Weight Converter</h1> <!--- The title of program-->
- <form> <!--- Start of the form-->
- <div class="form-group"> <!--- Define div class for the form--->
- <input id="lbsInput" type="number" class="form-control form-control-lg" placeholder="Enter Pounds..."> <!--- input for the form. Large form. --->
- </div>
- </form>
- <p id="notice"> All results are rounded off and truncated(except for metric ton, Imperial Ton, US Ton and Stone).</p>
- <div id="output"> <!--- Division for the output. --->
- <div class="card card-primary mb-2"> <!--- Grams --> <!--- Defines the kind of card to be used. --->
- <div class="card-block">
- <h4>Grams:</h4>
- <div id="gramsOutput"></div>
- </div>
- </div>
- <div class="card card-primary mb-2"> <!--- Kilograms --> <!--- Defines the kind of card to be used. --->
- <div class="card-block">
- <h4>Kilograms:</h4>
- <div id="kgOutput"></div>
- </div>
- </div>
- <div class="card card-primary mb-2"> <!--- ounces --> <!--- Defines the kind of card to be used. --->
- <div class="card-block">
- <h4>Ounces:</h4>
- <div id="ozOutput"></div>
- </div>
- </div>
- <div class="card card-primary mb-2"> <!--- Milligrams --> <!--- Defines the kind of card to be used. --->
- <div class="card-block">
- <h4>Milligrams:</h4>
- <div id="milligramsOutput"></div>
- </div>
- </div>
- <div class="card card-primary mb-2"> <!--- Metric Ton --> <!--- Defines the kind of card to be used. --->
- <div class="card-block">
- <h4>Metric Ton:</h4>
- <div id="MetricTonsOutput"></div>
- </div>
- </div>
- <div class="card card-primary mb-2"> <!--- Microgram --> <!--- Defines the kind of card to be used. --->
- <div class="card-block">
- <h4>Microgram:</h4>
- <div id="microgramoutput"></div>
- </div>
- </div>
- <div class="card card-primary mb-2"> <!--- Imperial Ton --> <!--- Defines the kind of card to be used. --->
- <div class="card-block">
- <h4>Imperial Ton:</h4>
- <div id="imperailtonoutput"></div>
- </div>
- </div>
- <div class="card card-primary mb-2"> <!--- US Ton --> <!--- Defines the kind of card to be used. --->
- <div class="card-block">
- <h4>US Ton:</h4>
- <div id="ustonoutput"></div>
- </div>
- </div>
- <div class="card card-primary mb-2"> <!--- Stone output --> <!--- Defines the kind of card to be used. --->
- <div class="card-block">
- <h4>Stone:</h4>
- <div id="Stoneoutput"></div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <script src="./script.js"></script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement