We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c466e5 commit 935c7ffCopy full SHA for 935c7ff
src/pages/index.astro
@@ -293,4 +293,17 @@ import Form from "../components/Form.astro";
293
<div class="card" style="margin: 6rem;">
294
<div class="card-body"><Form /></div>
295
</div>
296
+
297
+ <script is:inline>
298
+ const toastTrigger = document.getElementById("liveToastBtn");
299
+ const toastLiveExample = document.getElementById("liveToast");
300
301
+ if (toastTrigger) {
302
+ const toastBootstrap =
303
+ bootstrap.Toast.getOrCreateInstance(toastLiveExample);
304
+ toastTrigger.addEventListener("click", () => {
305
+ toastBootstrap.show();
306
+ });
307
+ }
308
+ </script>
309
</Bootstrap>
0 commit comments