daily pastebin goal
17%
SHARE
TWEET

Untitled

a guest May 16th, 2018 96 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <html>
  2.     <body>
  3.         <script>
  4.             function go() {
  5.                 var a = document.getElementById("a").value;
  6.                 var b = document.getElementById("b").value;
  7.                 var result = "Twoje bmi to: " + a*b + " dddd. ";
  8.                 if (a*b<100) {
  9.                     result += "Jestes tlusta swinia. ogarnij dupe";
  10.                 } else if (a*b>=100 && a*b<200) {
  11.                     result += "Lubie w dupe.";
  12.                 } else {
  13.                     result += "JP2GMD";
  14.                 }
  15.                 document.getElementById("result").innerHTML = result;
  16.             }
  17.         </script>
  18.         <input type="text" id="a">
  19.         <input type="text" id="b">
  20.         <button onclick="go()">Click me</button>
  21.         <div id="result" style="border: 1px solid black; padding:10px;">Tu bedzie wynik dzialania</div>
  22.     </body>
  23. </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