G2A Many GEOs
SHARE
TWEET

Untitled

a guest Mar 28th, 2020 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Kрамарь
  2.  
  3. <!DOCTYPE html>
  4. <html><head>
  5. <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  6.     <meta charset="utf-8">
  7.     <style>
  8.         input {
  9.             width: 100px;
  10.         }
  11.     </style>
  12.     <script>
  13.         //+ здесь самый удобный вариант - так как числа могут быть как int так и float.
  14.         function go(){
  15.             var input1 = +document.getElementById('input1').value;
  16.             var input2 = +document.getElementById('input2').value;
  17.             var result = document.getElementById('result');
  18.             result.innerHTML = input1 + input2;
  19.         }
  20.     </script>
  21. </head>
  22. <body>
  23.     <input type="text" id="input1">
  24.     +
  25.     <input type="text" id="input2">
  26.     =
  27.     <span id="result">?</span>
  28.     <br>
  29.     <br>
  30.     <button onclick="go()">Нажмите чтобы сложить</button>
  31.  
  32. </body>
  33. </html>
RAW Paste Data
Ledger Nano X - The secure hardware wallet
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