Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
  <table>
    <tbody>
      <tr>
        <td><label for="user">Name:</label></td>
        <td><input type="text" name="" id="user"></td>
      </tr>
      <tr>
        <td><label for="serial">Serial:</label></td>
        <td><input type="text" name="" id="serial"></td>
      </tr>
    </tbody>
  </table>
</body>
</html>
 
(function (text, result) {
    var serial = function (name) {
        var result = name.length * 32;
        for (var i = 0; i < name.length; i++)
            result += name.charCodeAt(i) * 32;
        return result;
    };
    text.onkeyup = function () {
        result.value = serial(text.value);
    };
})(user, serial);
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers