'use strict';
$(document).ready(function () {

    var doc = $(document);

    toastr.options = {
        timeOut: 3000,
        positionClass: "toast-center-center",//弹出窗的位置
        progressBar: true,
        showMethod: "slideDown",
        hideMethod: "slideUp",
        showDuration: 200,
        hideDuration: 200
    };

    doc.on('click', '.toastr-examples a.btn-success', function () {
        toastr.success('Successfully completed');
        return false;
    });

    doc.on('click', '.toastr-examples a.btn-danger', function () {
        toastr.error('Something went wrong');
        return false;
    });

    doc.on('click', '.toastr-examples a.btn-info', function () {
        toastr.info('This is an informational message');
        return false;
    });

    doc.on('click', '.toastr-examples a.btn-warning', function () {
        toastr.warning('You are currently not authorized');
        return false;
    });

});