Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script class="jsbin" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
<!--[if IE]>
  <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<style>
  article, aside, figure, footer, header, hgroup, 
  menu, nav, section { display: block; }
.ccjs-active  {
    width: 100px;
    height: 100px;
    background: black;
}
</style>
</head>
<body>
  <a class="ccjs-csc-diagram-wrapper">Show Overlay</a>
</body>
</html>
 
var global = {
    init: function() {
        $(".ccjs-csc-diagram-wrapper").bind("click", this.pageLoadingOverlay);
    },
    pageLoadingOverlay : function(event) {
        var body = document.getElementsByTagName("body");
        var ccjs-active = document.createElement("div");
        ccjs-active.id = ".ccjs-active";
        body[0].appendChild(ccjs-active);
        setTimeout(function() {
            $('.ccjs-active').remove();
        }, 1000);
    }
};
global.init();
Output

This bin was created anonymously and its free preview time has expired (learn why). — Get a free unrestricted account

Dismiss x
public
Bin info
anonymouspro
0viewers