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:
@@ -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 () {
|
||||
|
Reference in New Issue
Block a user