mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-12 08:34:08 +02:00
Remove holder.js.
This commit is contained in:
@@ -25,9 +25,6 @@ childProcess.exec('java -version', (error, stdout, stderr) => {
|
|||||||
// Firefox's non-standard autocomplete behavior - see https://bugzilla.mozilla.org/show_bug.cgi?id=654072
|
// Firefox's non-standard autocomplete behavior - see https://bugzilla.mozilla.org/show_bug.cgi?id=654072
|
||||||
'Attribute “autocomplete” is only allowed when the input type is.*',
|
'Attribute “autocomplete” is only allowed when the input type is.*',
|
||||||
'Attribute “autocomplete” not allowed on element “button” at this point.',
|
'Attribute “autocomplete” not allowed on element “button” at this point.',
|
||||||
// We use holder.js with `data-src` and no `src` to avoid 404 errors;
|
|
||||||
// we could work around this, but I'm not sure it's worth it.
|
|
||||||
'Element “img” is missing required attribute “src”.',
|
|
||||||
// Markup used in Components → Forms → Layout → Form grid → Horizontal form is currently invalid,
|
// Markup used in Components → Forms → Layout → Form grid → Horizontal form is currently invalid,
|
||||||
// but used this way due to lack of support for flexbox layout on <fieldset> element in most browsers
|
// but used this way due to lack of support for flexbox layout on <fieldset> element in most browsers
|
||||||
'Element “legend” not allowed as child of element “div” in this context.*',
|
'Element “legend” not allowed as child of element “div” in this context.*',
|
||||||
|
@@ -28,7 +28,7 @@
|
|||||||
<div class="notifications">
|
<div class="notifications">
|
||||||
<div id="toastAutoHide" class="toast" role="alert" aria-live="assertive" aria-atomic="true" data-delay="2000">
|
<div id="toastAutoHide" class="toast" role="alert" aria-live="assertive" aria-atomic="true" data-delay="2000">
|
||||||
<div class="toast-header">
|
<div class="toast-header">
|
||||||
<img class="rounded mr-2" data-src="holder.js/20x20?size=1&text=.&bg=#007aff" alt="">
|
<span class="d-block bg-primary rounded mr-2" style="width: 20px; height: 20px;"></span>
|
||||||
<strong class="mr-auto">Bootstrap</strong>
|
<strong class="mr-auto">Bootstrap</strong>
|
||||||
<small>11 mins ago</small>
|
<small>11 mins ago</small>
|
||||||
</div>
|
</div>
|
||||||
@@ -39,7 +39,7 @@
|
|||||||
|
|
||||||
<div class="toast" data-autohide="false" role="alert" aria-live="assertive" aria-atomic="true">
|
<div class="toast" data-autohide="false" role="alert" aria-live="assertive" aria-atomic="true">
|
||||||
<div class="toast-header">
|
<div class="toast-header">
|
||||||
<img class="rounded mr-2" data-src="holder.js/20x20?size=1&text=.&bg=#007aff" alt="">
|
<span class="d-block bg-primary rounded mr-2" style="width: 20px; height: 20px;"></span>
|
||||||
<strong class="mr-auto">Bootstrap</strong>
|
<strong class="mr-auto">Bootstrap</strong>
|
||||||
<small class="text-muted">2 seconds ago</small>
|
<small class="text-muted">2 seconds ago</small>
|
||||||
<button type="button" class="ml-2 mb-1 close" data-dismiss="toast" aria-label="Close">
|
<button type="button" class="ml-2 mb-1 close" data-dismiss="toast" aria-label="Close">
|
||||||
|
@@ -56,7 +56,7 @@
|
|||||||
"js-minify-main": "npm-run-all js-minify-standalone js-minify-bundle",
|
"js-minify-main": "npm-run-all js-minify-standalone js-minify-bundle",
|
||||||
"js-minify-standalone": "uglifyjs --compress typeofs=false --mangle --comments \"/^!/\" --source-map \"content=dist/js/bootstrap.js.map,includeSources,url=bootstrap.min.js.map\" --output dist/js/bootstrap.min.js dist/js/bootstrap.js",
|
"js-minify-standalone": "uglifyjs --compress typeofs=false --mangle --comments \"/^!/\" --source-map \"content=dist/js/bootstrap.js.map,includeSources,url=bootstrap.min.js.map\" --output dist/js/bootstrap.min.js dist/js/bootstrap.js",
|
||||||
"js-minify-bundle": "uglifyjs --compress typeofs=false --mangle --comments \"/^!/\" --source-map \"content=dist/js/bootstrap.bundle.js.map,includeSources,url=bootstrap.bundle.min.js.map\" --output dist/js/bootstrap.bundle.min.js dist/js/bootstrap.bundle.js",
|
"js-minify-bundle": "uglifyjs --compress typeofs=false --mangle --comments \"/^!/\" --source-map \"content=dist/js/bootstrap.bundle.js.map,includeSources,url=bootstrap.bundle.min.js.map\" --output dist/js/bootstrap.bundle.min.js dist/js/bootstrap.bundle.js",
|
||||||
"js-minify-docs": "cross-env-shell uglifyjs --mangle --comments \\\"/^!/\\\" --output site/docs/$npm_package_version_short/assets/js/docs.min.js site/docs/$npm_package_version_short/assets/js/vendor/clipboard.min.js site/docs/$npm_package_version_short/assets/js/vendor/holder.min.js site/docs/$npm_package_version_short/assets/js/vendor/bs-custom-file-input.min.js \"site/docs/$npm_package_version_short/assets/js/src/*.js\"",
|
"js-minify-docs": "cross-env-shell uglifyjs --mangle --comments \\\"/^!/\\\" --output site/docs/$npm_package_version_short/assets/js/docs.min.js site/docs/$npm_package_version_short/assets/js/vendor/clipboard.min.js site/docs/$npm_package_version_short/assets/js/vendor/bs-custom-file-input.min.js \"site/docs/$npm_package_version_short/assets/js/src/*.js\"",
|
||||||
"js-test": "npm-run-all js-test-karma*",
|
"js-test": "npm-run-all js-test-karma*",
|
||||||
"js-test-karma": "karma start js/tests/karma.conf.js",
|
"js-test-karma": "karma start js/tests/karma.conf.js",
|
||||||
"js-test-karma-old": "cross-env USE_OLD_JQUERY=true npm run js-test-karma",
|
"js-test-karma-old": "cross-env USE_OLD_JQUERY=true npm run js-test-karma",
|
||||||
|
@@ -15,7 +15,6 @@
|
|||||||
<script src="{{ site.baseurl }}/docs/{{ site.docs_version }}/assets/js/docs.min.js"></script>
|
<script src="{{ site.baseurl }}/docs/{{ site.docs_version }}/assets/js/docs.min.js"></script>
|
||||||
{%- else -%}
|
{%- else -%}
|
||||||
<script src="{{ site.baseurl }}/docs/{{ site.docs_version }}/assets/js/vendor/clipboard.min.js"></script>
|
<script src="{{ site.baseurl }}/docs/{{ site.docs_version }}/assets/js/vendor/clipboard.min.js"></script>
|
||||||
<script src="{{ site.baseurl }}/docs/{{ site.docs_version }}/assets/js/vendor/holder.min.js"></script>
|
|
||||||
<script src="{{ site.baseurl }}/docs/{{ site.docs_version }}/assets/js/vendor/bs-custom-file-input.min.js"></script>
|
<script src="{{ site.baseurl }}/docs/{{ site.docs_version }}/assets/js/vendor/bs-custom-file-input.min.js"></script>
|
||||||
<script src="{{ site.baseurl }}/docs/{{ site.docs_version }}/assets/js/src/application.js"></script>
|
<script src="{{ site.baseurl }}/docs/{{ site.docs_version }}/assets/js/src/application.js"></script>
|
||||||
<script src="{{ site.baseurl }}/docs/{{ site.docs_version }}/assets/js/src/search.js"></script>
|
<script src="{{ site.baseurl }}/docs/{{ site.docs_version }}/assets/js/src/search.js"></script>
|
||||||
|
@@ -41,10 +41,6 @@
|
|||||||
<script src="{{ site.baseurl }}/docs/{{ site.docs_version }}/dist/js/bootstrap.bundle.js"></script>
|
<script src="{{ site.baseurl }}/docs/{{ site.docs_version }}/dist/js/bootstrap.bundle.js"></script>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
||||||
{%- if page.include_holder == true -%}
|
|
||||||
<script src="{{ site.baseurl }}/docs/{{ site.docs_version }}/assets/js/vendor/holder.min.js"></script>
|
|
||||||
{%- endif -%}
|
|
||||||
|
|
||||||
{%- for js in page.extra_js %}
|
{%- for js in page.extra_js %}
|
||||||
<script src="{{ js }}"></script>
|
<script src="{{ js }}"></script>
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
|
@@ -10,7 +10,7 @@
|
|||||||
* details, see https://creativecommons.org/licenses/by/3.0/.
|
* details, see https://creativecommons.org/licenses/by/3.0/.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* global ClipboardJS: false, Holder: false, bsCustomFileInput: false */
|
/* global ClipboardJS: false, bsCustomFileInput: false */
|
||||||
|
|
||||||
(function ($) {
|
(function ($) {
|
||||||
'use strict'
|
'use strict'
|
||||||
@@ -103,14 +103,6 @@
|
|||||||
|
|
||||||
$('.bd-content > h2, .bd-content > h3, .bd-content > h4, .bd-content > h5').wrapInner('<div></div>')
|
$('.bd-content > h2, .bd-content > h3, .bd-content > h4, .bd-content > h5').wrapInner('<div></div>')
|
||||||
|
|
||||||
// Holder
|
|
||||||
Holder.addTheme('gray', {
|
|
||||||
bg: '#777',
|
|
||||||
fg: 'rgba(255,255,255,.75)',
|
|
||||||
font: 'Helvetica',
|
|
||||||
fontweight: 'normal'
|
|
||||||
})
|
|
||||||
|
|
||||||
bsCustomFileInput.init()
|
bsCustomFileInput.init()
|
||||||
})
|
})
|
||||||
}(jQuery))
|
}(jQuery))
|
||||||
|
13
site/docs/4.1/assets/js/vendor/holder.min.js
vendored
13
site/docs/4.1/assets/js/vendor/holder.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user