Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>calculate比例</title>
    <link rel="stylesheet" href="css/app.css">
</head>
<body>
<div class="box">
    <h1>计算比例</h1>
    <p><select name="" id="calculate">
        <option value="1">4:3</option>
        <option value="2">16:9</option>
    </select></p>
    <p><span>w:</span> <input type="text" id="width" onblur="demo2(this)"></p>
    <p><span>h:</span><input type="number" id="height" onblur="demo1(this)"></p>
</div>
</body>
<script src="js/Calculate.js"></script>
<script src="js/app.js"></script>
</html>
Output

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

Dismiss x
public
Bin info
gzwawjpro
0viewers