jquery links

This commit is contained in:
Mark Otto 2014-07-10 10:23:15 -07:00
parent 35c90fe13d
commit 57c709becd
2 changed files with 4 additions and 3 deletions

View File

@ -31,3 +31,4 @@ cdn:
css: //maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css
css_theme: //maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css
js: //maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js
jquery: //code.jquery.com/jquery-2.1.1.min.js

View File

@ -8,10 +8,10 @@ Quickly add Bootstrap to your project via the [Bootstrap CDN](http://bootstrapcd
<link rel="stylesheet" href="{{ site.cdn.css }}">
{% endhighlight %}
Then, add the Bootstrap JavaScript—and jQuery—near the end of your project. It's best placed right before the closing `</body>` tag. Be sure to place jQuery first.
Then, add the Bootstrap JavaScript—and jQuery—near the end of your pages. It's best placed right before the closing `</body>` tag. Be sure to place jQuery first as our code depends on it.
{% highlight html %}
<script src="">jQuery</script>
<script src="{{ site.cdn.jquery }}"></script>
<script src="{{ site.cdn.js }}"></script>
{% endhighlight %}
@ -34,7 +34,7 @@ Put it all together and your pages should look like this:
<body>
<h1>Hello, world!</h1>
<script src="">jQuery</script>
<script src="{{ site.cdn.jquery }}"></script>
<script src="{{ site.cdn.js }}"></script>
</body>
</html>