diff options
| author | Mark Otto <[email protected]> | 2017-01-05 14:53:08 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2017-01-05 14:53:08 -0800 |
| commit | 0c12ccbeb6fdf0dd3818f97260aa43c79108d377 (patch) | |
| tree | 0c0c0636c91c6ebed1b04dbe21bd00370761c501 /docs/assets/js/src/application.js | |
| parent | 5d7db507396275fcda96935aff47b09e1d79ddc1 (diff) | |
| parent | 43d9391fba015f13f06f3af4dc6f5a8205cb548b (diff) | |
| download | bootstrap-0c12ccbeb6fdf0dd3818f97260aa43c79108d377.tar.xz bootstrap-0c12ccbeb6fdf0dd3818f97260aa43c79108d377.zip | |
Merge branch 'v4-dev' into v4-docs-streamlined
Diffstat (limited to 'docs/assets/js/src/application.js')
| -rw-r--r-- | docs/assets/js/src/application.js | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/docs/assets/js/src/application.js b/docs/assets/js/src/application.js index 529b0c1b8..2b53556b1 100644 --- a/docs/assets/js/src/application.js +++ b/docs/assets/js/src/application.js @@ -4,16 +4,16 @@ /*! * JavaScript for Bootstrap's docs (https://getbootstrap.com) - * Copyright 2011-2016 The Bootstrap Authors - * Copyright 2011-2016 Twitter, Inc. + * Copyright 2011-2017 The Bootstrap Authors + * Copyright 2011-2017 Twitter, Inc. * Licensed under the Creative Commons Attribution 3.0 Unported License. For * details, see https://creativecommons.org/licenses/by/3.0/. */ /* global Clipboard, anchors */ -!function ($) { - 'use strict'; +(function ($) { + 'use strict' $(function () { @@ -48,6 +48,11 @@ $modal.find('.modal-body input').val(recipient) }) + // Activate animated progress bar + $('.bd-toggle-animated-progress').on('click', function () { + $(this).siblings('.progress').find('.progress-bar-striped').toggleClass('progress-bar-animated') + }) + // Insert copy to clipboard button before .highlight $('.highlight').each(function () { var btnHtml = '<div class="bd-clipboard"><span class="btn-clipboard" title="Copy to clipboard">Copy</span></div>' @@ -86,11 +91,11 @@ }) -}(jQuery) +}(jQuery)) ;(function () { - 'use strict'; + 'use strict' - anchors.options.placement = 'left'; + anchors.options.placement = 'left' anchors.add('.bd-content > h1, .bd-content > h2, .bd-content > h3, .bd-content > h4, .bd-content > h5') -})(); +}()) |
