Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <script src="//cdnjs.cloudflare.com/ajax/libs/require.js/2.1.8/require.js"></script>
  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
  
  <input id="display" type="text"></input>
</body>
</html>
 
require.config({
  paths: {
    # dummy path for demo
    'jquery': 'http://davidwesst.com' 
  }
  shim: {
    # This is a sample of defining dependencies
    "bootstrap": {
      deps: "jquery"
      exports: "Bootstrap"
    }
  }
})
require ["jquery"], ( $ )->
  console.log( $ )
  $("body").html("Hello with jQuery!")
Output

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

Dismiss x