             var toast = Toast.getInstance(toastNode)
                toast.show()
              })
          })

          document.getElementById('btnHideToast').addEventListener('click', function () {
            Array.from(document.querySelectorAll('.toast'))
              .forEach(function (toastNode) {
                var toast = Toast.getInstance(toastNode)
                toast.hide()
              })
          })
      })
    </script>
  </body>
</html>
