Created
August 14, 2014 17:56
-
-
Save piyushchauhan2011/3172b28b49e480bcd775 to your computer and use it in GitHub Desktop.
// source http://jsbin.com/jefum/1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>JS Bin</title> | |
| </head> | |
| <body> | |
| <hr> | |
| <div class="container"> | |
| <div class="row"> | |
| <div class="col-md-12"> | |
| <button class="btn btn-primary">Hello World</button> | |
| </div> | |
| </div> | |
| <div class="row"> | |
| <div class="col-xs-6">First Column</div> | |
| <div class="col-xs-6">Second Column</div> | |
| </div> | |
| </div> | |
| </body> | |
| <script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.14/require.min.js"></script> | |
| <script type="text/javascript"> | |
| requirejs.config({ | |
| paths: { | |
| 'jquery': '//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min', | |
| 'bootstrap': '//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min' | |
| }, | |
| shim: { | |
| 'bootstrap': ['jquery'] | |
| }, | |
| map: { | |
| '*': { | |
| css: '//cdnjs.cloudflare.com/ajax/libs/require-css/0.1.1/css.js' | |
| } | |
| } | |
| }); | |
| require(['jquery', 'bootstrap', 'css!//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min'], function($) { | |
| console.log("Both CSS and JavaScript are loaded"); | |
| }); | |
| </script> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment