Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="//code.jquery.com/jquery.min.js"></script>
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
<div class="" id="first-div">
    <!-- Default panel contents -->
    <div class="alert alert-success" role="alert">Example for a Disabled Page.</div>
    <form>
        <div class="form-group">
            <label for="exampleInputEmail1">Email address</label>
            <input type="email" class="form-control" id="exampleInputEmail1" placeholder="Enter email">
        </div>
        <div class="form-group">
            <label for="exampleInputPassword1">Password</label>
            <input type="password" class="form-control" id="exampleInputPassword1" placeholder="Password">
        </div>
        <div class="form-group">
            <label for="exampleInputFile">File input</label>
            <input type="file" id="exampleInputFile">
            <p class="help-block">Example block-level help text here.</p>
        </div>
        <div class="checkbox">
            <label>
                <input type="checkbox">Check me out</label>
        </div>
        <button type="submit" class="btn btn-default">Submit</button>
    </form>
</div>
</div>
</body>
</html>
 
jQuery(document).ready(function () {
    $("#first-div").prepend("<div class=\"overlay-example\"></div>");
    var height1 = $("#first-div").height();
    var width1 = $("#first-div").width();
    $(".overlay-example").css({
        "background-color": "black",
            "z-index": "9999999",
            "position": "absolute",
            "width": width1,
            "height": height1,
            "display": "none"
    }).fadeTo(0, 0.0001);
});
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers