source: resources/assets/js/examples/toast.js@ 7304c7f

develop
Last change on this file since 7304c7f was 7304c7f, checked in by beratkjufliju <kufliju@…>, 3 years ago

added user authentication, create & forgot password methods and blades

  • Property mode set to 100644
File size: 881 bytes
Line 
1'use strict';
2$(document).ready(function () {
3
4 var doc = $(document);
5
6 toastr.options = {
7 timeOut: 3000,
8 progressBar: true,
9 showMethod: "slideDown",
10 hideMethod: "slideUp",
11 showDuration: 200,
12 hideDuration: 200
13 };
14
15 doc.on('click', '.toastr-examples a.btn-success', function () {
16 toastr.success('Successfully completed');
17 return false;
18 });
19
20 doc.on('click', '.toastr-examples a.btn-danger', function () {
21 toastr.error('Something went wrong');
22 return false;
23 });
24
25 doc.on('click', '.toastr-examples a.btn-info', function () {
26 toastr.info('This is an informational message');
27 return false;
28 });
29
30 doc.on('click', '.toastr-examples a.btn-warning', function () {
31 toastr.warning('You are currently not authorized');
32 return false;
33 });
34
35});
Note: See TracBrowser for help on using the repository browser.