aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZlatan Vasović <[email protected]>2014-02-07 19:31:08 +0100
committerZlatan Vasović <[email protected]>2014-02-07 19:31:08 +0100
commitbdf9ce4c45b81e62ab7ebd88a9e3daa98ecdd10c (patch)
treea6021c06e9d9f41be8aed8e8b6f92351d5ba931d
parent4d7b2ddba92e47f923d22d9d7b23cb7b0a3e0bc2 (diff)
downloadbootstrap-bdf9ce4c45b81e62ab7ebd88a9e3daa98ecdd10c.tar.xz
bootstrap-bdf9ce4c45b81e62ab7ebd88a9e3daa98ecdd10c.zip
Omit semicolons consistently in docs
-rw-r--r--docs/assets/js/customizer.js8
-rw-r--r--docs/examples/offcanvas/offcanvas.js6
-rw-r--r--docs/getting-started.html6
-rw-r--r--docs/javascript.html12
4 files changed, 16 insertions, 16 deletions
diff --git a/docs/assets/js/customizer.js b/docs/assets/js/customizer.js
index 405d87572..ecbdc8833 100644
--- a/docs/assets/js/customizer.js
+++ b/docs/assets/js/customizer.js
@@ -13,7 +13,7 @@ window.onload = function () { // wait for load in a dumb way because B-0
' * Bootstrap v3.1.0 (http://getbootstrap.com)\n' +
' * Copyright 2011-2014 Twitter, Inc.\n' +
' * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n' +
- ' */\n\n';
+ ' */\n\n'
function showError(msg, err) {
$('<div id="bsCustomizerAlert" class="bs-customizer-alert">\
@@ -40,9 +40,9 @@ window.onload = function () { // wait for load in a dumb way because B-0
}
function getQueryParam(key) {
- key = key.replace(/[*+?^$.\[\]{}()|\\\/]/g, '\\$&'); // escape RegEx meta chars
- var match = location.search.match(new RegExp('[?&]' + key + '=([^&]+)(&|$)'));
- return match && decodeURIComponent(match[1].replace(/\+/g, ' '));
+ key = key.replace(/[*+?^$.\[\]{}()|\\\/]/g, '\\$&') // escape RegEx meta chars
+ var match = location.search.match(new RegExp('[?&]' + key + '=([^&]+)(&|$)'))
+ return match && decodeURIComponent(match[1].replace(/\+/g, ' '))
}
function createGist(configJson) {
diff --git a/docs/examples/offcanvas/offcanvas.js b/docs/examples/offcanvas/offcanvas.js
index 12f2dff51..ade5751fd 100644
--- a/docs/examples/offcanvas/offcanvas.js
+++ b/docs/examples/offcanvas/offcanvas.js
@@ -1,5 +1,5 @@
-$(document).ready(function() {
- $('[data-toggle=offcanvas]').click(function() {
- $('.row-offcanvas').toggleClass('active');
+$(document).ready(function () {
+ $('[data-toggle=offcanvas]').click(function () {
+ $('.row-offcanvas').toggleClass('active')
});
}); \ No newline at end of file
diff --git a/docs/getting-started.html b/docs/getting-started.html
index f23c48f78..5831474cb 100644
--- a/docs/getting-started.html
+++ b/docs/getting-started.html
@@ -543,10 +543,10 @@ if (navigator.userAgent.match(/IEMobile\/10\.0/)) {
<p>On <code>&lt;select&gt;</code> elements, the Android stock browser will not display the side controls if there is a <code>border-radius</code> and/or <code>border</code> applied. Use the snippet of code below to remove the offending CSS and render the <code>&lt;select&gt;</code> as an unstyled element on the Android stock browser. The user agent sniffing avoids interference with Chrome, Safari, and Mozilla browsers.</p>
{% highlight html %}
<script>
-var nua = navigator.userAgent;
-var isAndroid = (nua.indexOf('Mozilla/5.0') > -1 && nua.indexOf('Android ') > -1 && nua.indexOf('AppleWebKit') > -1 && nua.indexOf('Chrome') === -1);
+var nua = navigator.userAgent
+var isAndroid = (nua.indexOf('Mozilla/5.0') > -1 && nua.indexOf('Android ') > -1 && nua.indexOf('AppleWebKit') > -1 && nua.indexOf('Chrome') === -1)
if (isAndroid) {
- $('select.form-control').removeClass('form-control').css('width', '100%');
+ $('select.form-control').removeClass('form-control').css('width', '100%')
}
</script>
{% endhighlight %}
diff --git a/docs/javascript.html b/docs/javascript.html
index 7cd9ede49..2d42da203 100644
--- a/docs/javascript.html
+++ b/docs/javascript.html
@@ -1444,10 +1444,10 @@ $('#my-alert').bind('closed.bs.alert', function () {
</button>
<script>
$('#loading-example-btn').click(function () {
- var btn = $(this);
- btn.button('loading');
+ var btn = $(this)
+ btn.button('loading')
$.ajax(...).always(function () {
- btn.button('reset');
+ btn.button('reset')
});
});
</script>
@@ -1552,10 +1552,10 @@ $('.btn').button()
<button id="loading-example-btn" type="button" class="btn btn-primary" data-loading-text="loading stuff...">...</button>
<script>
$('#loading-example-btn').click(function () {
- var btn = $(this);
- btn.button('loading');
+ var btn = $(this)
+ btn.button('loading')
$.ajax(...).always(function () {
- btn.button('reset');
+ btn.button('reset')
});
});
</script>