1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-16 10:34:07 +02:00

Fix toast documentation page.

This commit is contained in:
Johann-S
2018-08-23 21:06:35 +02:00
committed by XhmikosR
parent 16cf76ff1a
commit 2f81ab007c
3 changed files with 134 additions and 1 deletions

View File

@@ -26,7 +26,7 @@
</div>
<div class="notifications">
<div class="toast" data-delay='{"show": 0, "hide": 2000}'>
<div id="toastAutoHide" class="toast">
<div class="toast-header">
<img class="rounded mr-2" data-src="holder.js/20x20?size=1&text=.&bg=#007aff" alt="">
<strong class="mr-auto">Bootstrap</strong>
@@ -54,6 +54,10 @@
<script src="../../dist/toast.js"></script>
<script>
$(function () {
$('#toastAutoHide').attr('data-delay', JSON.stringify({
show: 0,
hide: 2000
}))
$('.toast').toast()
$('#btnShowToast').on('click', function () {