mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2024-11-10 19:57:13 +03:00
docs: Fixed SnackbarJS docs (fix #1231)
This commit is contained in:
parent
a9a81b8560
commit
527c7eec39
|
@ -21,6 +21,7 @@
|
|||
<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>
|
||||
<script src="{{ site.cdn.snackbar }}" crossorigin="anonymous"></script>
|
||||
{% if site.github %}
|
||||
<script src="{{ site.baseurl }}/dist/js/bootstrap-material-design.min.js"></script>
|
||||
{% else %}
|
||||
|
|
|
@ -16,12 +16,13 @@ Snackbars and toasts can be created using the [SnackbarJS](https://github.com/Fe
|
|||
In order to make snackbars work, make sure to include `snackbar.min.js` before `bootstrap-material-design.min.js`.
|
||||
|
||||
{% highlight html %}
|
||||
<script src="{{ site.data.cdn.jquery }}"></script>
|
||||
<script src="{{ site.data.cdn.popper }}"></script>
|
||||
<script src="{{ site.data.cdn.snackbar }}"></script>
|
||||
<script src="{{ site.data.cdn.js }}"></script>
|
||||
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
|
||||
<script src="{{ site.data.cdn['ie10-viewport-bug-workaround'] }}"></script>
|
||||
<script src="{{ site.cdn.jquery }}" integrity="{{ site.cdn.jquery_hash }}" crossorigin="anonymous"></script>
|
||||
<script src="{{ site.cdn.popper }}" integrity="{{ site.cdn.popper_hash }}" crossorigin="anonymous"></script>
|
||||
|
||||
<!-- SnackbarJS plugin -->
|
||||
<script src="{{ site.cdn.snackbar }}"></script>
|
||||
|
||||
<script src="{{ site.cdn.js }}" integrity="{{ site.cdn.js_hash }}" crossorigin="anonymous"></script>
|
||||
<script>
|
||||
$('body').bootstrapMaterialDesign();
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue
Block a user