diff --git a/docs/assets/js/customizer.js b/docs/assets/js/customizer.js index 405d875723..ecbdc88338 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) { $('
\ @@ -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 12f2dff51d..ade5751fdb 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 f23c48f78b..5831474cb6 100644 --- a/docs/getting-started.html +++ b/docs/getting-started.html @@ -543,10 +543,10 @@ if (navigator.userAgent.match(/IEMobile\/10\.0/)) {

On <select> elements, the Android stock browser will not display the side controls if there is a border-radius and/or border applied. Use the snippet of code below to remove the offending CSS and render the <select> as an unstyled element on the Android stock browser. The user agent sniffing avoids interference with Chrome, Safari, and Mozilla browsers.

{% highlight html %} {% endhighlight %} diff --git a/docs/javascript.html b/docs/javascript.html index 7cd9ede49a..2d42da2034 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -1444,10 +1444,10 @@ $('#my-alert').bind('closed.bs.alert', function () { @@ -1552,10 +1552,10 @@ $('.btn').button()