Commit d3fe506f authored by Mark Otto's avatar Mark Otto
Browse files

clearer js instructions on how to include plugins

parent 3055f09a
Showing with 7 additions and 1 deletion
+7 -1
...@@ -77,6 +77,7 @@ title: Bootstrap Documentation ...@@ -77,6 +77,7 @@ title: Bootstrap Documentation
<p class="lead">Make use of a super basic HTML template, or dive into a few examples we've started for you. We encourage folks to iterate on these examples and not simply use them as an end result.</p> <p class="lead">Make use of a super basic HTML template, or dive into a few examples we've started for you. We encourage folks to iterate on these examples and not simply use them as an end result.</p>
<h3>HTML template</h3> <h3>HTML template</h3>
<p>Copy and paste the HTML from below to get started with a bare bones Bootstrap document.</p>
{% highlight html linenos %} {% highlight html linenos %}
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
...@@ -88,7 +89,10 @@ title: Bootstrap Documentation ...@@ -88,7 +89,10 @@ title: Bootstrap Documentation
</head> </head>
<body> <body>
<h1>Hello, world!</h1> <h1>Hello, world!</h1>
<!-- JavaScript plugins (requires jQuery) -->
<script src="http://code.jquery.com/jquery.js"></script> <script src="http://code.jquery.com/jquery.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="js/bootstrap.min.js"></script> <script src="js/bootstrap.min.js"></script>
<!-- Optionally enable responsive features in IE8 --> <!-- Optionally enable responsive features in IE8 -->
...@@ -4501,6 +4505,8 @@ For example, <code>&lt;section&gt;</code> should be wrapped as inline. ...@@ -4501,6 +4505,8 @@ For example, <code>&lt;section&gt;</code> should be wrapped as inline.
<div class="bs-docs-section-header" id="js"> <div class="bs-docs-section-header" id="js">
<h1>JavaScript plugins</h1> <h1>JavaScript plugins</h1>
</div> </div>
...@@ -4514,7 +4520,7 @@ For example, <code>&lt;section&gt;</code> should be wrapped as inline. ...@@ -4514,7 +4520,7 @@ For example, <code>&lt;section&gt;</code> should be wrapped as inline.
</div> </div>
<h3>Individual or compiled</h3> <h3>Individual or compiled</h3>
<p>Plugins can be included individually (though some have required dependencies), or all at once. Both <strong>bootstrap.js</strong> and <strong>bootstrap.min.js</strong> contain all plugins in a single file.</p> <p>Plugins can be included individually (though some have required dependencies), or all at once. <strong>Do attempt to include both.</strong> Both <strong>bootstrap.js</strong> and <strong>bootstrap.min.js</strong> contain all plugins in a single file.</p>
<h3>Data attributes</h3> <h3>Data attributes</h3>
<p>You can use all Bootstrap plugins purely through the markup API without writing a single line of JavaScript. This is Bootstrap's first class API and should be your first consideration when using a plugin.</p> <p>You can use all Bootstrap plugins purely through the markup API without writing a single line of JavaScript. This is Bootstrap's first class API and should be your first consideration when using a plugin.</p>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment