app.js 885 B

123456789101112131415161718192021222324252627282930313233
  1. import $ from 'jquery';
  2. global.$ = $;
  3. import '../css/app.scss';
  4. import 'bootstrap';
  5. import 'font-awesome/css/font-awesome.css';
  6. import 'jquery-ui/themes/base/all.css';
  7. import 'jquery-ui/ui/widgets/autocomplete';
  8. import 'bootstrap-notify/bootstrap-notify';
  9. import 'animate.css/animate.css';
  10. $(document).ready(function() {
  11. $(function() {
  12. $('[data-toggle="tooltip"]').tooltip();
  13. $('[data-toggle="notify"]').each(function() {
  14. $.notify({
  15. message: $(this).data('message')
  16. },{
  17. type: $(this).data('type'),
  18. animate: {
  19. enter: 'animated fadeInRight',
  20. exit: 'animated fadeOutRight'
  21. },
  22. delay: 4000,
  23. offset: {
  24. x: 15,
  25. y: 70
  26. }
  27. })
  28. })
  29. })
  30. })