| Total Complexity | 5 |
| Complexity/F | 1.25 |
| Lines of Code | 19 |
| Function Count | 4 |
| Duplicated Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | $(document).ready(function() { |
||
| 2 | var alert = $('.module-flashmessage'); |
||
| 3 | |||
| 4 | if (alert.length > 0) { |
||
| 5 | alert.hide().slideDown(500); |
||
| 6 | |||
| 7 | alert.click(function() { |
||
| 8 | $(this).slideUp(); |
||
| 9 | }); |
||
| 10 | |||
| 11 | setTimeout(function() { |
||
| 12 | $(".module-flashmessage").slideUp(); |
||
| 13 | }, 10000); |
||
| 14 | |||
| 15 | setTimeout(function() { |
||
| 16 | $(".module-flashmessage").remove(); |
||
| 17 | }, 12000) |
||
| 18 | } |
||
| 19 | }); |