Guest User

tempertuur convertor

a guest
Jan 18th, 2018
59
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <html>
  3.  
  4. <head>
  5.     <meta charset="utf-8">
  6.     <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7.     <title></title>
  8.     <link rel="stylesheet" href="main.css">
  9. </head>
  10.  
  11. <script>
  12.     function ConvertKPHToKnots(valNum) {
  13.         valNum = parseFloat(valNum);
  14.         document.getElementById("outputKnots").innerHTML = valNum / 1.852;
  15.     }
  16. </script>
  17.  
  18. <body>
  19.     <p>
  20.         <a href="https://projects.vincentlammens.be">Terug</a>
  21.     </p>
  22.     <h1>Snelheidconverter</h1>
  23.     <h3>KPH to Knots</h3>
  24.     <p>
  25.         <label>KPH to Knots</label>
  26.         <input id="inputKPH" type="number" placeholder="KPH" oninput="ConvertKPHToKnots(this.value)" onchange="ConvertKPHToKnots(this.value)">
  27.     </p>
  28.     <p>Knots:
  29.         <span id="outputKnots"></span>
  30.     </p>
  31.  
  32. </body>
  33.  
  34. </html>
RAW Paste Data