2017-05-29 19:52:13 +02:00
|
|
|
<script src="{{ site.cdn.jquery }}" integrity="{{ site.cdn.jquery_hash }}" crossorigin="anonymous"></script>
|
|
|
|
<script>window.jQuery || document.write('<script src="{{ site.baseurl }}/assets/js/vendor/jquery-slim.min.js"><\/script>')</script>
|
|
|
|
|
|
|
|
<script src="{{ site.baseurl }}/assets/js/vendor/popper.min.js"></script>
|
|
|
|
|
2017-10-22 13:53:06 +02:00
|
|
|
{%- if site.github -%}
|
2017-05-29 19:52:13 +02:00
|
|
|
<script src="{{ site.baseurl }}/dist/js/bootstrap.min.js"></script>
|
2017-10-22 13:53:06 +02:00
|
|
|
{%- else -%}
|
2017-05-29 19:52:13 +02:00
|
|
|
<script src="{{ site.baseurl }}/dist/js/bootstrap.js"></script>
|
2017-10-22 13:53:06 +02:00
|
|
|
{%- endif -%}
|
2017-05-29 19:52:13 +02:00
|
|
|
|
2017-10-22 13:53:06 +02:00
|
|
|
{%- if site.github -%}
|
2017-05-29 19:52:13 +02:00
|
|
|
<script src="{{ site.baseurl }}/assets/js/docs.min.js"></script>
|
2017-10-22 13:53:06 +02:00
|
|
|
{%- else -%}
|
2017-05-29 19:52:13 +02:00
|
|
|
<script src="{{ site.baseurl }}/assets/js/vendor/anchor.min.js"></script>
|
|
|
|
<script src="{{ site.baseurl }}/assets/js/vendor/clipboard.min.js"></script>
|
|
|
|
<script src="{{ site.baseurl }}/assets/js/vendor/holder.min.js"></script>
|
|
|
|
<script src="{{ site.baseurl }}/assets/js/src/application.js"></script>
|
2017-11-19 13:30:10 +01:00
|
|
|
<script src="{{ site.baseurl }}/assets/js/src/ie-emulation-modes-warning.js"></script>
|
2017-07-16 15:54:09 +02:00
|
|
|
<script src="{{ site.baseurl }}/assets/js/src/pwa.js"></script>
|
2017-10-22 13:53:06 +02:00
|
|
|
{%- endif -%}
|
2017-05-29 19:52:13 +02:00
|
|
|
|
2017-10-22 13:53:06 +02:00
|
|
|
{%- if page.layout == "docs" -%}
|
2017-10-30 23:54:36 +01:00
|
|
|
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
|
2017-08-11 16:29:25 +02:00
|
|
|
<script>
|
2017-09-26 17:22:53 +02:00
|
|
|
docsearch({
|
2017-05-29 19:52:13 +02:00
|
|
|
apiKey: '48cb48b22351bc71ea5f12f4d1ede198',
|
|
|
|
indexName: 'bootstrap-v4',
|
|
|
|
inputSelector: '#search-input',
|
2017-07-08 22:02:13 +02:00
|
|
|
handleSelected: function (input, event, suggestion) {
|
|
|
|
var url = suggestion.url;
|
|
|
|
url = suggestion.isLvl1 ? url.split('#')[0]: url;
|
|
|
|
// If it's a title we remove the anchor so it does not jump.
|
|
|
|
window.location.href = url;
|
|
|
|
},
|
2017-05-29 19:52:13 +02:00
|
|
|
transformData: function (hits) {
|
|
|
|
return hits.map(function (hit) {
|
2017-06-01 08:11:06 +02:00
|
|
|
hit.url = hit.url.replace('https://v4-alpha.getbootstrap.com', '/docs/4.0');
|
2017-05-29 19:52:13 +02:00
|
|
|
return hit;
|
|
|
|
});
|
|
|
|
},
|
|
|
|
debug: false // Set debug to true if you want to inspect the dropdown
|
|
|
|
});
|
|
|
|
</script>
|
2017-10-22 13:53:06 +02:00
|
|
|
{%- endif -%}
|
2017-05-29 19:52:13 +02:00
|
|
|
|
|
|
|
<script>
|
2017-09-26 17:22:53 +02:00
|
|
|
Holder.addTheme('gray', {
|
|
|
|
bg: '#777',
|
|
|
|
fg: 'rgba(255,255,255,.75)',
|
|
|
|
font: 'Helvetica',
|
|
|
|
fontweight: 'normal'
|
|
|
|
});
|
2017-05-29 19:52:13 +02:00
|
|
|
</script>
|