@{
    ViewData["MainNum"] = "1";
    ViewData["SubNum"] = "1";
}

<div class="card card-success card-outline">
    <div class="card-header">
        <h3 class="card-title">
            <i class="fas fa-edit"></i>
            SweetAlert2 Examples
        </h3>
    </div>
    <div class="card-body">
        <button type="button" class="btn btn-success swalDefaultSuccess">
            Launch Success Toast
        </button>
        <button type="button" class="btn btn-info swalDefaultInfo">
            Launch Info Toast
        </button>
        <button type="button" class="btn btn-danger swalDefaultError">
            Launch Error Toast
        </button>
        <button type="button" class="btn btn-warning swalDefaultWarning">
            Launch Warning Toast
        </button>
        <div class="text-muted mt-3">
            For more examples look at <a href="https://sweetalert2.github.io/">https://sweetalert2.github.io/</a>
        </div>
    </div>
    <!-- /.card -->
</div>

@section Scripts{
    <script>
        $(function () {
            $('.swalDefaultSuccess').click(function () {
                toast_ok('Lorem ipsum dolor sit amet, consetetur sadipscing elitr.')
            });

            $('.swalDefaultInfo').click(function () {
                toast('Lorem ipsum dolor sit amet, consetetur sadipscing elitr.', 'info')
            });

            $('.swalDefaultError').click(function () {
                toast_error('Lorem ipsum dolor sit amet, consetetur sadipscing elitr.')
            });

            $('.swalDefaultWarning').click(function () {
                toast_warning('Lorem ipsum dolor sit amet, consetetur sadipscing elitr.')
            });
        })
    </script>

}
